Changeset 4370 for trunk/MagicSoft/Mars/mraw
- Timestamp:
- 06/30/04 19:48:23 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mraw
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mraw/MRawFileWrite.cc
r3387 r4370 174 174 // - Branches are automatically deleted by the tree destructor 175 175 // 176 177 // 178 // Write the run header information to the file 179 // 180 TTree *rh = new TTree("RunHeaders", "Run headers of all runs in this file"); 181 rh->Branch("MRawRunHeader.", "MRawRunHeader", &fRawRunHeader, 32000); 182 rh->Fill(); 183 //rh->Write(); 176 fTRunHeader = new TTree("RunHeaders", "Run headers of all runs in this file"); 177 fTRunHeader->Branch("MRawRunHeader.", "MRawRunHeader", &fRawRunHeader, 32000); 184 178 185 179 // … … 229 223 return kTRUE; 230 224 } 231 225 226 // -------------------------------------------------------------------------- 227 // 228 // Write the run header information to the file 229 // 230 Bool_t MRawFileWrite::ReInit(MParList *pList) 231 { 232 fTRunHeader->Fill(); 233 return kTRUE; 234 } 235 232 236 // -------------------------------------------------------------------------- 233 237 // -
trunk/MagicSoft/Mars/mraw/MRawFileWrite.h
r3800 r4370 31 31 TTree *fTCalibration; //! 32 32 33 TTree *fTRunHeader; //! 34 33 35 TFile *fOut; //! 36 37 Int_t PreProcess(MParList *pList); 38 Bool_t ReInit(MParList *pList); 39 Int_t Process(); 34 40 35 41 public: … … 41 47 ~MRawFileWrite(); 42 48 43 Int_t PreProcess(MParList *pList);44 Int_t Process();45 46 49 ClassDef(MRawFileWrite, 0) // Task to write the raw data containers to a root file 47 50 };
Note:
See TracChangeset
for help on using the changeset viewer.