Changeset 2876 for trunk/MagicSoft/Mars/manalysis/MMcCalibrationUpdate.cc
- Timestamp:
- 01/21/04 18:52:05 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MMcCalibrationUpdate.cc
r2873 r2876 73 73 fADC2PhOuter = 1.; 74 74 75 fFillCalibrationCam = kTRUE; 76 75 77 } 76 78 … … 117 119 return kTRUE; 118 120 119 fCalCam = (MCalibrationCam*) pList->FindCreateObj(AddSerialNumber("MCalibrationCam")); 121 122 fCalCam = (MCalibrationCam*) pList->FindObject(AddSerialNumber("MCalibrationCam")); 120 123 if ( !fCalCam ) 121 124 { 122 *fLog << err << dbginf << "Cannot create MCalibrationCam... aborting." << endl; 123 return kFALSE; 125 *fLog << warn << dbginf << AddSerialNumber("MCalibrationCam") << " does not exist... Creating." << endl; 126 127 fCalCam = (MCalibrationCam*) pList->FindCreateObj(AddSerialNumber("MCalibrationCam")); 128 if ( !fCalCam ) 129 { 130 *fLog << err << dbginf << "Cannot create " << AddSerialNumber("MCalibrationCam") << "... aborting." << endl; 131 return kFALSE; 132 } 133 } 134 else 135 { 136 fFillCalibrationCam = kFALSE; 137 *fLog << warn << dbginf << AddSerialNumber("MCalibrationCam") << " already exists... " << endl; 124 138 } 125 139 … … 185 199 fConversionHiLo = fHeaderFadc->GetLow2HighGain(); 186 200 201 // 202 // If MCalibrationCam already existed in the parameter list before 203 // MMcCalibrationUpdate::PreProcess was executed (from a 204 // previous calibration loop) we must not fill it, hence nothing 205 // else has to be done in ReInit: 206 // 207 if ( !fFillCalibrationCam ) 208 return kTRUE; 209 187 210 188 211 const int num = fCalCam->GetSize();
Note:
See TracChangeset
for help on using the changeset viewer.