1 | #ifndef MARS_MHHadronness
|
---|
2 | #define MARS_MHHadronness
|
---|
3 |
|
---|
4 | #ifndef MARS_MH
|
---|
5 | #include "MH.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class TH1D;
|
---|
9 | class TGraph;
|
---|
10 | class MParList;
|
---|
11 | class MMcEvt;
|
---|
12 | class MHadronness;
|
---|
13 | class MHMatrix;
|
---|
14 |
|
---|
15 | class MHHadronness : public MH
|
---|
16 | {
|
---|
17 | private:
|
---|
18 | const MMcEvt *fMcEvt; //!
|
---|
19 | const MHadronness *fHadronness; //!
|
---|
20 | MHMatrix *fMatrix; //!
|
---|
21 | Int_t fMap; //!
|
---|
22 |
|
---|
23 | TH1D* fPhness; //-> Hadrons Hadronness
|
---|
24 | TH1D* fGhness; //-> Gammas Hadronness
|
---|
25 | TH1D* fIntPhness; //-> Hadrons Acceptance
|
---|
26 | TH1D* fIntGhness; //-> Gammas Acceptance
|
---|
27 |
|
---|
28 | TGraph *fQfac; //-> Quality factor
|
---|
29 | TGraph *fGraph; //-> gamma acceptance vs. hadron acceptance
|
---|
30 |
|
---|
31 | void Paint(Option_t *opt="");
|
---|
32 | void CalcGraph(Double_t sumg, Double_t sump);
|
---|
33 |
|
---|
34 | public:
|
---|
35 | MHHadronness(Int_t nbins=100, const char *name=NULL, const char *title=NULL);
|
---|
36 | ~MHHadronness();
|
---|
37 |
|
---|
38 | Double_t GetGammaAcceptance(Double_t acchad) const;
|
---|
39 | Double_t GetHadronAcceptance(Double_t accgam) const;
|
---|
40 |
|
---|
41 | TH1D *Getghness() const { return fGhness; }
|
---|
42 | TH1D *Getphness() const { return fPhness; }
|
---|
43 | TH1D *Getighness() const { return fIntGhness; }
|
---|
44 | TH1D *Getiphness() const { return fIntPhness; }
|
---|
45 | //TH2D *GetHist() const { return fHist; }
|
---|
46 |
|
---|
47 | Float_t GetQ05() const;
|
---|
48 |
|
---|
49 | Bool_t SetupFill(const MParList *plist);
|
---|
50 | Bool_t Fill(const MParContainer *par, const Stat_t w=1);
|
---|
51 | Bool_t Finalize();
|
---|
52 |
|
---|
53 | void InitMapping(MHMatrix *mat);
|
---|
54 | void StopMapping();
|
---|
55 |
|
---|
56 | void Print(Option_t *option="") const;
|
---|
57 |
|
---|
58 | void Draw(Option_t *opt="");
|
---|
59 |
|
---|
60 | ClassDef(MHHadronness, 1) // Gamma/Hadron Separation Quality Histograms
|
---|
61 | };
|
---|
62 |
|
---|
63 | #endif
|
---|