Changeset 3055 for trunk/MagicSoft/Mars/mcalib
- Timestamp:
- 02/08/04 20:45:43 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MHCalibrationPixel.h
r3025 r3055 20 20 static const Int_t fChargeNbinsHiGain; 21 21 static const Int_t fChargeNbinsLoGain; 22 static const Int_t fChargevsNbins;23 22 static const Int_t fAbsTimeNbins; 24 23 static const Axis_t fAbsTimeFirst; 25 24 static const Axis_t fAbsTimeLast; 26 static const Int_t fRelTimeNbins;27 static const Axis_t fRelTimeFirst;28 static const Axis_t fRelTimeLast;29 25 static const Float_t fProbLimit; 30 26 static const Int_t fNDFLimit; 27 28 static const Axis_t fNyquistFreq; 29 static const Axis_t fMinFreq; 30 static const Int_t fPSDNbins; 31 31 32 32 Int_t fPixId; // Pixel Nr 33 33 34 TArrayF *fHiGains; //-> 35 TArrayF *fLoGains; //-> 36 37 TProfile* fHivsLoGain; 34 TProfile* fHivsLoGain; //-> 38 35 39 36 Double_t fOffset; 40 37 Double_t fSlope; 41 38 42 39 protected: 43 40 44 41 TH1F* fHChargeHiGain; //-> Summed FADC slices High Gain 45 42 TH1F* fHAbsTimeHiGain; //-> Mean arrival time in number of FADC sice 46 TH1F* fHRelTimeHiGain; //-> Mean arrival time in number of FADC sice47 TH1I* fHChargevsNHiGain; //-> Summed Charge vs. Event Nr.48 43 49 44 TH1F* fHChargeLoGain; //-> Summed FADC slices Low Gain 50 45 TH1F* fHAbsTimeLoGain; //-> Mean arrival time in number of FADC sice 51 TH1F* fHRelTimeLoGain; //-> Mean arrival time in number of FADC sice52 TH1I* fHChargevsNLoGain; //-> Summed Charge vs. Event Nr.53 46 54 TH1F* fHPSD; // Power spectrum density of fHBlindPixelChargevsN 47 TArrayF* fPSDHiGain; //-> Power spectrum density of fHiGains 48 TArrayF* fPSDLoGain; //-> Power spectrum density of fLoGains 55 49 56 TF1* fChargeGausFit; 57 TF1* fRelTimeGausFit; 50 TF1* fChargeGausFit; //-> 51 52 TH1F* fHPSD; //-> 53 TF1* fPSDExpFit; //-> 58 54 59 TPaveText *fFitLegend; 55 TArrayF *fHiGains; //-> 56 TArrayF *fLoGains; //-> 57 TArrayF *fChargeXaxis; // 58 TArrayF *fPSDXaxis; // 59 60 TPaveText *fFitLegend; //-> 60 61 61 62 Int_t fTotalEntries; // Number of entries 62 63 Int_t fCurrentSize; 64 63 65 Axis_t fChargeFirstHiGain; 64 66 Axis_t fChargeLastHiGain; … … 75 77 Double_t fChargeSigmaErr; 76 78 77 Double_t fRelTimeChisquare;78 Double_t fRelTimeProb;79 Int_t fRelTimeNdf;80 Double_t fRelTimeMean;81 Double_t fRelTimeMeanErr;82 Double_t fRelTimeSigma;83 84 79 Float_t fAbsTimeMean; 85 80 Float_t fAbsTimeMeanErr; 86 81 Float_t fAbsTimeRms; 87 82 88 Float_t fRelTimeLowerFitRangeHiGain;89 Float_t fRelTimeUpperFitRangeHiGain;90 Float_t fRelTimeLowerFitRangeLoGain;91 Float_t fRelTimeUpperFitRangeLoGain;92 93 83 Float_t fAbsTimeFirstHiGain; 94 84 Float_t fAbsTimeFirstLoGain; 95 85 Float_t fAbsTimeLastHiGain; 96 86 Float_t fAbsTimeLastLoGain; 87 88 Float_t fPSDProb; 97 89 98 90 Byte_t fFlags; 99 91 100 enum { kUseLoGain, kChargeFitOK, k TimeFitOK};92 enum { kUseLoGain, kChargeFitOK, kOscillating }; 101 93 102 94 virtual void DrawLegend(); 95 virtual void CreateChargeXaxis(Int_t n); 96 virtual void CreatePSDXaxis(Int_t n); 97 virtual void CutArrayBorder(TArrayF *array); 103 98 104 99 public: … … 129 124 const Float_t GetAbsTimeLastLoGain() const { return fAbsTimeLastLoGain; } 130 125 131 const Double_t GetRelTimeMean() const { return fRelTimeMean; }132 const Double_t GetRelTimeMeanErr() const { return fRelTimeMeanErr; }133 const Double_t GetRelTimeSigma() const { return fRelTimeSigma; }134 const Double_t GetRelTimeChiSquare() const { return fRelTimeChisquare;}135 const Double_t GetRelTimeProb() const { return fRelTimeProb; }136 const Int_t GetRelTimeNdf() const { return fRelTimeNdf; }137 138 139 126 const Float_t GetAbsTimeMean() const { return fAbsTimeMean; } 140 127 const Float_t GetAbsTimeMeanErr() const { return fAbsTimeMeanErr; } … … 147 134 const TH1F *GetHAbsTime() const { return fHAbsTimeHiGain; } 148 135 149 const TH1F *GetHRelTime() { return fHRelTimeHiGain; }150 const TH1F *GetHRelTime() const { return fHRelTimeHiGain; }151 152 const TH1I *GetHChargevsN() { return fHChargevsNHiGain;}153 const TH1I *GetHChargevsN() const { return fHChargevsNHiGain;}154 155 136 Double_t GetOffset() const { return fOffset; } 156 137 Double_t GetSlope() const { return fSlope; } 157 138 158 139 Bool_t UseLoGain(); 159 140 Bool_t CheckOscillations(); 141 160 142 Bool_t IsChargeFitOK() const; 161 Bool_t Is TimeFitOK() const;143 Bool_t IsOscillating(); 162 144 Bool_t IsUseLoGain() const; 163 145 Bool_t IsEmpty() const; … … 166 148 Bool_t FillChargeLoGain(Float_t q); 167 149 Bool_t FillAbsTimeLoGain(Float_t t); 168 Bool_t FillRelTimeLoGain(Float_t t);169 Bool_t FillChargevsNLoGain(Float_t q, Int_t n);170 150 171 151 Bool_t FillChargeHiGain(Float_t q); 172 152 Bool_t FillAbsTimeHiGain(Float_t t); 173 Bool_t FillRelTimeHiGain(Float_t t);174 Bool_t FillChargevsNHiGain(Float_t q, Int_t n);175 153 176 Bool_t Fill PointInGraph(Float_t qhi, Float_t qlo);154 Bool_t FillGraphs(Float_t qhi, Float_t qlo); 177 155 178 Bool_t SetupFill(const MParList *pList);179 Bool_t Fill(const MParContainer *, const Stat_t w=1) { return kTRUE; }180 181 156 // Fits 182 157 Bool_t FitCharge(Option_t *option="RQ0"); 183 Bool_t FitTime(Option_t *option="RQ0");184 158 185 159 void FitHiGainvsLoGain(); … … 191 165 // Prints 192 166 void PrintChargeFitResult(); 193 void PrintTimeFitResult();194 167 195 168 // Others
Note:
See TracChangeset
for help on using the changeset viewer.