Changeset 3027
- Timestamp:
- 02/05/04 17:21:09 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3025 r3027 9 9 - removed all TStrings and replace them by Form(..) 10 10 - Check for nan's of all returned fit values 11 12 * mcalib/MCalibrationPix.[h,cc] 13 - reshuffled HiLoGainConversion, calculation of F-Factor method, 14 - calculation of total F-Factor of the readout. 11 15 12 16 -
trunk/MagicSoft/Mars/mcalib/MCalibrationPix.h
r3012 r3027 14 14 static const Float_t gkElectronicPedRms; // The pure electronic component of the RMS 15 15 static const Float_t gkErrElectronicPedRms; // The error of the pure electronic component of the RMS 16 static const Float_t gkFFactor; // The laboratory F-factor 17 static const Float_t gkFFactorError; // The laboratory F-factor Error 16 static const Float_t gkFFactor; // The laboratory F-factor of the PMTs 17 static const Float_t gkFFactorError; // The laboratory F-factor Error of the PMTs 18 18 static const Float_t gkChargeLimit; // The limit (in units of PedRMS) for acceptance of the fitted mean charge 19 19 static const Float_t gkChargeErrLimit; // The limit (in units of PedRMS) for acceptance of the fitted charge sigma … … 21 21 static const Float_t gkTimeLimit; // The limit (in units of FADC slices) for acceptance of the fitted time 22 22 static const Float_t gkTimeErrLimit; // The limit (in units of FADC slices) for acceptance of the fitted time sigma 23 23 static const Float_t gkConvFFactorRelErrorLimit; // The limit (in units of [1]) for acceptance of the rel. error of the conversion factor with the FFactor method 24 25 24 26 Int_t fPixId; // the pixel Id 25 27 … … 30 32 Float_t fSigmaCharge; // The sigma of the mean charge after the fit 31 33 Float_t fErrSigmaCharge; // The error of the sigma of the mean charge after the fit 32 Float_t fRSigmaSquare; // The reduced squares of sigmas after the fit 34 Float_t fRSigmaCharge; // The reduced squares of sigmas after the fit 35 Float_t fErrRSigmaCharge; // The reduced squares of sigmas after the fit 33 36 Float_t fChargeProb; // The probability of the fit function 34 37 … … 37 40 Float_t fErrPedRms; // The error of the pedestal RMS (from MPedestalPix) 38 41 39 Float_t f Time; // The mean arrival timeafter the fit40 Float_t f ErrTime; // The mean arrival timeerror after the fit41 Float_t f SigmaTime;// The error of the mean arrival time after the fit42 Float_t fMeanTimeOffset; // The mean relative arrival time offset after the fit 43 Float_t fMeanTimeOffsetError; // The mean relative arrival time offset error after the fit 44 Float_t fTimingPrecision; // The error of the mean arrival time after the fit 42 45 Float_t fTimeProb; // The probability of the fit function 43 46 … … 55 58 Float_t fPheFFactorMethodError; // The error on the number of Phe's calculated (F-factor method) 56 59 57 Float_t fConversionFFactorMethod; // The conversion factor to Phe's (F-factor method) 58 Float_t fConversionBlindPixelMethod; // The conversion factor to Ph's (Blind Pixel method) 59 Float_t fConversionPINDiodeMethod; // The conversion factor to Ph's (PIN Diode method) 60 61 Float_t fConversionErrorFFactorMethod; // The error of the conversion factor to Phe's (F-factor method) 62 Float_t fConversionErrorBlindPixelMethod; // The error of the conversion factor to Ph's (Blind Pixel method) 63 Float_t fConversionErrorPINDiodeMethod; // The error of the conversion factor to Ph's (PIN Diode method) 64 65 Float_t fConversionSigmaFFactorMethod; // The sigma of conversion factor to Ph's (F-factor method) 66 Float_t fConversionSigmaBlindPixelMethod; // The conversion factor to Ph's (Blind Pixel method) 67 Float_t fConversionSigmaPINDiodeMethod; // The conversion factor to Phd's (PIN Diode method) 68 60 Float_t fMeanConversionFFactorMethod; // The conversion factor to Phe's (F-factor method) 61 Float_t fMeanConversionBlindPixelMethod; // The conversion factor to Ph's (Blind Pixel method) 62 Float_t fMeanConversionPINDiodeMethod; // The conversion factor to Ph's (PIN Diode method) 63 64 Float_t fErrorConversionFFactorMethod; // The error of the conversion factor to Phe's (F-factor method) 65 Float_t fErrorConversionBlindPixelMethod; // The error of the conversion factor to Ph's (Blind Pixel method) 66 Float_t fErrorConversionPINDiodeMethod; // The error of the conversion factor to Ph's (PIN Diode method) 67 68 Float_t fSigmaConversionFFactorMethod; // The sigma of conversion factor to Phe's (F-factor method) 69 Float_t fSigmaConversionBlindPixelMethod; // The conversion factor to Ph's (Blind Pixel method) 70 Float_t fSigmaConversionPINDiodeMethod; // The conversion factor to Ph's (PIN Diode method) 71 72 Float_t fTotalFFactor; // The F-Factor of the total readout system (Sigma(out)/mean(out)*Mean(in)/sigma(in) 73 Float_t fTotalFFactorError; // The error on the F-Factor of the total readout system 74 69 75 Float_t fConversionHiLo; // The conversion factor between Hi Gain and Lo Gain 70 76 Float_t fConversionHiLoError; // The error of the conversion factor between Hi Gain and Lo Gain 77 78 Float_t fNumHiGainSamples; 79 Float_t fNumLoGainSamples; 80 81 Bool_t fFactorCalculated; 71 82 72 83 enum { kHiGainSaturation, … … 81 92 Bool_t CheckTimeFitValidity(); 82 93 Bool_t CheckOscillations(); 94 95 Bool_t CalcFFactorMethod(); 83 96 84 97 public: … … 93 106 94 107 // Charges 95 Float_t GetCharge() const { return fCharge; } 96 Float_t GetErrCharge() const { return fErrCharge; } 97 Float_t GetChargeProb() const { return fChargeProb; } 98 Float_t GetSigmaCharge() const { return fSigmaCharge; } 99 Float_t GetErrSigmaCharge() const { return fErrSigmaCharge; } 100 Float_t GetRSigmaSquare() const { return fRSigmaSquare; } 108 Float_t GetCharge() const { return fCharge; } 109 Float_t GetErrCharge() const { return fErrCharge; } 110 Float_t GetChargeProb() const { return fChargeProb; } 111 Float_t GetSigmaCharge() const { return fSigmaCharge; } 112 Float_t GetErrSigmaCharge() const { return fErrSigmaCharge; } 113 Float_t GetRSigmaCharge() const { return fRSigmaCharge; } 114 Float_t GetErrRSigmaCharge() const { return fErrRSigmaCharge; } 101 115 102 116 // Times 103 Float_t GetTime() const { return fTime; } 104 Float_t GetErrTime() const { return fErrTime; } 105 Float_t GetSigmaTime() const { return fSigmaTime; } 106 Float_t GetTimeProb() const { return fTimeProb; } 117 Float_t GetMeanTimeOffset() const { return fMeanTimeOffset; } 118 Float_t GetMeanTimeOffsetError() const { return fMeanTimeOffsetError; } 119 Float_t GetTimingPrecision() const { return fTimingPrecision; } 120 Float_t GetTimingPrecisionError() const; 121 Float_t GetTimeProb() const { return fTimeProb; } 107 122 108 123 Float_t GetAbsTimeMean() const { return fAbsTimeMean; } … … 114 129 Float_t GetConversionHiLoError() const { return fConversionHiLoError; } 115 130 116 Float_t GetMeanConversionBlindPixelMethod() const { return f ConversionBlindPixelMethod; }117 Float_t GetErrorConversionBlindPixelMethod() const { return f ConversionErrorBlindPixelMethod ; }118 Float_t GetSigmaConversionBlindPixelMethod() const { return f ConversionSigmaBlindPixelMethod ; }119 120 Float_t GetMeanConversionFFactorMethod() const { return fConversionFFactorMethod ; }121 Float_t GetErrorConversionFFactorMethod() const { return fConversionErrorFFactorMethod ; }122 Float_t GetSigmaConversionFFactorMethod() const { return fConversionSigmaFFactorMethod ; }123 124 Float_t Get PheFFactorMethod() const { return fPheFFactorMethod;}125 Float_t Get PheFFactorMethodError() const { return fPheFFactorMethodError;}126 127 Float_t GetMeanConversionPINDiodeMethod() const { return fConversionPINDiodeMethod ; } 128 Float_t Get ErrorConversionPINDiodeMethod() const { return fConversionErrorPINDiodeMethod ; }129 Float_t Get SigmaConversionPINDiodeMethod() const { return fConversionSigmaPINDiodeMethod ; }131 Float_t GetMeanConversionBlindPixelMethod() const { return fMeanConversionBlindPixelMethod ; } 132 Float_t GetErrorConversionBlindPixelMethod() const { return fErrorConversionBlindPixelMethod ; } 133 Float_t GetSigmaConversionBlindPixelMethod() const { return fSigmaConversionBlindPixelMethod ; } 134 135 Float_t GetMeanConversionFFactorMethod(); 136 Float_t GetErrorConversionFFactorMethod(); 137 Float_t GetSigmaConversionFFactorMethod(); 138 139 Float_t GetMeanConversionPINDiodeMethod() const { return fMeanConversionPINDiodeMethod ; } 140 Float_t GetErrorConversionPINDiodeMethod() const { return fErrorConversionPINDiodeMethod ; } 141 Float_t GetSigmaConversionPINDiodeMethod() const { return fSigmaConversionPINDiodeMethod ; } 142 143 Float_t GetPheFFactorMethod(); 144 Float_t GetPheFFactorMethodError(); 130 145 131 146 Int_t GetPixId() const { return fPixId; } … … 134 149 Float_t GetPedRms() const { return fPedRms; } 135 150 151 Float_t GetTotalFFactor(); 152 Float_t GetTotalFFactorError(); 153 136 154 Bool_t IsExcluded() const; 137 155 Bool_t IsChargeFitValid() const; … … 139 157 Bool_t IsFitted() const; 140 158 Bool_t IsBlindPixelMethodValid() const; 141 Bool_t IsFFactorMethodValid() const;142 159 Bool_t IsPINDiodeMethodValid() const; 160 Bool_t IsFFactorMethodValid(); 143 161 144 162 // Setter 145 void SetPedestal(Float_t ped, Float_t pedrms );163 void SetPedestal(Float_t ped, Float_t pedrms, Float_t higainsamp, Float_t logainsamp); 146 164 void SetConversionHiLo(Float_t c) { fConversionHiLo = c; } 147 165 void SetConversionHiLoError(Float_t e) { fConversionHiLoError = e; }
Note:
See TracChangeset
for help on using the changeset viewer.