Ignore:
Timestamp:
10/28/04 14:03:54 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mmuon/MMuonCalibParCalc.cc

    r5210 r5325  
    157157Int_t MMuonCalibParCalc::PreProcess(MParList *pList)
    158158{
    159   fCerPhotEvt = (MCerPhotEvt*)pList->FindObject(AddSerialNumber(fCerPhotName), "MCerPhotEvt");
    160   if (!fCerPhotEvt)
     159    fCerPhotEvt = (MCerPhotEvt*)pList->FindObject(AddSerialNumber(fCerPhotName), "MCerPhotEvt");
     160    if (!fCerPhotEvt)
    161161    {
    162       *fLog << dbginf << "MCerPhotEvt not found... aborting." << endl;
    163       return kFALSE;
     162        *fLog << err << fCerPhotName << " [MCerPhotEvt] not found... aborting." << endl;
     163        return kFALSE;
    164164    }
    165  
    166   fGeomCam = (MGeomCam*)pList->FindObject("MGeomCam");
    167   if (!fGeomCam)
     165
     166    fGeomCam = (MGeomCam*)pList->FindObject("MGeomCam");
     167    if (!fGeomCam)
    168168    {
    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;
    171171    }
    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;
    188182}
    189183
Note: See TracChangeset for help on using the changeset viewer.