Changeset 3677
- Timestamp:
- 04/07/04 18:59:53 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3676 r3677 18 18 19 19 -*-*- END OF LINE -*-*- 20 21 2004/04/07: Markus Gaug 22 * mcalib/MHGausEvents.[h,cc] 23 - added fBlackout events 24 20 25 21 26 2004/04/06: Thomas Bretz -
trunk/MagicSoft/Mars/mcalib/MCalibrationPix.cc
r3676 r3677 22 22 \* ======================================================================== */ 23 23 ///////////////////////////////////////////////////////////////////////////// 24 // //25 // MCalibrationPix //26 // //24 // 25 // MCalibrationPix 26 // 27 27 // Base Storage container for a calibration pixel. Holds mean and sigmas, 28 28 // their errors, the fit probability and the number of pickup events for … … 38 38 // 39 39 // The three flags: kValid, kExcluded and kHiGainSaturation may be set. 40 // The colors: kGREEN, kBLUE, kUV and kCT1 may be set. 40 41 // 41 42 ///////////////////////////////////////////////////////////////////////////// … … 53 54 // - fPixId to -1 54 55 // - fFlags to 0 55 // 56 // 56 57 // Calls: 57 58 // - Clear() … … 152 153 // -------------------------------------------------------------------------- 153 154 // 155 // Get the Square of either High Gain or Low Gain Mean 156 // depending on IsHighGainSaturation() 157 // 158 Float_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 // 154 170 // Get the Relative Variance of either High Gain or Low Gain Sigma 155 171 // depending on IsHighGainSaturation() -
trunk/MagicSoft/Mars/mcalib/MCalibrationPix.h
r3676 r3677 10 10 protected: 11 11 12 Int_t fPixId; // the pixel Id 13 12 Int_t fPixId; // Software PixId (needed to get Id in calls to Next()) 14 13 UInt_t fFlags; // Flag for the set bits 15 14 Float_t fHiGainMean; // Mean from fit to high gain values … … 28 27 Float_t fLoGainProb; // Probability of fit to low gain values 29 28 30 enum { kHiGainSaturation, kExcluded, kValid };31 29 enum { kHiGainSaturation, kExcluded, kValid }; // Possible bits to be sets 30 32 31 public: 33 32 … … 65 64 void SetHiGainSaturation( const Bool_t b = kTRUE ); 66 65 void SetValid ( const Bool_t b = kTRUE ); 67 66 68 67 // Getters 69 68 Float_t GetHiGainMean () const { return fHiGainMean ; } … … 87 86 Float_t GetMeanErr () const { return IsHiGainSaturation() ? GetLoGainMeanErr() : GetHiGainMeanErr() ; } 88 87 Float_t GetMeanRelVar () const; 88 Float_t GetMeanSquare () const; 89 89 Float_t GetProb () const { return IsHiGainSaturation() ? GetLoGainProb() : GetHiGainProb() ; } 90 90 Float_t GetSigma () const { return IsHiGainSaturation() ? GetLoGainSigma() : GetHiGainSigma() ; } … … 94 94 Float_t GetNumBlackout() const { return IsHiGainSaturation() ? GetLoGainNumBlackout() : GetHiGainNumBlackout(); } 95 95 Int_t GetPixId () const { return fPixId ; } 96 96 97 97 Bool_t IsHiGainSaturation() const; 98 98 Bool_t IsExcluded() const; -
trunk/MagicSoft/Mars/mcalib/MHGausEvents.cc
r3675 r3677 133 133 fPowerSpectrum(NULL), 134 134 fGraphEvents(NULL), fGraphPowerSpectrum(NULL), 135 f Nbins(100), fFirst(0.), fLast(100.), fPixId(-1),136 f HGausHist(), fEvents(0),137 f FGausFit(NULL), fFExpFit(NULL)135 fEvents(0), fFGausFit(NULL), fFExpFit(NULL), 136 fFirst(0.), fHGausHist(), fLast(100.), 137 fNbins(100), fPixId(-1) 138 138 { 139 139
Note:
See TracChangeset
for help on using the changeset viewer.