Changeset 3688 for trunk/MagicSoft/Mars/mcalib/MMcCalibrationCalc.cc
- Timestamp:
- 04/08/04 20:44:11 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MMcCalibrationCalc.cc
r3638 r3688 50 50 #include "MCalibrationChargeCam.h" 51 51 52 #include "MCalibrationQEPix.h" 53 #include "MCalibrationQECam.h" 54 52 55 #include "MGeomCam.h" 53 56 #include "MRawRunHeader.h" … … 103 106 { 104 107 *fLog << err << AddSerialNumber("MCalibrationChargeCam") << "not found... aborting." << endl; 108 return kFALSE; 109 } 110 111 fQECam = (MCalibrationQECam*) pList->FindObject(AddSerialNumber("MCalibrationQECam")); 112 if (!fQECam) 113 { 114 *fLog << err << AddSerialNumber("MCalibrationQECam") << "not found... aborting." << endl; 105 115 return kFALSE; 106 116 } … … 244 254 245 255 const Int_t num = fCalCam->GetSize(); 256 246 257 for (int i=0; i<num; i++) 247 258 { 259 248 260 MCalibrationChargePix &calpix = (MCalibrationChargePix&)(*fCalCam)[i]; 249 250 const Float_t factor = fADC2Phot*calpix.GetMeanConversionBlindPixelMethod(); 251 252 calpix.SetConversionBlindPixelMethod(factor, 0., 0.); 261 // MCalibrationQEPix &qepix = (MCalibrationQEPix&) (*fQECam) [i]; 262 263 const Float_t qe = MCalibrationQEPix::gkDefaultAverageQE; 264 const Float_t factor = fADC2Phot/qe*calpix.GetMeanConvFADC2Phe(); 265 // 266 // FIXME: Now, only the conversion to PHe is stored, need also the quantum efficiency simulated!!! 267 // 268 calpix.SetMeanConvFADC2Phe(factor); 269 calpix.SetMeanConvFADC2PheVar(0.); 270 calpix.SetMeanFFactorFADC2Phot(0.); 253 271 } 254 272
Note:
See TracChangeset
for help on using the changeset viewer.