Changeset 3004
- Timestamp:
- 02/02/04 15:31:26 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3003 r3004 4 4 5 5 -*-*- END OF LINE -*-*- 6 7 2004/02/02: Abelardo Moralejo 8 9 * manalysis/MMcCalibrationUpdate.cc, MMcPedestalCopy.cc 10 - removed file type check (MC or data) from PreProcess since now 11 run headers are not yet known at that point. 12 13 * mcalib/MMcCalibrationCalc.cc 14 - same as above. 15 16 6 17 2004/02/02: Thomas Bretz 7 18 -
trunk/MagicSoft/Mars/manalysis/MMcCalibrationUpdate.cc
r2961 r3004 108 108 Int_t MMcCalibrationUpdate::PreProcess(MParList *pList) 109 109 { 110 //111 // If it is no MC file skip this function...112 //113 if (!CheckRunType(pList))114 return kTRUE;115 116 117 110 fCalCam = (MCalibrationCam*) pList->FindObject(AddSerialNumber("MCalibrationCam")); 118 111 if ( !fCalCam ) … … 163 156 // 164 157 if (!CheckRunType(pList)) 158 { 159 *fLog << inf << "This is no MC file... skipping." << endl; 165 160 return kTRUE; 166 161 } 162 167 163 // 168 164 // Now check the existence of all necessary containers. -
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"); -
trunk/MagicSoft/Mars/mcalib/MMcCalibrationCalc.cc
r2940 r3004 99 99 Int_t MMcCalibrationCalc::PreProcess(MParList *pList) 100 100 { 101 //102 // If it is no MC file display error and exit103 //104 if (!CheckRunType(pList))105 {106 *fLog << err << dbginf << "This is no MC file... aborting." << endl;107 return kFALSE;108 }109 101 110 102 fCalCam = (MCalibrationCam*) pList->FindObject(AddSerialNumber("MCalibrationCam")); … … 148 140 Bool_t MMcCalibrationCalc::ReInit(MParList *pList) 149 141 { 142 // 143 // If it is no MC file display error and exit 144 // 145 if (!CheckRunType(pList)) 146 { 147 *fLog << err << dbginf << "This is no MC file... aborting." << endl; 148 return kFALSE; 149 } 150 150 151 // 151 152 // Now check the existence of all necessary containers.
Note:
See TracChangeset
for help on using the changeset viewer.