| Line | |
|---|
| 1 | #ifndef MARS_MHMcCollectionArea
|
|---|
| 2 | #define MARS_MHMcCollectionArea
|
|---|
| 3 |
|
|---|
| 4 | #ifndef MARS_MH
|
|---|
| 5 | #include "MH.h"
|
|---|
| 6 | #endif
|
|---|
| 7 |
|
|---|
| 8 | class TH1D;
|
|---|
| 9 | class TH2D;
|
|---|
| 10 |
|
|---|
| 11 | class MHMcEfficiency;
|
|---|
| 12 | class MHMcEnergyImpact;
|
|---|
| 13 |
|
|---|
| 14 | class MHMcCollectionArea : public MH
|
|---|
| 15 | {
|
|---|
| 16 | private:
|
|---|
| 17 | TH2D *fHistAll; //! all simulated showers
|
|---|
| 18 | TH2D *fHistSel; //! the selected showers
|
|---|
| 19 |
|
|---|
| 20 | TH1D *fHistCol; // the collection area
|
|---|
| 21 |
|
|---|
| 22 | void Calc(TH2D &hsel, TH2D &hall);
|
|---|
| 23 |
|
|---|
| 24 | public:
|
|---|
| 25 | MHMcCollectionArea(const char *name=NULL, const char *title=NULL);
|
|---|
| 26 | ~MHMcCollectionArea();
|
|---|
| 27 |
|
|---|
| 28 | void FillAll(Double_t energy, Double_t radius);
|
|---|
| 29 | void FillSel(Double_t energy, Double_t radius);
|
|---|
| 30 |
|
|---|
| 31 | void DrawAll(Option_t *option="");
|
|---|
| 32 | void DrawSel(Option_t *option="");
|
|---|
| 33 |
|
|---|
| 34 | const TH1D *GetHist() { return fHistCol; }
|
|---|
| 35 | const TH1D *GetHist() const { return fHistCol; }
|
|---|
| 36 |
|
|---|
| 37 | TH2D *GetHistAll() { return fHistAll; }
|
|---|
| 38 |
|
|---|
| 39 | void Draw(Option_t *option="");
|
|---|
| 40 |
|
|---|
| 41 | void CalcEfficiency();
|
|---|
| 42 | void CalcEfficiency2();
|
|---|
| 43 |
|
|---|
| 44 | void Calc(const MHMcEnergyImpact &mcsel, const MHMcEnergyImpact &mcall);
|
|---|
| 45 | void Calc(const MHMcEfficiency &heff);
|
|---|
| 46 |
|
|---|
| 47 | ClassDef(MHMcCollectionArea, 1) // Data Container to calculate Collection Area
|
|---|
| 48 | };
|
|---|
| 49 |
|
|---|
| 50 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.