source: trunk/MagicSoft/Mars/mhist/MHMcCT1CollectionArea.h@ 1962

Last change on this file since 1962 was 1854, checked in by moralejo, 22 years ago
*** empty log message ***
  • Property svn:executable set to *
File size: 1.1 KB
Line 
1#ifndef MARS_MHMcCT1CollectionArea
2#define MARS_MHMcCT1CollectionArea
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8class TH2D;
9
10
11class MHMcCT1CollectionArea : public MParContainer
12{
13private:
14 TH2D *fHistAll; // all simulated showers
15 TH2D *fHistSel; // the selected showers
16 TH2D *fHistCol; // the collection area
17 void SetBins(Int_t nbins, Axis_t minEnergy, Axis_t maxEnergy);
18
19public:
20 MHMcCT1CollectionArea(const char *name=NULL, const char *title=NULL, Int_t nbins=30, Axis_t minEnergy=2., Axis_t maxEnergy=5.);
21 ~MHMcCT1CollectionArea();
22
23 void FillSel(Double_t energy, Double_t radius);
24
25 void DrawAll(Option_t *option="");
26 void DrawSel(Option_t *option="");
27
28 const TH2D *GetHist() const { return fHistCol; }
29 const TH2D *GetHAll() const { return fHistAll; }
30 const TH2D *GetHSel() const { return fHistSel; }
31
32 void Draw(Option_t *option="");
33 TObject *DrawClone(Option_t *option="") const;
34
35 void CalcEfficiency();
36
37 ClassDef(MHMcCT1CollectionArea, 1) // Data Container to calculate Collection Area
38};
39
40#endif
41
42
43
44
Note: See TracBrowser for help on using the repository browser.