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

Last change on this file since 1826 was 1824, checked in by moralejo, 22 years ago
*** empty log message ***
  • Property svn:executable set to *
File size: 993 bytes
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=45, Axis_t minEnergy=100., Axis_t maxEnergy=30000.);
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
30 void Draw(Option_t *option="");
31 TObject *DrawClone(Option_t *option="") const;
32
33 void CalcEfficiency();
34
35 ClassDef(MHMcCT1CollectionArea, 1) // Data Container to calculate Collection Area
36};
37
38#endif
39
40
41
42
Note: See TracBrowser for help on using the repository browser.