source: trunk/MagicSoft/Mars/mhflux/MHCollectionArea.h@ 6938

Last change on this file since 6938 was 6938, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.7 KB
Line 
1#ifndef MARS_MHCollectionArea
2#define MARS_MHCollectionArea
3
4#ifndef MARS_MH
5#include "MH.h"
6#endif
7
8#ifndef ROOT_TH1
9#include <TH1.h>
10#endif
11
12#ifndef ROOT_TH2
13#include <TH2.h>
14#endif
15
16class MMcEvt;
17class MParameterD;
18
19class MHCollectionArea : public MH
20{
21private:
22 MMcEvt *fMcEvt;
23 MParameterD *fEnergy;
24
25 TH2D fHistSel;
26 TH2D fHistAll;
27
28 TH1D fHEnergy;
29
30 Float_t fMcAreaRadius; // [m] Radius of circle within which the cores of Corsika events have been uniformly distributed.
31
32 UInt_t fTotalNumSimulatedShowers;
33 UInt_t fCorsikaVersion;
34 Bool_t fAllEvtsTriggered;
35 Bool_t fIsExtern;
36
37 void Calc(TH2D &hsel, TH2D &hall);
38
39public:
40 MHCollectionArea(const char *name=NULL, const char *title=NULL);
41
42 Bool_t SetupFill(const MParList *pList);
43 Bool_t ReInit(MParList *pList);
44 Bool_t Fill(const MParContainer *par, const Stat_t weight=1);
45
46 void Draw(Option_t *option="");
47 void Paint(Option_t *option="");
48
49 void CalcEfficiency();
50
51 void SetHistAll(const TH2D &h) { h.Copy(fHistAll); fIsExtern=kTRUE; }
52
53 TH2D &GetHistAll() { return fHistAll; }
54 const TH2D &GetHistAll() const { return fHistAll; }
55
56/*
57 void DrawAll(Option_t *option="");
58 void DrawSel(Option_t *option="");
59
60 const TH1D *GetHist() { return fHistCol; }
61 const TH1D *GetHist() const { return fHistCol; }
62
63
64
65 void CalcEfficiency();
66 void CalcEfficiency2();
67
68 void Calc(const MHMcEnergyImpact &mcsel, const MHMcEnergyImpact &mcall);
69 void Calc(const MHMcEfficiency &heff);
70 */
71 void SetMcAreaRadius(Float_t x) { fMcAreaRadius = x; }
72
73 ClassDef(MHCollectionArea, 1) // Data Container to calculate Collection Area
74};
75
76#endif
Note: See TracBrowser for help on using the repository browser.