Changeset 4333
- Timestamp:
- 06/23/04 00:26:01 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mcalib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationChargePix.h
r4186 r4333 36 36 Float_t fPedVar; // Variance of pedestal 37 37 Float_t fPedRms; // Pedestal RMS (from MPedestalPix) times sqrt nr. FADC slices 38 Float_t fPedRmsVar; // Pedestal RMS (from MPedestalPix) times sqrt nr. FADC slices 38 39 Float_t fPheFFactorMethod; // Number Phe's calculated (F-factor method) 39 40 Float_t fPheFFactorMethodVar; // Variance number of Phe's (F-factor method) … … 66 67 void SetMeanFFactorFADC2Phot ( const Float_t f) { fMeanFFactorFADC2Phot = f; } 67 68 void SetPedestal ( const Float_t ped, const Float_t pedrms, const Float_t pederr); 69 void SetPed ( const Float_t ped, const Float_t pederr); 70 void SetPedRMS ( const Float_t pedrms, const Float_t pedrmserr); 68 71 void SetPheFFactorMethod ( const Float_t f) { fPheFFactorMethod = f; } 69 72 void SetPheFFactorMethodVar ( const Float_t f) { fPheFFactorMethodVar = f; } … … 89 92 Float_t GetMeanFFactorFADC2PhotVar () const { return fMeanFFactorFADC2PhotVar; } 90 93 Float_t GetPed () const { return fPed; } 91 Float_t GetPedErr () const ;94 Float_t GetPedErr () const { return TMath::Sqrt(fPedVar); } 92 95 Float_t GetPedRms () const; 93 96 Float_t GetPedRmsErr () const; … … 110 113 Bool_t CalcMeanFFactor ( const Float_t nphotons, const Float_t nphotonsrelvar ); 111 114 112 ClassDef(MCalibrationChargePix, 1) // Container Charge Calibration Results Pixel115 ClassDef(MCalibrationChargePix, 2) // Container Charge Calibration Results Pixel 113 116 }; 114 117 -
trunk/MagicSoft/Mars/mcalib/MCalibrationPix.cc
r3828 r4333 98 98 SetExcluded ( kFALSE ); 99 99 SetValid ( kFALSE ); 100 SetDebug ( kFALSE ); 100 101 101 102 } … … 110 111 } 111 112 113 // -------------------------------------------------------------------------- 114 // 115 // Set the Valid Bit from outside 116 // 117 void MCalibrationPix::SetDebug(Bool_t b ) 118 { 119 b ? SETBIT(fFlags, kDebug) : CLRBIT(fFlags, kDebug); 120 } 112 121 113 122 // -------------------------------------------------------------------------- … … 255 264 256 265 if (IsHiGainSaturation()) 257 if (fLoGainMeanVar < 0. )266 if (fLoGainMeanVar < 0. || fLoGainMean < 0.) 258 267 return -1.; 259 268 else 260 269 return fLoGainMeanVar / (fLoGainMean * fLoGainMean); 261 270 else 262 if (fHiGainMeanVar < 0. )271 if (fHiGainMeanVar < 0. || fHiGainMean < 0.) 263 272 return -1.; 264 273 else … … 377 386 // -------------------------------------------------------------------------- 378 387 // 388 // Test bit kDebug 389 // 390 Bool_t MCalibrationPix::IsDebug() const 391 { 392 return TESTBIT(fFlags,kDebug); 393 } 394 395 // -------------------------------------------------------------------------- 396 // 379 397 // Test bit kExcluded 380 398 // -
trunk/MagicSoft/Mars/mcalib/MCalibrationPix.h
r3711 r4333 27 27 Float_t fLoGainProb; // Probability of fit to low gain values 28 28 29 enum { kHiGainSaturation, kExcluded, kValid }; // Possible bits to be sets29 enum { kHiGainSaturation, kExcluded, kValid, kDebug }; // Possible bits to be sets 30 30 31 31 public: … … 60 60 void SetSigma ( const Float_t f ) { IsHiGainSaturation() ? fLoGainSigma = f : fHiGainSigma = f ; } 61 61 void SetSigmaVar ( const Float_t f ) { IsHiGainSaturation() ? fLoGainSigmaVar = f : fHiGainSigmaVar = f ; } 62 62 63 void SetDebug ( const Bool_t b = kTRUE ); 63 64 void SetExcluded ( const Bool_t b = kTRUE ); 64 65 void SetHiGainSaturation( const Bool_t b = kTRUE ); … … 100 101 101 102 Bool_t IsHiGainSaturation() const; 103 Bool_t IsDebug () const; 102 104 Bool_t IsExcluded() const; 103 105 Bool_t IsValid () const;
Note:
See TracChangeset
for help on using the changeset viewer.