Line | |
---|
1 | #ifndef MARS_MAlphaFitter
|
---|
2 | #define MARS_MAlphaFitter
|
---|
3 |
|
---|
4 | #ifndef MARS_MParContainer
|
---|
5 | #include "MParContainer.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class TH1D;
|
---|
9 |
|
---|
10 | class MAlphaFitter : public MParContainer
|
---|
11 | {
|
---|
12 | private:
|
---|
13 | Float_t fSigInt;
|
---|
14 | Float_t fSigMax;
|
---|
15 | Float_t fBgMin;
|
---|
16 | Float_t fBgMax;
|
---|
17 | Int_t fPolynom;
|
---|
18 |
|
---|
19 | Double_t fSignificance;
|
---|
20 | Double_t fExcessEvents;
|
---|
21 | Double_t fChiSqSignal;
|
---|
22 | Double_t fChiSqBg;
|
---|
23 | Double_t fSigmaGaus;
|
---|
24 | Double_t fIntegralMax;
|
---|
25 |
|
---|
26 | public:
|
---|
27 | MAlphaFitter() : fSigInt(10), fSigMax(75), fBgMin(45), fBgMax(85), fPolynom(1)
|
---|
28 | {
|
---|
29 | }
|
---|
30 |
|
---|
31 | MAlphaFitter(const MAlphaFitter &f)
|
---|
32 | {
|
---|
33 | f.Copy(*this);
|
---|
34 | }
|
---|
35 |
|
---|
36 | void Copy(TObject &o) const
|
---|
37 | {
|
---|
38 | MAlphaFitter &f = static_cast<MAlphaFitter&>(o);
|
---|
39 |
|
---|
40 | f.fSigInt = fSigInt;
|
---|
41 | f.fSigMax = fSigMax;
|
---|
42 | f.fBgMin = fBgMin;
|
---|
43 | f.fBgMax = fBgMax;
|
---|
44 | f.fPolynom = fPolynom;
|
---|
45 | }
|
---|
46 |
|
---|
47 | void SetSignalIntegralMax(Float_t s) { fSigInt = s; }
|
---|
48 | void SetSignalFitMax(Float_t s) { fSigMax = s; }
|
---|
49 | void SetBackgroundFitMin(Float_t s) { fBgMin = s; }
|
---|
50 | void SetBackgroundFitMax(Float_t s) { fBgMax = s; }
|
---|
51 | void SetNumPolynom(Int_t s) { fPolynom = s; }
|
---|
52 |
|
---|
53 | Double_t GetExcessEvents() const { return fExcessEvents; }
|
---|
54 | Double_t GetSignificance() const { return fSignificance; }
|
---|
55 | Double_t GetChiSqSignal() const { return fChiSqSignal; }
|
---|
56 | Double_t GetChiSqBg() const { return fChiSqBg; }
|
---|
57 | Double_t GetSigmaGaus() const { return fSigmaGaus; }
|
---|
58 |
|
---|
59 | void PaintResult(Float_t x=0.04, Float_t y=0.94, Float_t size=0.035) const;
|
---|
60 |
|
---|
61 | Bool_t Fit(TH1D &h, Bool_t paint=kFALSE);
|
---|
62 | ClassDef(MAlphaFitter, 1)
|
---|
63 | };
|
---|
64 |
|
---|
65 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.