Changeset 3676
- Timestamp:
- 04/06/04 22:10:37 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3675 r3676 166 166 167 167 * mcalib/MHGausEvents.[h,cc] 168 * mcalib/MCalibrationPix.[h,cc] 169 * mcalib/MHCalibrationCam.cc 168 170 - add to Pickup also Blackout events 169 171 -
trunk/MagicSoft/Mars/mcalib/MCalibrationPix.cc
r3672 r3676 33 33 // 34 34 // Calls to GetMean(), GetMeanErr(), GetSigma(), GetSigmaErr(), GetProb() or 35 // GetNumPickup() test first the bit kHiGainSaturation before returning 36 // the high-gain or low-gain value, analogue for the corr. Setters. 35 // GetNumPickup() and GetNumBlackout() test first the bit kHiGainSaturation 36 // before returning the high-gain or low-gain value, analogue for the 37 // corr. Setters. 37 38 // 38 39 // The three flags: kValid, kExcluded and kHiGainSaturation may be set. … … 77 78 { 78 79 80 fHiGainNumBlackout = -1 ; 79 81 fHiGainNumPickup = -1 ; 80 82 fHiGainMean = -1.; … … 84 86 fHiGainSigmaVar = -1.; 85 87 88 fLoGainNumBlackout = -1 ; 86 89 fLoGainNumPickup = -1 ; 87 90 fLoGainMean = -1.; -
trunk/MagicSoft/Mars/mcalib/MCalibrationPix.h
r3672 r3676 10 10 protected: 11 11 12 Int_t fPixId; // the pixel Id12 Int_t fPixId; // the pixel Id 13 13 14 UInt_t fFlags; // Flag for the set bits15 16 Float_t fHiGainMean ; // Mean from fit to high gain values17 Float_t fHiGain MeanVar; // Error of mean from fit to high gain values18 Float_t fHiGain Sigma; // Sigma from fit to high gain values19 Float_t fHiGainSigma Var; // Error of sigma from fit to high gain values20 Float_t fHiGain Prob; // Probability offit to high gain values21 Float_t fHiGain NumPickup; // Number of pickup events in high-gain22 23 Float_t fLoGainMean ; // Mean from fit to highgain values24 Float_t fLoGain MeanVar; // Error of mean from fit to low gain values25 Float_t fLoGain Sigma; // Sigma of from fit to low gain values26 Float_t fLoGainSigma Var; // Error of sigmafrom fit to low gain values27 Float_t fLoGain Prob; // Probability offit to low gain values28 Float_t fLoGain NumPickup; // Number of pickup events in low-gain14 UInt_t fFlags; // Flag for the set bits 15 Float_t fHiGainMean; // Mean from fit to high gain values 16 Float_t fHiGainMeanVar; // Error of mean from fit to high gain values 17 Float_t fHiGainNumBlackout; // Number blackout events in high-gain 18 Float_t fHiGainNumPickup; // Number pickup events in high-gain 19 Float_t fHiGainSigma; // Sigma from fit to high gain values 20 Float_t fHiGainSigmaVar; // Error of sigma from fit to high gain values 21 Float_t fHiGainProb; // Probability of fit to high gain values 22 Float_t fLoGainMean; // Mean from fit to high gain values 23 Float_t fLoGainMeanVar; // Error of mean from fit to low gain values 24 Float_t fLoGainNumBlackout; // Number blackout events in low-gain 25 Float_t fLoGainNumPickup; // Number pickup events in low-gain 26 Float_t fLoGainSigma; // Sigma of from fit to low gain values 27 Float_t fLoGainSigmaVar; // Error of sigma from fit to low gain values 28 Float_t fLoGainProb; // Probability of fit to low gain values 29 29 30 30 enum { kHiGainSaturation, kExcluded, kValid }; … … 40 40 void SetPixId( const Int_t i ) { fPixId = i; } 41 41 42 void SetHiGainMean ( const Float_t f ) { fHiGainMean = f; } 43 void SetHiGainMeanVar ( const Float_t f ) { fHiGainMeanVar = f; } 44 void SetHiGainProb ( const Float_t f ) { fHiGainProb = f; } 45 void SetHiGainSigma ( const Float_t f ) { fHiGainSigma = f; } 46 void SetHiGainSigmaVar ( const Float_t f ) { fHiGainSigmaVar = f; } 47 void SetHiGainNumPickup ( const Float_t f ) { fHiGainNumPickup = f; } 48 49 void SetLoGainMean ( const Float_t f ) { fLoGainMean = f; } 50 void SetLoGainMeanVar ( const Float_t f ) { fLoGainMeanVar = f; } 51 void SetLoGainProb ( const Float_t f ) { fLoGainProb = f; } 52 void SetLoGainSigma ( const Float_t f ) { fLoGainSigma = f; } 53 void SetLoGainSigmaVar ( const Float_t f ) { fLoGainSigmaVar = f; } 54 void SetLoGainNumPickup ( const Float_t f ) { fLoGainNumPickup = f; } 55 56 void SetMean ( const Float_t f ) { IsHiGainSaturation() ? fLoGainMean = f : fHiGainMean = f ; } 57 void SetMeanVar ( const Float_t f ) { IsHiGainSaturation() ? fLoGainMeanVar = f : fHiGainMeanVar = f ; } 58 void SetProb ( const Float_t f ) { IsHiGainSaturation() ? fLoGainProb = f : fHiGainProb = f ; } 59 void SetSigma ( const Float_t f ) { IsHiGainSaturation() ? fLoGainSigma = f : fHiGainSigma = f ; } 60 void SetSigmaVar ( const Float_t f ) { IsHiGainSaturation() ? fLoGainSigmaVar = f : fHiGainSigmaVar = f ; } 61 void SetNumPickup ( const Float_t f ) { IsHiGainSaturation() ? fLoGainNumPickup = f : fHiGainNumPickup = f ; } 42 void SetHiGainMean ( const Float_t f ) { fHiGainMean = f; } 43 void SetHiGainMeanVar ( const Float_t f ) { fHiGainMeanVar = f; } 44 void SetHiGainNumBlackout ( const Float_t f ) { fHiGainNumBlackout = f; } 45 void SetHiGainNumPickup ( const Float_t f ) { fHiGainNumPickup = f; } 46 void SetHiGainProb ( const Float_t f ) { fHiGainProb = f; } 47 void SetHiGainSigma ( const Float_t f ) { fHiGainSigma = f; } 48 void SetHiGainSigmaVar ( const Float_t f ) { fHiGainSigmaVar = f; } 49 void SetLoGainMean ( const Float_t f ) { fLoGainMean = f; } 50 void SetLoGainMeanVar ( const Float_t f ) { fLoGainMeanVar = f; } 51 void SetLoGainNumBlackout ( const Float_t f ) { fLoGainNumBlackout = f; } 52 void SetLoGainNumPickup ( const Float_t f ) { fLoGainNumPickup = f; } 53 void SetLoGainProb ( const Float_t f ) { fLoGainProb = f; } 54 void SetLoGainSigma ( const Float_t f ) { fLoGainSigma = f; } 55 void SetLoGainSigmaVar ( const Float_t f ) { fLoGainSigmaVar = f; } 56 void SetMean ( const Float_t f ) { IsHiGainSaturation() ? fLoGainMean = f : fHiGainMean = f ; } 57 void SetMeanVar ( const Float_t f ) { IsHiGainSaturation() ? fLoGainMeanVar = f : fHiGainMeanVar = f ; } 58 void SetNumBlackout( const Float_t f ) { IsHiGainSaturation() ? fLoGainNumBlackout = f : fHiGainNumBlackout = f ; } 59 void SetNumPickup ( const Float_t f ) { IsHiGainSaturation() ? fLoGainNumPickup = f : fHiGainNumPickup = f ; } 60 void SetProb ( const Float_t f ) { IsHiGainSaturation() ? fLoGainProb = f : fHiGainProb = f ; } 61 void SetSigma ( const Float_t f ) { IsHiGainSaturation() ? fLoGainSigma = f : fHiGainSigma = f ; } 62 void SetSigmaVar ( const Float_t f ) { IsHiGainSaturation() ? fLoGainSigmaVar = f : fHiGainSigmaVar = f ; } 62 63 63 64 void SetExcluded ( const Bool_t b = kTRUE ); … … 66 67 67 68 // Getters 68 Float_t GetHiGainMean () const { return fHiGainMean ; } 69 Float_t GetHiGainMeanErr () const; 70 Float_t GetHiGainProb () const { return fHiGainProb ; } 71 Float_t GetHiGainSigma () const { return fHiGainSigma ; } 72 Float_t GetHiGainSigmaErr () const; 73 Float_t GetHiGainNumPickup() const { return fHiGainNumPickup; } 69 Float_t GetHiGainMean () const { return fHiGainMean ; } 70 Float_t GetHiGainMeanErr () const; 71 Float_t GetHiGainProb () const { return fHiGainProb ; } 72 Float_t GetHiGainSigma () const { return fHiGainSigma ; } 73 Float_t GetHiGainSigmaErr () const; 74 Float_t GetHiGainNumPickup () const { return fHiGainNumPickup; } 75 Float_t GetHiGainNumBlackout() const { return fHiGainNumBlackout; } 74 76 75 virtual Float_t GetLoGainMean () const { return fLoGainMean ; } 76 virtual Float_t GetLoGainMeanErr () const; 77 virtual Float_t GetLoGainMeanRelVar() const; 78 virtual Float_t GetLoGainProb () const { return fLoGainProb ; } 79 virtual Float_t GetLoGainSigma () const { return fLoGainSigma ; } 80 virtual Float_t GetLoGainSigmaErr () const; 81 virtual Float_t GetLoGainNumPickup () const { return fLoGainNumPickup; } 77 virtual Float_t GetLoGainMean () const { return fLoGainMean; } 78 virtual Float_t GetLoGainMeanErr () const; 79 virtual Float_t GetLoGainMeanRelVar () const; 80 virtual Float_t GetLoGainProb () const { return fLoGainProb; } 81 virtual Float_t GetLoGainSigma () const { return fLoGainSigma; } 82 virtual Float_t GetLoGainSigmaErr () const; 83 virtual Float_t GetLoGainNumPickup () const { return fLoGainNumPickup; } 84 virtual Float_t GetLoGainNumBlackout() const { return fLoGainNumBlackout; } 82 85 83 Float_t GetMean () const { return IsHiGainSaturation() ? GetLoGainMean() : GetHiGainMean() ;}84 Float_t GetMeanErr () const { return IsHiGainSaturation() ? GetLoGainMeanErr() : GetHiGainMeanErr() ;}86 Float_t GetMean () const { return IsHiGainSaturation() ? GetLoGainMean() : GetHiGainMean() ; } 87 Float_t GetMeanErr () const { return IsHiGainSaturation() ? GetLoGainMeanErr() : GetHiGainMeanErr() ; } 85 88 Float_t GetMeanRelVar () const; 86 Float_t GetProb () const { return IsHiGainSaturation() ? GetLoGainProb() : GetHiGainProb() ;}87 Float_t GetSigma () const { return IsHiGainSaturation() ? GetLoGainSigma() : GetHiGainSigma() ;}88 Float_t GetSigmaErr () const { return IsHiGainSaturation() ? GetLoGainSigmaErr() : GetHiGainSigmaErr() ;}89 Float_t GetProb () const { return IsHiGainSaturation() ? GetLoGainProb() : GetHiGainProb() ; } 90 Float_t GetSigma () const { return IsHiGainSaturation() ? GetLoGainSigma() : GetHiGainSigma() ; } 91 Float_t GetSigmaErr () const { return IsHiGainSaturation() ? GetLoGainSigmaErr() : GetHiGainSigmaErr() ; } 89 92 Float_t GetSigmaRelVar() const; 90 Float_t GetNumPickup () const { return IsHiGainSaturation() ? GetLoGainNumPickup() : GetHiGainNumPickup();}91 93 Float_t GetNumPickup () const { return IsHiGainSaturation() ? GetLoGainNumPickup() : GetHiGainNumPickup(); } 94 Float_t GetNumBlackout() const { return IsHiGainSaturation() ? GetLoGainNumBlackout() : GetHiGainNumBlackout(); } 92 95 Int_t GetPixId () const { return fPixId ; } 93 96 -
trunk/MagicSoft/Mars/mcalib/MHCalibrationCam.cc
r3671 r3676 713 713 // 5) Retrieve the results and store them in this class 714 714 // 715 pix.SetHiGainMean ( hist.GetMean() ); 716 pix.SetHiGainMeanVar ( hist.GetMeanErr() * hist.GetMeanErr() ); 717 pix.SetHiGainSigma ( hist.GetSigma() ); 718 pix.SetHiGainSigmaVar ( hist.GetSigmaErr()* hist.GetSigmaErr() ); 719 pix.SetHiGainProb ( hist.GetProb() ); 720 pix.SetHiGainNumPickup ( hist.GetPickup() ); 715 pix.SetHiGainMean ( hist.GetMean() ); 716 pix.SetHiGainMeanVar ( hist.GetMeanErr() * hist.GetMeanErr() ); 717 pix.SetHiGainSigma ( hist.GetSigma() ); 718 pix.SetHiGainSigmaVar ( hist.GetSigmaErr()* hist.GetSigmaErr() ); 719 pix.SetHiGainProb ( hist.GetProb() ); 720 pix.SetHiGainNumBlackout( hist.GetBlackout() ); 721 pix.SetHiGainNumPickup ( hist.GetPickup() ); 721 722 722 723 } … … 776 777 // 5) Retrieve the results and store them in this class 777 778 // 778 pix.SetLoGainMean ( hist.GetMean() ); 779 pix.SetLoGainMeanVar ( hist.GetMeanErr() * hist.GetMeanErr() ); 780 pix.SetLoGainSigma ( hist.GetSigma() ); 781 pix.SetLoGainSigmaVar ( hist.GetSigmaErr() * hist.GetSigmaErr() ); 782 pix.SetLoGainProb ( hist.GetProb() ); 783 pix.SetLoGainNumPickup ( hist.GetPickup() ); 779 pix.SetLoGainMean ( hist.GetMean() ); 780 pix.SetLoGainMeanVar ( hist.GetMeanErr() * hist.GetMeanErr() ); 781 pix.SetLoGainSigma ( hist.GetSigma() ); 782 pix.SetLoGainSigmaVar ( hist.GetSigmaErr() * hist.GetSigmaErr() ); 783 pix.SetLoGainProb ( hist.GetProb() ); 784 pix.SetLoGainNumBlackout( hist.GetBlackout() ); 785 pix.SetLoGainNumPickup ( hist.GetPickup() ); 784 786 785 787 }
Note:
See TracChangeset
for help on using the changeset viewer.