- Timestamp:
- 04/08/04 20:44:11 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mcalib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc
r3683 r3688 1045 1045 qepix.SetQEFFactor ( qe , fPulserColor ); 1046 1046 qepix.SetQEFFactorVar ( qerelvar*qe*qe, fPulserColor ); 1047 qepix.UpdateFFactorMethod(); 1047 qepix.SetFFactorMethodValid( kTRUE , fPulserColor ); 1048 1049 if (!qepix.UpdateFFactorMethod()) 1050 *fLog << warn << GetDescriptor() << ": Cannot update Quantum efficiencies with the F-Factor Method" << endl; 1048 1051 } 1049 1052 } -
trunk/MagicSoft/Mars/mcalib/MCalibrationQEPix.h
r3685 r3688 30 30 static const Float_t gkDefaultQEUVErr; //! Uncertainty Def. QE at 370 nm (now set to: 0.07) 31 31 static const Float_t gkDefaultQECT1Err; //! Uncertainty Def. QE at 370 nm (now set to: 0.07) 32 static const Float_t gkDefaultAverageQE; //! Default QE folded into Cascade spectrum (now set to: 0.18)33 static const Float_t gkDefaultAverageQEErr; //! Uncertainty Def. QE Cascade spectrum (now set to: 0.02)34 32 35 33 TArrayF fQEBlindPixel; // Calibrated QEs (Blind Pixel Method) … … 73 71 74 72 public: 73 74 static const Float_t gkDefaultAverageQE; //! Default QE folded into Cascade spectrum (now set to: 0.18) 75 static const Float_t gkDefaultAverageQEErr; //! Uncertainty Def. QE Cascade spectrum (now set to: 0.02) 75 76 76 77 MCalibrationQEPix(const char *name=NULL, const char *title=NULL); -
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.