Changeset 5325 for trunk/MagicSoft/Mars
- Timestamp:
- 10/28/04 14:03:54 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mmuon/MMuonCalibParCalc.cc
r5210 r5325 157 157 Int_t MMuonCalibParCalc::PreProcess(MParList *pList) 158 158 { 159 fCerPhotEvt = (MCerPhotEvt*)pList->FindObject(AddSerialNumber(fCerPhotName), "MCerPhotEvt");160 if (!fCerPhotEvt)159 fCerPhotEvt = (MCerPhotEvt*)pList->FindObject(AddSerialNumber(fCerPhotName), "MCerPhotEvt"); 160 if (!fCerPhotEvt) 161 161 { 162 *fLog << dbginf << "MCerPhotEvtnot found... aborting." << endl;163 return kFALSE;162 *fLog << err << fCerPhotName << " [MCerPhotEvt] not found... aborting." << endl; 163 return kFALSE; 164 164 } 165 166 fGeomCam = (MGeomCam*)pList->FindObject("MGeomCam");167 if (!fGeomCam)165 166 fGeomCam = (MGeomCam*)pList->FindObject("MGeomCam"); 167 if (!fGeomCam) 168 168 { 169 *fLog << dbginf << "MGeomCam (Camera Geometry) missing in Parameter List... aborting." << endl;170 return kFALSE;169 *fLog << err << "MGeomCam not found... aborting." << endl; 170 return kFALSE; 171 171 } 172 173 fMuonCalibPar = (MMuonCalibPar*)pList->FindCreateObj("MMuonCalibPar", "MMuonCalibPar"); 174 if (!fMuonCalibPar) 175 { 176 *fLog << dbginf << "MMuonCalibPar missing in Parameter List... aborting." << endl; 177 return kFALSE; 178 } 179 180 fMuonSearchPar = (MMuonSearchPar*)pList->FindCreateObj("MMuonSearchPar", "MMuonSearchPar"); 181 if (!fMuonSearchPar) 182 { 183 *fLog << dbginf << "MMuonSearchPar missing in Parameter List... aborting." << endl; 184 return kFALSE; 185 } 186 187 return kTRUE; 172 173 fMuonCalibPar = (MMuonCalibPar*)pList->FindCreateObj("MMuonCalibPar"); 174 if (!fMuonCalibPar) 175 return kFALSE; 176 177 fMuonSearchPar = (MMuonSearchPar*)pList->FindCreateObj("MMuonSearchPar"); 178 if (!fMuonSearchPar) 179 return kFALSE; 180 181 return kTRUE; 188 182 } 189 183
Note:
See TracChangeset
for help on using the changeset viewer.