source: trunk/MagicSoft/Mars/mhistmc/MHMcCT1CollectionArea.h@ 2268

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