Ignore:
Timestamp:
02/25/04 14:13:12 (21 years ago)
Author:
wittek
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/MSourcePosfromStarPos.cc

    r3296 r3300  
    433433  *fLog << all << "MSourcePosfromStarPos::ReInit; run = " << run << endl;
    434434
     435  // define default values
     436  Double_t xSource_def =  51.0;
     437  Double_t ySource_def = -59.0;
     438  Double_t theta_def = 25.0;
     439  Double_t phi_def   =  0.0;
     440
    435441  //-------------------------------------------------------------------
    436442  // search this run in the list
     
    449455
    450456      *fLog << all << "theta, phi = " << thetarad*kRad2Deg << ",  "
    451             << phirad*kRad2Deg << endl;
     457            << phirad*kRad2Deg << " deg" << endl;
    452458       
    453459      //-----------------------------------------
     
    485491        fSrcPos->SetReadyToSave();       
    486492      }
     493      else
     494      {
     495        // set default values
     496        fxSource = xSource_def;
     497        fySource = ySource_def;
     498        fSrcPos->SetXY(fxSource, fySource);
     499        fSrcPos->SetReadyToSave();       
     500
     501        *fLog << warn << "MSourcePosfromStarPos::ReInit;  no information on source position for run number = "
     502              << run << endl;
     503        *fLog << warn << "       set xSource, ySource = " << fxSource << ",  "
     504              << fySource << " mm" << endl;
     505      }
    487506     
    488507
     
    491510  }
    492511  //------------------------------------------------------------------- 
    493     *fLog << warn << "MSourcePosfromStarPos::ReInit;  no information for run number = "
    494           << run << endl;
    495 
    496     Double_t thetadeg = 25.0;
     512
     513    // set default values
     514    fxSource = xSource_def;
     515    fySource = ySource_def;
     516    fSrcPos->SetXY(fxSource, fySource);
     517    fSrcPos->SetReadyToSave();       
     518
     519    Double_t thetadeg = theta_def;
    497520    Double_t thetarad = thetadeg / kRad2Deg;
    498521    fMcEvt->SetTelescopeTheta(thetarad);
    499522
    500     Double_t phideg = 0.0;
     523    Double_t phideg = phi_def;
    501524    Double_t phirad = phideg / kRad2Deg;
    502525    fMcEvt->SetTelescopePhi(phirad);
    503526    fMcEvt->SetReadyToSave();
     527
     528    *fLog << warn << "MSourcePosfromStarPos::ReInit;  no information on theta, phi and source position for run number = "
     529          << run << endl;
     530    *fLog << warn << "       set xSource, ySource = " << fxSource << ",  "
     531          << fySource << " mm" << endl;
     532    *fLog << warn << "       set theta, phi = " << thetadeg << ",  "
     533          << phideg << " deg" << endl;
     534
    504535
    505536    return kTRUE;
Note: See TracChangeset for help on using the changeset viewer.