Changeset 4223 for trunk/MagicSoft/Mars
- Timestamp:
- 05/27/04 18:00:03 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r4219 r4223 32 32 * mcalib/MHCalibrationChargeBlindPix.[h,cc] 33 33 - put some protection against zero-division in fitFuncMichele 34 35 * mcalib/MCalibrationQEPix.[h,cc] 36 - set a global variable CollEfficiency and LightguidesEfficiency. 37 The more precise result for the QE calculated with 38 the F-Factor method differs now by about 5% (while the statistical 39 error remains around 20%). 40 34 41 35 42 2004/05/27: Thomas Bretz -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCam.h
r4161 r4223 61 61 void SetNumPhotonsPINDiodeMethodErr ( const Float_t f ) { fNumPhotonsPINDiodeMethodErr = f; } 62 62 63 ClassDef(MCalibrationChargeCam, 2) // Container Charge Calibration Results Camera63 ClassDef(MCalibrationChargeCam, 3) // Container Charge Calibration Results Camera 64 64 }; 65 65 -
trunk/MagicSoft/Mars/mcalib/MCalibrationQEPix.cc
r4199 r4223 111 111 // "Concerning the light guides effiency estimation... Daniel Ferenc 112 112 // is preparing some work (simulations) to estimate it. Yet so far, he has 113 // been busy with other stuff, and this work is still U Nfinished.113 // been busy with other stuff, and this work is still Unfinished. 114 114 // 115 115 // The estimation I did comes from: … … 175 175 const Float_t MCalibrationQEPix::gkDefaultQEUVErr = 0.07 ; 176 176 const Float_t MCalibrationQEPix::gkDefaultQECT1Err = 0.07 ; 177 const Float_t MCalibrationQEPix::gkDefaultAverageQE = 0.18; 178 const Float_t MCalibrationQEPix::gkDefaultAverageQEErr = 0.02; 177 const Float_t MCalibrationQEPix::gkDefaultAverageQE = 0.18 ; 178 const Float_t MCalibrationQEPix::gkDefaultAverageQEErr = 0.02 ; 179 const Float_t MCalibrationQEPix::gkPMTCollectionEff = 0.90 ; 180 const Float_t MCalibrationQEPix::gkLightGuidesEff = 0.94 ; 181 const Float_t MCalibrationQEPix::gkPMTCollectionEffErr = 0.01 ; 182 const Float_t MCalibrationQEPix::gkLightGuidesEffErr = 0.03 ; 179 183 // -------------------------------------------------------------------------- 180 184 // … … 223 227 const Float_t newavqevar = ( GetQEBlindPixelRelVar(col) + GetDefaultQERelVar(col) ) * newavqe * newavqe; 224 228 const Float_t weight = 1./newavqevar; 229 225 230 wav += newavqe * weight; 226 231 sumw += weight; … … 266 271 const Float_t newavqevar = ( GetQEFFactorRelVar(col) + GetDefaultQERelVar(col) ) * newavqe * newavqe; 267 272 const Float_t weight = 1./newavqevar; 273 268 274 wav += newavqe *weight; 269 275 sumw += weight; … … 449 455 { 450 456 case MCalibrationCam::kGREEN: 451 return gkDefaultQEGreen ;457 return gkDefaultQEGreen * gkPMTCollectionEff * gkLightGuidesEff; 452 458 break; 453 459 case MCalibrationCam::kBLUE: 454 return gkDefaultQEBlue ;460 return gkDefaultQEBlue * gkPMTCollectionEff * gkLightGuidesEff; 455 461 break; 456 462 case MCalibrationCam::kUV: 457 return gkDefaultQEUV ;463 return gkDefaultQEUV * gkPMTCollectionEff * gkLightGuidesEff; 458 464 break; 459 465 case MCalibrationCam::kCT1: 460 return gkDefaultQECT1 ;466 return gkDefaultQECT1 * gkPMTCollectionEff * gkLightGuidesEff; 461 467 break; 462 468 default: 463 return gkDefaultQECT1 ;469 return gkDefaultQECT1 * gkPMTCollectionEff * gkLightGuidesEff; 464 470 break; 465 471 } … … 473 479 Float_t MCalibrationQEPix::GetDefaultQERelVar( const MCalibrationCam::PulserColor_t col ) const 474 480 { 481 482 Float_t collpluslgrelvar = gkPMTCollectionEffErr * gkPMTCollectionEffErr 483 / gkPMTCollectionEff / gkPMTCollectionEff; 484 485 collpluslgrelvar += gkLightGuidesEffErr * gkLightGuidesEffErr 486 / gkLightGuidesEff / gkLightGuidesEffErr; 487 475 488 switch (col) 476 489 { 477 490 case MCalibrationCam::kGREEN: 478 return gkDefaultQEGreenErr * gkDefaultQEGreenErr / (gkDefaultQEGreen * gkDefaultQEGreen );491 return collpluslgrelvar + gkDefaultQEGreenErr * gkDefaultQEGreenErr / (gkDefaultQEGreen * gkDefaultQEGreen ); 479 492 break; 480 493 case MCalibrationCam::kBLUE: 481 return gkDefaultQEBlueErr * gkDefaultQEBlueErr / (gkDefaultQEBlue * gkDefaultQEBlue );494 return collpluslgrelvar + gkDefaultQEBlueErr * gkDefaultQEBlueErr / (gkDefaultQEBlue * gkDefaultQEBlue ); 482 495 break; 483 496 case MCalibrationCam::kUV: 484 return gkDefaultQEUVErr * gkDefaultQEUVErr / (gkDefaultQEUV * gkDefaultQEUV );497 return collpluslgrelvar + gkDefaultQEUVErr * gkDefaultQEUVErr / (gkDefaultQEUV * gkDefaultQEUV ); 485 498 break; 486 499 case MCalibrationCam::kCT1: 487 return gkDefaultQECT1Err * gkDefaultQECT1Err / (gkDefaultQECT1 * gkDefaultQECT1 );500 return collpluslgrelvar + gkDefaultQECT1Err * gkDefaultQECT1Err / (gkDefaultQECT1 * gkDefaultQECT1 ); 488 501 break; 489 502 default: 490 return gkDefaultQECT1Err * gkDefaultQECT1Err / (gkDefaultQECT1 * gkDefaultQECT1 );503 return collpluslgrelvar + gkDefaultQECT1Err * gkDefaultQECT1Err / (gkDefaultQECT1 * gkDefaultQECT1 ); 491 504 break; 492 505 } … … 1154 1167 fAvNormFFactor = weightedav / sumweights; 1155 1168 fAvNormFFactorVar = 1./ sumweights ; 1156 1169 1157 1170 SetAverageQEFFactorAvailable(); 1158 1171 -
trunk/MagicSoft/Mars/mcalib/MCalibrationQEPix.h
r3768 r4223 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 gkPMTCollectionEff; //! Default Collection efficiency of the PMTs 33 static const Float_t gkLightGuidesEff; //! Default overall Light guides efficiency 34 static const Float_t gkPMTCollectionEffErr; //! Uncertainty Def. Collection efficiency of the PMTs (0.01) 35 static const Float_t gkLightGuidesEffErr; //! Uncertainty Def.overall Light guides efficiency (0.03) 32 36 33 37 TArrayF fQEBlindPixel; // Calibrated QEs (Blind Pixel Method) … … 156 160 Bool_t UpdatePINDiodeMethod (); 157 161 158 ClassDef(MCalibrationQEPix, 1) // Container Quantum Efficieny Calibration Results Pixel162 ClassDef(MCalibrationQEPix, 2) // Container Quantum Efficieny Calibration Results Pixel 159 163 }; 160 164
Note:
See TracChangeset
for help on using the changeset viewer.