Ignore:
Timestamp:
04/05/04 23:10:30 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mcalib/MCalibrationChargeBlindPix.h

    r3315 r3662  
    1010private:
    1111
    12   static const Float_t fgLambdaCheckLimit;  // The default limit (in units of PedRMS) for acceptance of the fitted mean charge
    13   static const Float_t fgLambdaErrLimit;    // The default limit (in units of PedRMS) for acceptance of the fitted charge sigma
     12  static const Float_t gkBlindPixelArea;        //! The Blind Pixel area in mm^2
     13  static const Float_t gkBlindPixelAttGreen;    //! Attenuation Filter at 520 nm
     14  static const Float_t gkBlindPixelAttBlue ;    //! Attenuation Filter at 460 nm
     15  static const Float_t gkBlindPixelAttUV   ;    //! Attenuation Filter at 370 nm
     16  static const Float_t gkBlindPixelAttCT1  ;    //! Attenuation Filter at 370 nm
     17  static const Float_t gkBlindPixelQEGreen;     //! Quantum Efficiency at 520 nm
     18  static const Float_t gkBlindPixelQEBlue ;     //! Quantum Efficiency at 460 nm
     19  static const Float_t gkBlindPixelQEUV   ;     //! Quantum Efficiency at 370 nm
     20  static const Float_t gkBlindPixelQECT1  ;     //! Quantum Efficiency at 370 nm
     21  static const Float_t gkBlindPixelQEGreenErr;  //! Uncertainty QE at 520 nm
     22  static const Float_t gkBlindPixelQEBlueErr ;  //! Uncertainty QE at 460 nm
     23  static const Float_t gkBlindPixelQEUVErr   ;  //! Uncertainty QE at 370 nm
     24  static const Float_t gkBlindPixelQECT1Err  ;  //! Uncertainty QE at 370 nmu
    1425
    15   static const Float_t gkBlindPixelArea;       // The Blind Pixel area in mm^2
     26  Float_t fLambda;                  // Mean Poisson fit
     27  Float_t fLambdaCheck;             // Mean Pedestal Check (Gauss) fit
     28  Float_t fLambdaCheckErr;          // Error mean pedestal Check fit
     29  Float_t fLambdaVar;               // Variance lambda Poisson fit
     30  Float_t fFluxInsidePlexiglass;    // Number photons in INNER PIXEL inside the plexiglass
     31  Float_t fFluxInsidePlexiglassVar; // Variance number of photons in INNER PIXEL
     32  Float_t fMu0;                     // Position pedestal peak
     33  Float_t fMu0Err;                  // Error pos. pedestal-peak
     34  Float_t fMu1;                     // Position first photo-electron peak
     35  Float_t fMu1Err;                  // Error pos. first photo-electon peak
     36  Float_t fSigma0;                  // Width pedestal peak
     37  Float_t fSigma0Err;               // Error width pedestal peak
     38  Float_t fSigma1;                  // Width first photo-electron peak 
     39  Float_t fSigma1Err;               // Error width first photo-electron peak 
    1640
    17   static const Float_t gkBlindPixelQEGreen;
    18   static const Float_t gkBlindPixelQEBlue ;
    19   static const Float_t gkBlindPixelQEUV   ;
    20   static const Float_t gkBlindPixelQECT1  ;
    21 
    22   static const Float_t gkBlindPixelQEGreenErr;
    23   static const Float_t gkBlindPixelQEBlueErr ;
    24   static const Float_t gkBlindPixelQEUVErr   ;
    25   static const Float_t gkBlindPixelQECT1Err  ;
    26  
    27   static const Float_t gkBlindPixelAttGreen;
    28   static const Float_t gkBlindPixelAttBlue ;
    29   static const Float_t gkBlindPixelAttUV   ;
    30   static const Float_t gkBlindPixelAttCT1  ;
    31 
    32   Float_t fLambdaCheckLimit; // The rel. limit for the rel difference between lambda and lambda check
    33   Float_t fLambdaErrLimit;   // The limit for acceptance of the fitted lambda
    34 
    35   Float_t fLambda;           // The mean of the Poisson fit
    36   Float_t fLambdaCheck;      // The mean of the pedestal Check fit
    37   Float_t fMu0;              // The position of the pedestal-peak
    38   Float_t fMu1;              // The position of the first phe-peak
    39   Float_t fSigma0;           // The width of the pedestal-peak
    40   Float_t fSigma1;           // The width of the first phe-peak 
    41 
    42   Float_t fLambdaErr;        // The error of the mean charge after the fit
    43   Float_t fLambdaCheckErr;   // The error of the mean of the pedestal Check fit
    44   Float_t fMu0Err;           // The error of the position of the pedestal-peak
    45   Float_t fMu1Err;           // The error of the position of the first phe-peak
    46   Float_t fSigma0Err;        // The error of the width of the pedestal-peak
    47   Float_t fSigma1Err;        // The error of the width of the first phe-peak 
    48 
    49   Float_t fProb;             // The probability of the fit
    50  
    51   Float_t fMeanFluxInsidePlexiglass;          //  The mean number of photons in an INNER PIXEL inside the plexiglass
    52   Float_t fMeanFluxErrInsidePlexiglass;       //  The uncertainty about the number of photons in an INNER PIXEL 
    53 
    54   Byte_t fFlags;
    55 
    56   enum { kOscillating, kPedestalFitOK, kSinglePheFitOK, kChargeFitValid, kExcluded,
     41  enum { kOscillating, kPedestalFitOK, kSinglePheFitOK, kChargeFitValid,
    5742         kFluxInsidePlexiglassAvailable };
    5843
     
    6752
    6853  // Setters
    69   void SetColor       ( const PulserColor_t color )  {  fColor = color;  }
     54  void SetColor            ( const PulserColor_t color )          { fColor        = color; }
     55  void SetLambda           ( const Float_t f )                    { fLambda           = f; }
     56  void SetLambdaErr        ( const Float_t f )                    { fLambdaVar        = f*f; }
     57  void SetLambdaCheck      ( const Float_t f )                    { fLambdaCheck      = f; }
     58  void SetLambdaCheckErr   ( const Float_t f )                    { fLambdaCheckErr   = f; }
     59  void SetMu0              ( const Float_t f )                    { fMu0              = f; }
     60  void SetMu0Err           ( const Float_t f )                    { fMu0Err           = f; }
     61  void SetMu1              ( const Float_t f )                    { fMu1              = f; }
     62  void SetMu1Err           ( const Float_t f )                    { fMu1Err           = f; }
     63  void SetSigma0           ( const Float_t f )                    { fSigma0           = f; }
     64  void SetSigma0Err        ( const Float_t f )                    { fSigma0Err        = f; }
     65  void SetSigma1           ( const Float_t f )                    { fSigma1           = f; }
     66  void SetSigma1Err        ( const Float_t f )                    { fSigma1Err        = f; }
    7067
    71   void SetLambda      ( const Float_t f ) { fLambda      = f;  }
    72   void SetLambdaCheck ( const Float_t f ) { fLambdaCheck = f;  }
    73   void SetMu0         ( const Float_t f ) { fMu0         = f;  }
    74   void SetMu1         ( const Float_t f ) { fMu1         = f;  }
    75   void SetSigma0      ( const Float_t f ) { fSigma0      = f;  }
    76   void SetSigma1      ( const Float_t f ) { fSigma1      = f;  }
    77 
    78   void SetLambdaErr       ( const Float_t f ) { fLambdaErr    = f;  }
    79   void SetLambdaCheckErr  ( const Float_t f ) { fLambdaCheck = f;   }
    80   void SetMu0Err          ( const Float_t f ) { fMu0Err       = f;  }
    81   void SetMu1Err          ( const Float_t f ) { fMu1Err       = f;  }
    82   void SetSigma0Err       ( const Float_t f ) { fSigma0Err    = f;  }
    83   void SetSigma1Err       ( const Float_t f ) { fSigma1Err    = f;  }
    84 
    85   void SetProb            ( const Float_t f ) { fProb         = f;  }
    86 
    87   void SetLambdaCheckLimit ( const Float_t f=fgLambdaCheckLimit  ) { fLambdaCheckLimit  = f; }
    88   void SetLambdaErrLimit   ( const Float_t f=fgLambdaErrLimit    ) { fLambdaErrLimit    = f; }
    89 
    90   void SetOscillating     ( const Bool_t b=kTRUE);
    91   void SetChargeFitValid  ( const Bool_t b=kTRUE);
    92   void SetPedestalFitOK   ( const Bool_t b=kTRUE);
    93   void SetSinglePheFitOK ( const Bool_t b=kTRUE);
    94   void SetFluxInsidePlexiglassAvailable  ( const Bool_t b=kTRUE);
    95   void SetExcluded        ( const Bool_t b=kTRUE);
     68  void SetOscillating      ( const Bool_t  b=kTRUE);
     69  void SetChargeFitValid   ( const Bool_t  b=kTRUE);
     70  void SetPedestalFitOK    ( const Bool_t  b=kTRUE);
     71  void SetSinglePheFitOK   ( const Bool_t  b=kTRUE);
     72  void SetFluxInsidePlexiglassAvailable( const Bool_t b=kTRUE);
    9673 
    9774  // Getters
    98   Float_t GetLambda()      const    { return fLambda;      }
    99   Float_t GetLambdaCheck() const    { return fLambdaCheck; }
    100   Float_t GetMu0()         const    { return fMu0;         }
    101   Float_t GetMu1()         const    { return fMu1;         }
    102   Float_t GetSigma0()      const    { return fSigma0;      }
    103   Float_t GetSigma1()      const    { return fSigma1;      }
    104 
    105   Float_t GetLambdaErr()      const    { return fLambdaErr;      }
    106   Float_t GetLambdaCheckErr() const    { return fLambdaCheckErr; }
    107   Float_t GetMu0Err()         const    { return fMu0Err;         }
    108   Float_t GetMu1Err()         const    { return fMu1Err;         }
    109   Float_t GetSigma0Err()      const    { return fSigma0Err;      }
    110   Float_t GetSigma1Err()      const    { return fSigma1Err;      }
    111 
    112   Float_t GetMeanFluxInsidePlexiglass()     const { return fMeanFluxInsidePlexiglass;     }
    113   Float_t GetMeanFluxErrInsidePlexiglass()  const { return fMeanFluxErrInsidePlexiglass;  }
     75  Float_t GetLambda()                  const { return fLambda;               }
     76  Float_t GetLambdaErr()               const;
     77  Float_t GetLambdaCheck()             const { return fLambdaCheck;          }
     78  Float_t GetLambdaCheckErr()          const { return fLambdaCheckErr;       }
     79  Float_t GetFluxInsidePlexiglass()    const { return fFluxInsidePlexiglass; }
     80  Float_t GetFluxInsidePlexiglassErr() const;
     81  Float_t GetMu0()                     const { return fMu0;                  }
     82  Float_t GetMu0Err()                  const { return fMu0Err;               }
     83  Float_t GetMu1()                     const { return fMu1;                  }
     84  Float_t GetMu1Err()                  const { return fMu1Err;               }
     85  Float_t GetSigma0()                  const { return fSigma0;               }
     86  Float_t GetSigma0Err()               const { return fSigma0Err;            }
     87  Float_t GetSigma1()                  const { return fSigma1;               }
     88  Float_t GetSigma1Err()               const { return fSigma1Err;            }
    11489
    11590  Bool_t  IsOscillating()                    const;
     
    11792  Bool_t  IsPedestalFitOK()                  const;
    11893  Bool_t  IsSinglePheFitOK()                 const;
    119   Bool_t  IsExcluded()                       const;
    12094  Bool_t  IsFluxInsidePlexiglassAvailable()  const;
    12195 
    12296  Bool_t CalcFluxInsidePlexiglass();
    123   Bool_t CheckChargeFitValidity();
    12497
    125   ClassDef(MCalibrationChargeBlindPix, 1)       // Container for Calibration ChargeBlind Pixel
     98  ClassDef(MCalibrationChargeBlindPix, 1)       // Container Charge Calibration Results Blind Pixel
    12699};
    127100
Note: See TracChangeset for help on using the changeset viewer.