Line | |
---|
1 | #ifndef MARS_MHMcCT1CollectionArea
|
---|
2 | #define MARS_MHMcCT1CollectionArea
|
---|
3 |
|
---|
4 | #ifndef MARS_MH
|
---|
5 | #include "MH.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class TH2D;
|
---|
9 |
|
---|
10 | class MHMcCT1CollectionArea : public MH
|
---|
11 | {
|
---|
12 | public:
|
---|
13 | enum FillType_t {
|
---|
14 | kLog10,
|
---|
15 | kLinear
|
---|
16 | };
|
---|
17 |
|
---|
18 | private:
|
---|
19 | TH2D *fHistAll; // all simulated showers
|
---|
20 | TH2D *fHistSel; // the selected showers
|
---|
21 | TH2D *fHistCol; // the collection area
|
---|
22 |
|
---|
23 | FillType_t fEaxis;
|
---|
24 |
|
---|
25 | public:
|
---|
26 | MHMcCT1CollectionArea(const char *name=NULL, const char *title=NULL);
|
---|
27 | ~MHMcCT1CollectionArea();
|
---|
28 |
|
---|
29 | Bool_t SetupFill(const MParList *pList);
|
---|
30 | Bool_t Fill(const MParContainer *par, const Stat_t w=1);
|
---|
31 |
|
---|
32 | void DrawAll(Option_t *option="");
|
---|
33 | void DrawSel(Option_t *option="");
|
---|
34 |
|
---|
35 | void SetEaxis(FillType_t x) { fEaxis = x; }
|
---|
36 |
|
---|
37 | const TH2D *GetHist() const { return fHistCol; }
|
---|
38 | const TH2D *GetHAll() const { return fHistAll; }
|
---|
39 | const TH2D *GetHSel() const { return fHistSel; }
|
---|
40 |
|
---|
41 | void Draw(Option_t *option="");
|
---|
42 | TObject *DrawClone(Option_t *option="") const;
|
---|
43 |
|
---|
44 | void CalcEfficiency();
|
---|
45 |
|
---|
46 | ClassDef(MHMcCT1CollectionArea, 1) // Data Container to calculate Collection Area
|
---|
47 | };
|
---|
48 |
|
---|
49 | #endif
|
---|
50 |
|
---|
51 |
|
---|
52 |
|
---|
53 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.