Changeset 17854
- Timestamp:
- 05/14/14 15:18:38 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mjobs/MJSimulation.cc
r17853 r17854 229 229 } 230 230 231 void MJSimulation::SetupCommonFileStructure(MWriteRootFile &write) const 231 template<class T> 232 void MJSimulation::SetupCommonFileStructure(T &write) const 232 233 { 233 234 // Common run headers … … 241 242 write.AddContainer("MCorsikaEvtHeader", "Events", kFALSE); 242 243 write.AddContainer("MRawEvtHeader", "Events"); 243 write.AddContainer("MMcEvt", "Events" );244 write.AddContainer("MMcEvt", "Events", kFALSE); 244 245 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); 261 247 } 262 248 … … 653 639 write3af.AddContainer("MRawEvtData", "Events"); 654 640 write3af.AddContainer("MTruePhotonsPerPixelCont", "Events"); 655 656 if (fOperationMode == kModeData){ 657 write3af.AddContainer("MMcEvtBasic", "Events"); 658 } 659 641 write3af.AddContainer("MMcEvtBasic", "Events", kFALSE); 642 660 643 write3af.AddContainer("MPhotonEvent","Events"); 661 644
Note:
See TracChangeset
for help on using the changeset viewer.