Changeset 4242 for trunk/MagicSoft/Mars/mcalib
- Timestamp:
- 05/30/04 13:53:02 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mcalib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc
r4228 r4242 229 229 const Float_t MCalibrationChargeCalc::fgLambdaCheckLimit = 0.5; 230 230 const Float_t MCalibrationChargeCalc::fgPheErrLimit = 3.5; 231 const Float_t MCalibrationChargeCalc::fgFFactorErrLimit = 3. ;231 const Float_t MCalibrationChargeCalc::fgFFactorErrLimit = 3.5; 232 232 // -------------------------------------------------------------------------- 233 233 // … … 294 294 { 295 295 296 fNumHiGainSamples = 0.; 297 fNumLoGainSamples = 0.; 298 fSqrtHiGainSamples = 0.; 299 fSqrtLoGainSamples = 0.; 296 fNumHiGainSamples = 0.; 297 fNumLoGainSamples = 0.; 298 fSqrtHiGainSamples = 0.; 299 fSqrtLoGainSamples = 0.; 300 fNumInnerFFactorMethodUsed = 0; 300 301 SkipHiLoGainCalibration( kFALSE ); 301 302 } … … 1022 1023 areaphes [aidx] += nphe; 1023 1024 numareavalid [aidx] ++; 1025 1026 if (aidx == 0) 1027 fNumInnerFFactorMethodUsed++; 1024 1028 // sectorweights [sector] += weight; 1025 1029 // sectorphes [sector] += weight*nphe; … … 1210 1214 // av.Num.photons(area index) = av.Num.Phes(area index) 1211 1215 // / MCalibrationQEPix::GetDefaultQE(fPulserColor) 1216 // / MCalibrationQEPix::GetPMTCollectionEff() 1217 // / MCalibrationQEPix::GetLightGuidesEff(fPulserColor) 1212 1218 // / MCalibrationQECam::GetPlexiglassQE() 1213 1219 // 1214 // Calculate the variance on the average number of photons. 1220 // Calculate the variance on the average number of photons assuming that the error on the 1221 // Quantum efficiency is reduced by the number of used inner pixels, but the rest of the 1222 // values keeps it ordinary error since it is systematic. 1215 1223 // 1216 1224 // Loop over pixels: … … 1227 1235 // 1228 1236 // - Set QE in MCalibrationQEPix::SetQEFFactor ( QE, fPulserColor ); 1237 // 1229 1238 // - Set Variance of QE in MCalibrationQEPix::SetQEFFactorVar ( Variance, fPulserColor ); 1230 1239 // - Set bit MCalibrationQEPix::SetFFactorMethodValid(kTRUE,fPulserColor) … … 1235 1244 { 1236 1245 1246 if (fNumInnerFFactorMethodUsed < 2) 1247 { 1248 *fLog << warn << GetDescriptor() 1249 << ": Could not calculate F-Factor Method: Less than 2 inner pixels valid! " << endl; 1250 return; 1251 } 1252 1237 1253 MCalibrationChargePix &avpix = (MCalibrationChargePix&)fCam->GetAverageArea(0); 1238 1254 MCalibrationQEPix &qepix = (MCalibrationQEPix&) fQECam->GetAverageArea(0); 1239 1255 1240 1256 const Float_t avphotons = avpix.GetPheFFactorMethod() 1241 / qepix.GetDefaultQE(fPulserColor) 1257 / qepix.GetDefaultQE(fPulserColor) 1258 / qepix.GetPMTCollectionEff() 1259 / qepix.GetLightGuidesEff(fPulserColor) 1242 1260 / fQECam->GetPlexiglassQE(); 1243 1261 1244 1262 const Float_t avphotrelvar = avpix.GetPheFFactorMethodRelVar() 1245 + qepix.GetDefaultQERelVar(fPulserColor) 1263 + qepix.GetDefaultQERelVar(fPulserColor) / fNumInnerFFactorMethodUsed 1264 + qepix.GetPMTCollectionEffRelVar() 1265 + qepix.GetLightGuidesEffRelVar(fPulserColor) 1246 1266 + fQECam->GetPlexiglassQERelVar(); 1247 1267 -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.h
r4192 r4242 65 65 Float_t fSqrtLoGainSamples; // Square root nr. Low -Gain FADC slices used by extractor 66 66 MCalibrationCam::PulserColor_t fPulserColor; // Calibration LEDs colour 67 67 Int_t fNumInnerFFactorMethodUsed; // Number of inner pixels used for F-Factor Method calibration 68 68 69 TString fOutputPath; // Path to the output file 69 70 TString fOutputFile; // Name of the output file
Note:
See TracChangeset
for help on using the changeset viewer.