source: trunk/Mars/mhist/MHHadronness.h@ 10305

Last change on this file since 10305 was 9153, checked in by tbretz, 16 years ago
*** empty log message ***
File size: 1.6 KB
Line 
1#ifndef MARS_MHHadronness
2#define MARS_MHHadronness
3
4#ifndef MARS_MH
5#include "MH.h"
6#endif
7
8class TH1D;
9class TGraph;
10class MParList;
11class MMcEvt;
12class MParameterD;
13class MHMatrix;
14
15class MHHadronness : public MH
16{
17private:
18 const MMcEvt *fMcEvt; //!
19 const MParameterD *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
34public:
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 Double_t GetHadronness(Double_t acchad) const;
41
42 TH1D *Getghness() const { return fGhness; }
43 TH1D *Getphness() const { return fPhness; }
44 TH1D *Getighness() const { return fIntGhness; }
45 TH1D *Getiphness() const { return fIntPhness; }
46 //TH2D *GetHist() const { return fHist; }
47
48 Float_t GetQ05() const;
49
50 Bool_t SetupFill(const MParList *plist);
51 Int_t Fill(const MParContainer *par, const Stat_t w=1);
52 Bool_t Finalize();
53
54 void InitMapping(MHMatrix *mat);
55 void StopMapping();
56
57 void Print(Option_t *option="") const;
58
59 void Draw(Option_t *opt="");
60
61 ClassDef(MHHadronness, 1) // Gamma/Hadron Separation Quality Histograms
62};
63
64#endif
Note: See TracBrowser for help on using the repository browser.