Changeset 3300 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
02/25/04 14:13:12 (21 years ago)
Author:
wittek
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/macros/ONOFFAnalysis.C

    r3296 r3300  
    371371    outNameImage += "Hillas";
    372372    outNameImage += typeInput;
    373     outNameImage += "1b.root";
     373    outNameImage += "1e.root";
    374374    gLog << "padded data to be written onto : " << outNameImage << endl;
    375375
     
    766766      MWriteRootFile write(outNameImage);
    767767
    768       write.AddContainer("MRawRunHeader", "RunHeaders");
     768      //write.AddContainer("MRawRunHeader", "RunHeaders");
    769769      //write.AddContainer("MMcRunHeader",  "RunHeaders", kFALSE);
    770770      //write.AddContainer("MTime",         "Events");
     
    18201820    // file to be updated (either ON or MC)
    18211821
    1822     TString typeInput = "ON";
    1823     //TString typeInput = "OFF";
     1822    //TString typeInput = "ON";
     1823    TString typeInput = "OFF";
    18241824    //TString typeInput = "MC";
    18251825    gLog << "typeInput = " << typeInput << endl;
    18261826
     1827    if (typeInput == "ON")
     1828      TString file(onfile);
     1829    else if (typeInput == "OFF")
     1830      TString file(offfile);
     1831    else if (typeInput == "MC")
     1832      TString file(mcfile);
     1833
    18271834    // name of input root file
    18281835    TString filenameData = outPath;
    1829     filenameData += onfile;
     1836    filenameData += file;
    18301837    filenameData += "Hillas";
    18311838    filenameData += typeInput;
    1832     filenameData += "1b.root";
     1839    filenameData += "1c.root";
    18331840    gLog << "filenameData = " << filenameData << endl;
    18341841
    18351842    // name of output root file
    18361843    TString outNameImage = outPath;
    1837     outNameImage += onfile;
     1844    outNameImage += file;
    18381845    outNameImage += "Hillas";
    18391846    outNameImage += typeInput;
    1840     outNameImage += "2b.root";
     1847    outNameImage += "2c.root";
    18411848   
    18421849
  • 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.