Changeset 2852 for trunk/MagicSoft/Mars/mcalib/MHCalibrationPixel.h
- Timestamp:
- 01/19/04 23:02:57 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MHCalibrationPixel.h
r2792 r2852 103 103 void ChangeHistId(Int_t i); 104 104 105 Bool_t SetupFill(const MParList *pList); 106 Bool_t Fill(const MParContainer *, const Stat_t w=1) { return kTRUE; } 107 105 // Setters 108 106 void SetPointInGraph(Float_t qhi, Float_t qlo); 109 110 Bool_t FillChargeLoGain(Float_t q) { return (fHChargeLoGain->Fill(q) > -1); } 111 Bool_t FillTimeLoGain(Int_t t) { return (fHTimeLoGain->Fill(t) > -1); } 112 Bool_t FillChargevsNLoGain(Float_t q, Int_t n) { return (fHChargevsNLoGain->Fill(n,q) > -1); } 113 114 Bool_t FillChargeHiGain(Float_t q) { return (fHChargeHiGain->Fill(q) > -1); } 115 Bool_t FillTimeHiGain(Int_t t) { return (fHTimeHiGain->Fill(t) > -1); } 116 Bool_t FillChargevsNHiGain(Float_t q, Int_t n) { return (fHChargevsNHiGain->Fill(n,q) > -1); } 117 118 void SetUseLoGain() { fUseLoGain = kTRUE; } 119 Bool_t UseLoGain(); 107 void SetUseLoGain(Bool_t b = kTRUE) { fUseLoGain = b; } 120 108 121 109 void SetTimeFitRangesHiGain(Byte_t low, Byte_t up) { fTimeLowerFitRangeHiGain = low, … … 123 111 void SetTimeFitRangesLoGain(Byte_t low, Byte_t up) { fTimeLowerFitRangeLoGain = low, 124 112 fTimeUpperFitRangeLoGain = up ; } 125 113 114 void SetLowerFitRange(Axis_t min) { fLowerFitRange = min; } 115 116 // Getters 126 117 const TH1F *GetHCharge() { return fHChargeHiGain; } 127 118 const TH1F *GetHCharge() const { return fHChargeHiGain; } … … 158 149 Double_t GetOffset() { return fOffset; } 159 150 Double_t GetSlope() { return fSlope; } 151 152 Bool_t UseLoGain(); 153 154 Bool_t IsFitOK() { return fFitOK; } 155 Bool_t IsEmpty() { return !( (fHChargeHiGain->GetEntries()) 156 || (fHChargeLoGain->GetEntries()) ); } 160 157 158 // Fill histos 159 Bool_t FillChargeLoGain(Float_t q) { return (fHChargeLoGain->Fill(q) > -1); } 160 Bool_t FillTimeLoGain(Int_t t) { return (fHTimeLoGain->Fill(t) > -1); } 161 Bool_t FillChargevsNLoGain(Float_t q, Int_t n) { return (fHChargevsNLoGain->Fill(n,q) > -1); } 162 163 Bool_t FillChargeHiGain(Float_t q) { return (fHChargeHiGain->Fill(q) > -1); } 164 Bool_t FillTimeHiGain(Int_t t) { return (fHTimeHiGain->Fill(t) > -1); } 165 Bool_t FillChargevsNHiGain(Float_t q, Int_t n) { return (fHChargevsNHiGain->Fill(n,q) > -1); } 166 167 // Fits 161 168 Bool_t FitChargeHiGain(Option_t *option="RQ0"); 162 169 Bool_t FitTimeHiGain(Axis_t rmin=0, Axis_t rmax=0, Option_t *option="RQ0"); … … 167 174 void FitHiGainvsLoGain(); 168 175 176 // Draws 169 177 virtual void Draw(Option_t *option=""); 178 179 // Prints 180 void PrintChargeFitResult(); 181 void PrintTimeFitResult(); 182 183 // Others 170 184 virtual void CutAllEdges(); 171 185 virtual void Reset(); 172 186 173 void SetLowerFitRange(Axis_t min) { fLowerFitRange = min; } 174 175 void PrintChargeFitResult(); 176 void PrintTimeFitResult(); 177 178 Bool_t IsFitOK() { return fFitOK; } 179 Bool_t IsEmpty() { return !( (fHChargeHiGain->GetEntries()) 180 || (fHChargeLoGain->GetEntries()) ); } 181 182 ClassDef(MHCalibrationPixel, 1) 187 ClassDef(MHCalibrationPixel, 1) // Histograms for each calibrated pixel 183 188 }; 184 189
Note:
See TracChangeset
for help on using the changeset viewer.