source: trunk/MagicSoft/Mars/mhist/MHHadronness.h@ 2185

Last change on this file since 2185 was 2043, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 1.4 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 MHadronness;
13
14class MHHadronness : public MH
15{
16private:
17 const MMcEvt *fMcEvt; //!
18 const MHadronness *fHadronness; //!
19
20 TH1D* fPhness; //-> Hadrons Hadronness
21 TH1D* fGhness; //-> Gammas Hadronness
22 TH1D* fIntPhness; //-> Hadrons Acceptance
23 TH1D* fIntGhness; //-> Gammas Acceptance
24
25 TGraph *fQfac; //-> Quality factor
26 TGraph *fGraph; //-> gamma acceptance vs. hadron acceptance
27
28 void Paint(Option_t *opt="");
29 void CalcGraph(Double_t sumg, Double_t sump);
30
31public:
32 MHHadronness(Int_t nbins=100, const char *name=NULL, const char *title=NULL);
33 ~MHHadronness();
34
35 Double_t GetGammaAcceptance(Double_t acchad) const;
36 Double_t GetHadronAcceptance(Double_t accgam) const;
37
38 TH1D *Getghness() const { return fGhness; }
39 TH1D *Getphness() const { return fPhness; }
40 TH1D *Getighness() const { return fIntGhness; }
41 TH1D *Getiphness() const { return fIntPhness; }
42 //TH2D *GetHist() const { return fHist; }
43
44 Float_t GetQ05() const;
45
46 Bool_t SetupFill(const MParList *plist);
47 Bool_t Fill(const MParContainer *par, const Stat_t w=1);
48 Bool_t Finalize();
49
50 void Print(Option_t *option="") const;
51
52 void Draw(Option_t *opt="");
53
54 ClassDef(MHHadronness, 1) // Gamma/Hadron Separation Quality Histograms
55};
56
57#endif
Note: See TracBrowser for help on using the repository browser.