| Line | |
|---|
| 1 | #ifndef MARS_MHEffOnTime
|
|---|
| 2 | #define MARS_MHEffOnTime
|
|---|
| 3 |
|
|---|
| 4 | #ifndef MARS_MH
|
|---|
| 5 | #include "MH.h"
|
|---|
| 6 | #endif
|
|---|
| 7 | #ifndef ROOT_TH1
|
|---|
| 8 | #include "TH1.h"
|
|---|
| 9 | #endif
|
|---|
| 10 |
|
|---|
| 11 | class TH2D;
|
|---|
| 12 | class MHTimeDiffTheta;
|
|---|
| 13 | class MParList;
|
|---|
| 14 |
|
|---|
| 15 | class MHEffOnTime : public MH
|
|---|
| 16 | {
|
|---|
| 17 | private:
|
|---|
| 18 | TH1D fHEffOn;
|
|---|
| 19 | TH1D fHProb;
|
|---|
| 20 | TH1D fHLambda;
|
|---|
| 21 | TH1D fHRdead;
|
|---|
| 22 |
|
|---|
| 23 | TString fVarname;
|
|---|
| 24 | TString fUnit;
|
|---|
| 25 |
|
|---|
| 26 | void ResetBin(Int_t i);
|
|---|
| 27 | Bool_t CalcResults(const TF1 &func, Double_t Nm, Int_t i);
|
|---|
| 28 | void DrawBin(TH1 &h, Int_t i) const;
|
|---|
| 29 | void GetQuantiles(const TH1 &h, Double_t min, Double_t max, Double_t yq[2]) const;
|
|---|
| 30 |
|
|---|
| 31 | public:
|
|---|
| 32 | MHEffOnTime(const char *varname=NULL, const char *unit=NULL);
|
|---|
| 33 |
|
|---|
| 34 | Bool_t SetupFill(const MParList *pList);
|
|---|
| 35 |
|
|---|
| 36 | const TH1D *GetHist() { return &fHEffOn; }
|
|---|
| 37 | const TH1D *GetHist() const { return &fHEffOn; }
|
|---|
| 38 |
|
|---|
| 39 | void Calc(const TH2D *hist, const Bool_t Draw);
|
|---|
| 40 | void Calc(const MHTimeDiffTheta &hist, const Bool_t Draw);
|
|---|
| 41 |
|
|---|
| 42 | void Draw(Option_t *option="");
|
|---|
| 43 |
|
|---|
| 44 | ClassDef(MHEffOnTime, 0) //1D-plot of Delta t vs. Var
|
|---|
| 45 | };
|
|---|
| 46 |
|
|---|
| 47 | #endif
|
|---|
| 48 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.