Changeset 3685


Ignore:
Timestamp:
04/08/04 20:25:12 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mcalib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mcalib/MCalibrationQEPix.cc

    r3680 r3685  
    660660// ------------------------------------------------------------------------------
    661661//
     662// Get the error on the averaged Quantum efficiency folded over the cascade spectrum,
     663// obtained with the blind pixel method and averaged over the results from the
     664// different colours.
     665//
     666Float_t MCalibrationQEPix::GetQECascadesBlindPixelErr( const Float_t zenith  )  const
     667{
     668  const Float_t var = GetQECascadesBlindPixel(zenith);
     669 
     670  if (var < 0.)
     671    return -1.;
     672
     673  return TMath::Sqrt(var);
     674}
     675
     676// ------------------------------------------------------------------------------
     677//
    662678// Get the averaged Quantum efficiency folded over the cascade spectrum, obtained
    663679// with the combination of the three methods and averaged over the results
     
    671687// ------------------------------------------------------------------------------
    672688//
     689// Get the error on the averaged Quantum efficiency folded over the cascade spectrum,
     690// obtained with the combined method and averaged over the results from the
     691// different colours.
     692//
     693Float_t MCalibrationQEPix::GetQECascadesCombinedErr( const Float_t zenith  )  const
     694{
     695  const Float_t var = GetQECascadesCombined(zenith);
     696 
     697  if (var < 0.)
     698    return -1.;
     699
     700  return TMath::Sqrt(var);
     701}
     702
     703// ------------------------------------------------------------------------------
     704//
    673705// Get the variance of the averaged Quantum efficiency folded over the cascade spectrum,
    674706// obtained with the combination of the three methods and averaged over the results from the
     
    693725// ------------------------------------------------------------------------------
    694726//
     727// Get the error on the averaged Quantum efficiency folded over the cascade spectrum,
     728// obtained with the F-Factor method and averaged over the results from the
     729// different colours.
     730//
     731Float_t MCalibrationQEPix::GetQECascadesFFactorErr( const Float_t zenith  )  const
     732{
     733  const Float_t var = GetQECascadesFFactor(zenith);
     734 
     735  if (var < 0.)
     736    return -1.;
     737
     738  return TMath::Sqrt(var);
     739}
     740
     741// ------------------------------------------------------------------------------
     742//
    695743// Get the variance of the averaged Quantum efficiency folded over the cascade spectrum,
    696744// obtained with the F-Factor method and averaged over the results from the
     
    711759{
    712760  return fAvNormPINDiode * GetAverageQE ( zenith );
     761}
     762
     763// ------------------------------------------------------------------------------
     764//
     765// Get the error on the averaged Quantum efficiency folded over the cascade spectrum,
     766// obtained with the PIN Diode method and averaged over the results from the
     767// different colours.
     768//
     769Float_t MCalibrationQEPix::GetQECascadesPINDiodeErr( const Float_t zenith  )  const
     770{
     771  const Float_t var = GetQECascadesPINDiode(zenith);
     772 
     773  if (var < 0.)
     774    return -1.;
     775
     776  return TMath::Sqrt(var);
    713777}
    714778
     
    10421106    return kFALSE;
    10431107
    1044   weightedav /= sumweights;
    1045 
    1046   fAvNormFFactor     = gkDefaultAverageQE   *  weightedav;
    1047   fAvNormFFactorVar  = GetAverageQERelVar() + (sumweights / weightedav / weightedav ); 
    1048   fAvNormFFactorVar *= fAvNormFFactor * fAvNormFFactor;
     1108  fAvNormFFactor     = weightedav / sumweights;
     1109  fAvNormFFactorVar  = 1./ sumweights ;
    10491110
    10501111  return kTRUE;
  • trunk/MagicSoft/Mars/mcalib/MCalibrationQEPix.h

    r3678 r3685  
    8686  Float_t GetQEBlindPixelRelVar          ( const MCalibrationCam::PulserColor_t col ) const; 
    8787  Float_t GetQECascadesBlindPixel        ( const Float_t zenith=0.)                   const;
     88  Float_t GetQECascadesBlindPixelErr     ( const Float_t zenith=0.)                   const;
    8889  Float_t GetQECascadesBlindPixelVar     ( const Float_t zenith=0.)                   const;
    8990  Float_t GetQECascadesCombined          ( const Float_t zenith=0.)                   const; 
    90   Float_t GetQECascadesCombinedVar       ( const Float_t zenith=0.)                   const; 
     91  Float_t GetQECascadesCombinedErr       ( const Float_t zenith=0.)                   const;
     92  Float_t GetQECascadesCombinedVar       ( const Float_t zenith=0.)                   const;   
    9193  Float_t GetQECascadesFFactor           ( const Float_t zenith=0.)                   const; 
    92   Float_t GetQECascadesFFactorVar        ( const Float_t zenith=0 )                   const; 
     94  Float_t GetQECascadesFFactorErr        ( const Float_t zenith=0 )                   const;
     95  Float_t GetQECascadesFFactorVar        ( const Float_t zenith=0 )                   const;   
    9396  Float_t GetQECascadesPINDiode          ( const Float_t zenith=0.)                   const;
    94   Float_t GetQECascadesPINDiodeVar       ( const Float_t zenith=0.)                   const;
     97  Float_t GetQECascadesPINDiodeErr       ( const Float_t zenith=0.)                   const;
     98  Float_t GetQECascadesPINDiodeVar       ( const Float_t zenith=0.)                   const; 
    9599  Float_t GetQECombined                  ( const MCalibrationCam::PulserColor_t col ) const;       
    96100  Float_t GetQECombinedErr               ( const MCalibrationCam::PulserColor_t col ) const;
Note: See TracChangeset for help on using the changeset viewer.