Changeset 3004 for trunk/MagicSoft/Mars/manalysis/MMcPedestalCopy.cc
- Timestamp:
- 02/02/04 15:31:26 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MMcPedestalCopy.cc
r2782 r3004 89 89 } 90 90 91 92 91 93 // -------------------------------------------------------------------------- 92 94 // 93 // Make sure , that there is an MPedestalCam Object in the Parameter List.95 // Make sure that there is a MPedestalCam object in the parameter list. 94 96 // 95 Int_t MMcPedestalCopy::PreProcess(MParList *pList)97 Int_t MMcPedestalCopy::PreProcess(MParList *pList) 96 98 { 97 // 98 // If it is no MC file skip this function... 99 // 100 if (! CheckRunType(pList)) 101 return kTRUE; 99 if ( ! pList->FindObject(AddSerialNumber("MPedestalCam")) ) 100 pList->FindCreateObj(AddSerialNumber("MPedestalCam")); 102 101 103 return pList->FindCreateObj(AddSerialNumber("MPedestalCam")) ? kTRUE : kFALSE;102 return kTRUE; 104 103 } 105 104 … … 115 114 // 116 115 if (!CheckRunType(pList)) 116 { 117 *fLog << inf << "This is no MC file... skipping." << endl; 117 118 return kTRUE; 119 } 118 120 119 121 // … … 128 130 } 129 131 130 MPedestalCam *pedcam = (MPedestalCam*)pList->Find CreateObj(AddSerialNumber("MPedestalCam"));132 MPedestalCam *pedcam = (MPedestalCam*)pList->FindObject(AddSerialNumber("MPedestalCam")); 131 133 if (!pedcam) 134 { 135 *fLog << err << dbginf << "Cannot create " << AddSerialNumber("MPedestalCam") <<"... Exiting." << endl; 136 132 137 return kFALSE; 138 } 133 139 134 140 MMcRunHeader *mcrun = (MMcRunHeader*)pList->FindObject("MMcRunHeader");
Note:
See TracChangeset
for help on using the changeset viewer.