Changeset 4910 for trunk/MagicSoft
- Timestamp:
- 09/09/04 18:13:09 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mcalib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibColorSteer.cc
r4899 r4910 53 53 #include "MCalibrationIntensityRelTimeCam.h" 54 54 55 #include "MCalibrationChargeCalc.h" 56 #include "MCalibrationRelTimeCalc.h" 57 55 58 #include "MRawEvtHeader.h" 56 59 … … 68 71 : fHeader(NULL), fGeom(NULL), fParList(NULL), 69 72 fIntensCharge(NULL), fIntensRelTime(NULL), 73 fChargeCalc(NULL), fRelTimeCalc(NULL), 70 74 fPattern(0) 71 75 { … … 114 118 fIntensCharge = (MCalibrationIntensityChargeCam*)pList->FindCreateObj("MCalibrationIntensityChargeCam"); 115 119 fIntensQE = (MCalibrationIntensityQECam*) pList->FindCreateObj("MCalibrationIntensityQECam"); 120 fChargeCalc = (MCalibrationChargeCalc*) pList->FindObject("MCalibrationChargeCalc"); 116 121 117 122 if (!fIntensCharge) … … 121 126 } 122 127 123 if ( fIntensQE)128 if (!fIntensQE) 124 129 { 125 130 *fLog << err << "Could not find nor create MCalibrationIntensityQECam abort... " << endl; 131 return kFALSE; 132 } 133 134 if (!fChargeCalc) 135 { 136 *fLog << err << "Could not find MCalibrationChargeCalc abort... " << endl; 126 137 return kFALSE; 127 138 } … … 134 145 if (pList->FindObject(AddSerialNumber("FillRelTimeCam"))) 135 146 { 147 136 148 fIntensRelTime = (MCalibrationIntensityRelTimeCam*)pList->FindCreateObj("MCalibrationIntensityRelTimeCam"); 149 fRelTimeCalc = (MCalibrationRelTimeCalc*) pList->FindObject(AddSerialNumber("MCalibrationRelTimeCalc")); 150 137 151 if (!fIntensRelTime) 138 152 { 139 153 *fLog << err << "Could not find nor create MCalibrationIntensityRelTimeCam abort... " << endl; 154 return kFALSE; 155 } 156 157 if (!fRelTimeCalc) 158 { 159 *fLog << err << "Could not find MCalibrationRelTimeCalc abort... " << endl; 140 160 return kFALSE; 141 161 } … … 160 180 { 161 181 fPattern = pattern; 162 // ReInitialize();163 182 return kTRUE; 164 183 } … … 167 186 168 187 // 169 // Possible calibration histogram classes...188 // Finalize Possible calibration histogram classes... 170 189 // 171 190 *fLog << inf << GetDescriptor() << " : Finalize calibration histograms..." << flush; … … 175 194 if (Finalize("MHCalibrationTestTimeCam")) *fLog << "MHCalibrationChargeCam"; 176 195 196 // 197 // Finalize possible calibration calculation tasks 198 // 199 *fLog << inf << GetDescriptor() << " : Finalize calibration calculations..." << flush; 200 if (fChargeCalc) 201 fChargeCalc->CallPostProcess(); 202 if (fRelTimeCalc) 203 fRelTimeCalc->CallPostProcess(); 204 177 205 ReInitialize(); 178 206 … … 197 225 Bool_t MCalibColorSteer::ReInitialize() 198 226 { 227 199 228 if (fIntensCharge) 200 229 { … … 215 244 << ": No MCalibrationIntensityQECam loaded, but MHCalibrationChargeCam found " 216 245 << endl; 217 218 219 246 if (fIntensRelTime) 220 247 { -
trunk/MagicSoft/Mars/mcalib/MCalibColorSteer.h
r4900 r4910 9 9 class MGeomCam; 10 10 class MRawEvtHeader; 11 class MCalibrationChargeCalc; 12 class MCalibrationRelTimeCalc; 11 13 class MCalibrationIntensityChargeCam; 12 14 class MCalibrationIntensityQECam; … … 22 24 MCalibrationIntensityQECam *fIntensQE; 23 25 MCalibrationIntensityRelTimeCam *fIntensRelTime; 24 26 MCalibrationChargeCalc *fChargeCalc; 27 MCalibrationRelTimeCalc *fRelTimeCalc; 28 25 29 UInt_t fPattern; 26 30
Note:
See TracChangeset
for help on using the changeset viewer.