Changeset 5430
- Timestamp:
- 11/18/04 15:43:37 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractor.cc
r5426 r5430 145 145 Int_t MExtractor::PreProcess(MParList *pList) 146 146 { 147 fRawEvt = (MRawEvtData*)pList->FindObject(AddSerialNumber("MRawEvtData")); 148 if (!fRawEvt)149 {150 *fLog << err << AddSerialNumber("MRawEvtData") << " not found... aborting." << endl;151 return kFALSE;152 }153 154 fRunHeader = (MRawRunHeader*)pList->FindObject(AddSerialNumber("MRawRunHeader"));155 if (!fRunHeader)156 {157 *fLog << err << AddSerialNumber("MRawRunHeader") << " not found... aborting." << endl;158 return kFALSE;159 }160 161 162 163 164 { 165 166 167 } 168 169 170 171 { 172 173 174 } 175 176 147 148 fRawEvt = (MRawEvtData*)pList->FindObject(AddSerialNumber("MRawEvtData")); 149 if (!fRawEvt) 150 { 151 *fLog << err << AddSerialNumber("MRawEvtData") << " not found... aborting." << endl; 152 return kFALSE; 153 } 154 155 fRunHeader = (MRawRunHeader*)pList->FindObject(AddSerialNumber("MRawRunHeader")); 156 if (!fRunHeader) 157 { 158 *fLog << err << AddSerialNumber("MRawRunHeader") << " not found... aborting." << endl; 159 return kFALSE; 160 } 161 162 fPedestals = (MPedestalCam*)pList->FindObject(AddSerialNumber(fNamePedestalCam), "MPedestalCam"); 163 if (!fPedestals) 164 { 165 *fLog << err << fNamePedestalCam.Data() << " not found... aborting" << endl; 166 return kFALSE; 167 } 168 169 fSignals = (MExtractedSignalCam*)pList->FindCreateObj("MExtractedSignalCam",AddSerialNumber(fNameSignalCam)); 170 if (!fSignals) 171 { 172 *fLog << err << fNameSignalCam.Data() << " could not be found nor created... aborting" << endl; 173 return kFALSE; 174 } 175 176 return kTRUE; 177 177 } 178 178
Note:
See TracChangeset
for help on using the changeset viewer.