Changeset 3677


Ignore:
Timestamp:
04/07/04 18:59:53 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3676 r3677  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
     20
     21 2004/04/07: Markus Gaug
     22   * mcalib/MHGausEvents.[h,cc]
     23     - added fBlackout events
     24
    2025
    2126 2004/04/06: Thomas Bretz
  • trunk/MagicSoft/Mars/mcalib/MCalibrationPix.cc

    r3676 r3677  
    2222\* ======================================================================== */
    2323/////////////////////////////////////////////////////////////////////////////
    24 //                                                                         //
    25 // MCalibrationPix                                                         //
    26 //                                                                         //
     24//                                                     
     25// MCalibrationPix                                     
     26//                                                     
    2727// Base Storage container for a calibration pixel. Holds mean and sigmas, 
    2828// their errors, the fit probability and the number of pickup events for
     
    3838//
    3939// The three flags: kValid, kExcluded and kHiGainSaturation may be set.
     40// The colors: kGREEN, kBLUE, kUV and kCT1 may be set.
    4041//
    4142/////////////////////////////////////////////////////////////////////////////
     
    5354// - fPixId to -1
    5455// - fFlags to 0
    55 // 
     56//
    5657// Calls:
    5758// - Clear()
     
    152153// --------------------------------------------------------------------------
    153154//
     155// Get the Square of either High Gain or Low Gain Mean
     156// depending on IsHighGainSaturation()
     157//
     158Float_t MCalibrationPix::GetMeanSquare()  const
     159{
     160
     161  if (IsHiGainSaturation())
     162    return fLoGainMean == -1. ? -1. : fLoGainMean * fLoGainMean;
     163  else
     164    return fHiGainMean == -1. ? -1. : fHiGainMean * fHiGainMean;
     165}
     166
     167
     168// --------------------------------------------------------------------------
     169//
    154170// Get the Relative Variance of either High Gain or Low Gain Sigma
    155171// depending on IsHighGainSaturation()
  • trunk/MagicSoft/Mars/mcalib/MCalibrationPix.h

    r3676 r3677  
    1010protected:
    1111
    12   Int_t   fPixId;             // the pixel Id
    13 
     12  Int_t   fPixId;             // Software PixId (needed to get Id in calls to Next())
    1413  UInt_t  fFlags;             // Flag for the set bits
    1514  Float_t fHiGainMean;        // Mean from fit to high gain values
     
    2827  Float_t fLoGainProb;        // Probability of fit to low gain values
    2928
    30   enum  { kHiGainSaturation, kExcluded, kValid };
    31  
     29  enum { kHiGainSaturation, kExcluded, kValid };   // Possible bits to be sets
     30
    3231public:
    3332
     
    6564  void SetHiGainSaturation( const Bool_t  b = kTRUE );
    6665  void SetValid           ( const Bool_t  b = kTRUE );
    67 
     66 
    6867  // Getters
    6968  Float_t GetHiGainMean       () const { return fHiGainMean   ;     }
     
    8786  Float_t GetMeanErr    () const { return IsHiGainSaturation() ? GetLoGainMeanErr()     : GetHiGainMeanErr()  ;   }
    8887  Float_t GetMeanRelVar () const;
     88  Float_t GetMeanSquare () const; 
    8989  Float_t GetProb       () const { return IsHiGainSaturation() ? GetLoGainProb()        : GetHiGainProb()     ;   }
    9090  Float_t GetSigma      () const { return IsHiGainSaturation() ? GetLoGainSigma()       : GetHiGainSigma()    ;   }
     
    9494  Float_t GetNumBlackout() const { return IsHiGainSaturation() ? GetLoGainNumBlackout() : GetHiGainNumBlackout(); }
    9595  Int_t   GetPixId      () const { return fPixId ;  }
    96 
     96 
    9797  Bool_t  IsHiGainSaturation() const;
    9898  Bool_t  IsExcluded()         const;
  • trunk/MagicSoft/Mars/mcalib/MHGausEvents.cc

    r3675 r3677  
    133133      fPowerSpectrum(NULL),
    134134      fGraphEvents(NULL), fGraphPowerSpectrum(NULL),
    135       fNbins(100), fFirst(0.), fLast(100.), fPixId(-1),
    136       fHGausHist(), fEvents(0),
    137       fFGausFit(NULL), fFExpFit(NULL)
     135      fEvents(0), fFGausFit(NULL), fFExpFit(NULL),
     136      fFirst(0.), fHGausHist(), fLast(100.),
     137      fNbins(100), fPixId(-1)
    138138{
    139139
Note: See TracChangeset for help on using the changeset viewer.