source: trunk/MagicSoft/Mars/mhistmc/MHMcCollectionArea.h@ 4781

Last change on this file since 4781 was 3848, checked in by moralejo, 21 years ago
*** empty log message ***
File size: 1.4 KB
Line 
1#ifndef MARS_MHMcCollectionArea
2#define MARS_MHMcCollectionArea
3
4#ifndef MARS_MH
5#include "MH.h"
6#endif
7
8class TH1D;
9class TH2D;
10
11class MHMcEfficiency;
12class MHMcEnergyImpact;
13
14class MHMcCollectionArea : public MH
15{
16private:
17 TH2D *fHistAll; //! all simulated showers
18 TH2D *fHistSel; //! the selected showers
19
20 TH1D *fHistCol; // the collection area
21
22 Float_t fMCAreaRadius; // [m] Radius of circle within which the cores
23 // of Corsika events have been uniformly
24 // distributed.
25
26 void Calc(TH2D &hsel, TH2D &hall);
27
28public:
29 MHMcCollectionArea(const char *name=NULL, const char *title=NULL);
30 ~MHMcCollectionArea();
31
32 void FillAll(Double_t energy, Double_t radius);
33 void FillSel(Double_t energy, Double_t radius);
34
35 void DrawAll(Option_t *option="");
36 void DrawSel(Option_t *option="");
37
38 const TH1D *GetHist() { return fHistCol; }
39 const TH1D *GetHist() const { return fHistCol; }
40
41 TH2D *GetHistAll() { return fHistAll; }
42
43 void Draw(Option_t *option="");
44
45 void CalcEfficiency();
46 void CalcEfficiency2();
47
48 void Calc(const MHMcEnergyImpact &mcsel, const MHMcEnergyImpact &mcall);
49 void Calc(const MHMcEfficiency &heff);
50
51 void SetMCAreaRadius(Float_t x) { fMCAreaRadius = x; }
52
53 ClassDef(MHMcCollectionArea, 1) // Data Container to calculate Collection Area
54};
55
56#endif
Note: See TracBrowser for help on using the repository browser.