Changeset 2556 for trunk/MagicSoft/Mars/mraw
- Timestamp:
- 11/22/03 15:31:18 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mraw
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mraw/MRawFileWrite.cc
r2470 r2556 105 105 // - MRawEvtData 106 106 // - MRawCrateArray 107 // - M RawEvtTime <MTime>107 // - MTime 108 108 // - MRawRunHeader 109 109 // if a container isn't found the eventloop is stopped. … … 154 154 } 155 155 156 f RawEvtTime = (MTime*)pList->FindObject("MRawEvtTime");157 if (!f RawEvtTime)158 { 159 *fLog << err << dbginf << "M RawEvtTime not found... aborting." << endl;156 fTime = (MTime*)pList->FindObject("MTime"); 157 if (!fTime) 158 { 159 *fLog << err << dbginf << "MTime not found... aborting." << endl; 160 160 return kFALSE; 161 161 } … … 186 186 // create data trees for the three types of data 187 187 // 188 fTData = new TTree("Events", "Normal Triggered Events");189 fTPedestal = new TTree("Ped Events","Pedestal Triggered Events");190 fTCalibration = new TTree("Cal Events", "Calibration Triggered Events");188 fTData = new TTree("Events", "Normal Triggered Events"); 189 fTPedestal = new TTree("Pedestals", "Pedestal Triggered Events"); 190 fTCalibration = new TTree("Calibration", "Calibration Triggered Events"); 191 191 192 192 // … … 213 213 // FIXME: Can we calculate a good buffer size out of the event size? 214 214 // using splitlevel=0 sppeds up writing by a factor of 5-10% 215 fTData ->Branch("MTime.", "MTime", &f RawEvtTime,32000);216 fTPedestal ->Branch("MTime.", "MTime", &f RawEvtTime,32000);217 fTCalibration->Branch("MTime.", "MTime", &f RawEvtTime,32000);215 fTData ->Branch("MTime.", "MTime", &fTime, 32000); 216 fTPedestal ->Branch("MTime.", "MTime", &fTime, 32000); 217 fTCalibration->Branch("MTime.", "MTime", &fTime, 32000); 218 218 fTData ->Branch("MRawEvtHeader.", "MRawEvtHeader", &fRawEvtHeader, 32000); 219 219 fTPedestal ->Branch("MRawEvtHeader.", "MRawEvtHeader", &fRawEvtHeader, 32000); -
trunk/MagicSoft/Mars/mraw/MRawFileWrite.h
r2207 r2556 21 21 MParList *pParList; 22 22 23 MTime *f RawEvtTime;23 MTime *fTime; 24 24 MRawRunHeader *fRawRunHeader; 25 25 MRawEvtHeader *fRawEvtHeader;
Note:
See TracChangeset
for help on using the changeset viewer.