- Timestamp:
- 04/29/14 19:50:09 (11 years ago)
- Location:
- trunk/Mars/mjobs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mjobs/MJSimulation.cc
r17663 r17737 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 … … 243 244 write.AddContainer("MMcEvt", "Events"); 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 -
trunk/Mars/mjobs/MJSimulation.h
r17148 r17737 32 32 Bool_t CheckEnvLocal(); 33 33 34 template<class T> 35 void SetupCommonFileStructure(T &write) const; 36 34 37 void SetupHist(MHn &hist) const; 35 void SetupCommonFileStructure(MWriteRootFile &write) const;36 void SetupCommonFileStructure(MWriteFitsFile& write) const;37 38 void SetupHeaderKeys(MWriteFitsFile& write, MRawRunHeader &header) const; 38 39 void SetupVetoColumns(MWriteFitsFile& write) const;
Note:
See TracChangeset
for help on using the changeset viewer.