Changeset 4223 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
05/27/04 18:00:03 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r4219 r4223  
    3232   * mcalib/MHCalibrationChargeBlindPix.[h,cc]
    3333     - 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
    3441
    3542 2004/05/27: Thomas Bretz
  • trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCam.h

    r4161 r4223  
    6161  void  SetNumPhotonsPINDiodeMethodErr  ( const Float_t f )  { fNumPhotonsPINDiodeMethodErr   = f; }   
    6262 
    63   ClassDef(MCalibrationChargeCam, 2) // Container Charge Calibration Results Camera
     63  ClassDef(MCalibrationChargeCam, 3) // Container Charge Calibration Results Camera
    6464};
    6565
  • trunk/MagicSoft/Mars/mcalib/MCalibrationQEPix.cc

    r4199 r4223  
    111111// "Concerning the light guides effiency estimation... Daniel Ferenc
    112112//  is preparing some work (simulations) to estimate it. Yet so far, he has
    113 //  been busy with other stuff, and this work is still UNfinished.
     113//  been busy with other stuff, and this work is still Unfinished.
    114114//
    115115//  The estimation I did comes from:
     
    175175const Float_t MCalibrationQEPix::gkDefaultQEUVErr      = 0.07 ;
    176176const Float_t MCalibrationQEPix::gkDefaultQECT1Err     = 0.07 ;
    177 const Float_t MCalibrationQEPix::gkDefaultAverageQE    = 0.18;     
    178 const Float_t MCalibrationQEPix::gkDefaultAverageQEErr = 0.02; 
     177const Float_t MCalibrationQEPix::gkDefaultAverageQE    = 0.18 ;     
     178const Float_t MCalibrationQEPix::gkDefaultAverageQEErr = 0.02 ; 
     179const Float_t MCalibrationQEPix::gkPMTCollectionEff    = 0.90 ;
     180const Float_t MCalibrationQEPix::gkLightGuidesEff      = 0.94 ;
     181const Float_t MCalibrationQEPix::gkPMTCollectionEffErr = 0.01 ;
     182const Float_t MCalibrationQEPix::gkLightGuidesEffErr   = 0.03 ;
    179183// --------------------------------------------------------------------------
    180184//
     
    223227    const Float_t newavqevar = ( GetQEBlindPixelRelVar(col) + GetDefaultQERelVar(col) ) * newavqe * newavqe;
    224228    const Float_t weight     = 1./newavqevar;
     229
    225230    wav  += newavqe * weight;
    226231    sumw += weight;
     
    266271    const Float_t newavqevar = ( GetQEFFactorRelVar(col) + GetDefaultQERelVar(col) ) * newavqe * newavqe;
    267272    const Float_t weight     = 1./newavqevar;
     273
    268274    wav  += newavqe *weight;
    269275    sumw += weight;
     
    449455    {
    450456    case MCalibrationCam::kGREEN:
    451       return gkDefaultQEGreen;
     457      return gkDefaultQEGreen * gkPMTCollectionEff * gkLightGuidesEff;
    452458      break;
    453459    case MCalibrationCam::kBLUE:
    454       return gkDefaultQEBlue;
     460      return gkDefaultQEBlue * gkPMTCollectionEff * gkLightGuidesEff;
    455461      break;
    456462    case MCalibrationCam::kUV:
    457       return gkDefaultQEUV;
     463      return gkDefaultQEUV * gkPMTCollectionEff * gkLightGuidesEff;
    458464      break;
    459465    case MCalibrationCam::kCT1:
    460       return gkDefaultQECT1;
     466      return gkDefaultQECT1 * gkPMTCollectionEff * gkLightGuidesEff;
    461467      break;
    462468    default:
    463       return gkDefaultQECT1;
     469      return gkDefaultQECT1 * gkPMTCollectionEff * gkLightGuidesEff;
    464470      break;
    465471    }
     
    473479Float_t MCalibrationQEPix::GetDefaultQERelVar( const MCalibrationCam::PulserColor_t col )  const
    474480{
     481
     482  Float_t collpluslgrelvar = gkPMTCollectionEffErr * gkPMTCollectionEffErr
     483                           / gkPMTCollectionEff / gkPMTCollectionEff;
     484 
     485  collpluslgrelvar        += gkLightGuidesEffErr   * gkLightGuidesEffErr
     486                           / gkLightGuidesEff   / gkLightGuidesEffErr;
     487
    475488  switch (col)
    476489    {
    477490    case MCalibrationCam::kGREEN:
    478       return gkDefaultQEGreenErr * gkDefaultQEGreenErr / (gkDefaultQEGreen * gkDefaultQEGreen );
     491      return collpluslgrelvar + gkDefaultQEGreenErr * gkDefaultQEGreenErr / (gkDefaultQEGreen * gkDefaultQEGreen );
    479492      break;
    480493    case MCalibrationCam::kBLUE:
    481       return gkDefaultQEBlueErr  * gkDefaultQEBlueErr  / (gkDefaultQEBlue  * gkDefaultQEBlue  );
     494      return collpluslgrelvar + gkDefaultQEBlueErr  * gkDefaultQEBlueErr  / (gkDefaultQEBlue  * gkDefaultQEBlue  );
    482495      break;
    483496    case MCalibrationCam::kUV:
    484       return gkDefaultQEUVErr    * gkDefaultQEUVErr    / (gkDefaultQEUV    * gkDefaultQEUV    );
     497      return collpluslgrelvar + gkDefaultQEUVErr    * gkDefaultQEUVErr    / (gkDefaultQEUV    * gkDefaultQEUV    );
    485498      break;
    486499    case MCalibrationCam::kCT1:
    487       return gkDefaultQECT1Err   * gkDefaultQECT1Err   / (gkDefaultQECT1   * gkDefaultQECT1   );
     500      return collpluslgrelvar + gkDefaultQECT1Err   * gkDefaultQECT1Err   / (gkDefaultQECT1   * gkDefaultQECT1   );
    488501      break;
    489502    default:
    490       return gkDefaultQECT1Err   * gkDefaultQECT1Err   / (gkDefaultQECT1   * gkDefaultQECT1   );
     503      return collpluslgrelvar + gkDefaultQECT1Err   * gkDefaultQECT1Err   / (gkDefaultQECT1   * gkDefaultQECT1   );
    491504      break;
    492505    }
     
    11541167  fAvNormFFactor     = weightedav / sumweights;
    11551168  fAvNormFFactorVar  = 1./ sumweights ;
    1156 
     1169 
    11571170  SetAverageQEFFactorAvailable();
    11581171
  • trunk/MagicSoft/Mars/mcalib/MCalibrationQEPix.h

    r3768 r4223  
    3030  static const Float_t gkDefaultQEUVErr;      //! Uncertainty Def. QE  at 370 nm (now set to: 0.07)
    3131  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)
    3236 
    3337  TArrayF fQEBlindPixel;                     // Calibrated QEs    (Blind Pixel Method)
     
    156160  Bool_t  UpdatePINDiodeMethod  ();
    157161
    158   ClassDef(MCalibrationQEPix, 1)     // Container Quantum Efficieny Calibration Results Pixel
     162  ClassDef(MCalibrationQEPix, 2)     // Container Quantum Efficieny Calibration Results Pixel
    159163};
    160164
Note: See TracChangeset for help on using the changeset viewer.