Changeset 17854 for trunk/Mars


Ignore:
Timestamp:
05/14/14 15:18:38 (11 years ago)
Author:
tbretz
Message:
I made a mess reverting the last change... so this should correspond to revision 17737.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mjobs/MJSimulation.cc

    r17853 r17854  
    229229}
    230230
    231 void MJSimulation::SetupCommonFileStructure(MWriteRootFile &write) const
     231template<class T>
     232void MJSimulation::SetupCommonFileStructure(T &write) const
    232233{
    233234    // Common run headers
     
    241242    write.AddContainer("MCorsikaEvtHeader",   "Events", kFALSE);
    242243    write.AddContainer("MRawEvtHeader",       "Events");
    243     write.AddContainer("MMcEvt",              "Events");
     244    write.AddContainer("MMcEvt",              "Events", kFALSE);
    244245    write.AddContainer("IncidentAngle",       "Events", kFALSE);
    245 }
    246 //FIXME Etienne. I'm doing the same for fits and root. I probably should adapt somehow
    247 void MJSimulation::SetupCommonFileStructure(MWriteFitsFile& write) const
    248 {
    249     // Common run headers
    250     write.AddContainer("MMcCorsikaRunHeader", "RunHeaders", kFALSE);
    251     write.AddContainer("MCorsikaRunHeader",   "RunHeaders", kFALSE);
    252     write.AddContainer("MRawRunHeader",       "RunHeaders");
    253     write.AddContainer("MGeomCam",            "RunHeaders");
    254     write.AddContainer("MMcRunHeader",        "RunHeaders");
    255 
    256     // Common events
    257     write.AddContainer("MCorsikaEvtHeader",   "Events", kFALSE);
    258     write.AddContainer("MRawEvtHeader",       "Events");
    259     write.AddContainer("MMcEvt",              "Events");
    260     write.AddContainer("IncidentAngle",       "Events", kFALSE);
     246    write.AddContainer("MPointingPos",        "Events", kFALSE);
    261247}
    262248
     
    653639    write3af.AddContainer("MRawEvtData",      "Events");
    654640    write3af.AddContainer("MTruePhotonsPerPixelCont", "Events");
    655    
    656     if (fOperationMode == kModeData){
    657         write3af.AddContainer("MMcEvtBasic",      "Events");
    658     }
    659  
     641    write3af.AddContainer("MMcEvtBasic",      "Events", kFALSE);
     642
    660643    write3af.AddContainer("MPhotonEvent","Events");
    661644
Note: See TracChangeset for help on using the changeset viewer.