| Line | |
|---|
| 1 | #ifndef MARS_MHAlphaEnergyTheta
|
|---|
| 2 | #define MARS_MHAlphaEnergyTheta
|
|---|
| 3 |
|
|---|
| 4 | #ifndef MARS_MH
|
|---|
| 5 | #include "MH.h"
|
|---|
| 6 | #endif
|
|---|
| 7 | #ifndef ROOT_TH3
|
|---|
| 8 | #include "TH3.h"
|
|---|
| 9 | #endif
|
|---|
| 10 |
|
|---|
| 11 | class MMcEvt;
|
|---|
| 12 | class MHillasSrc;
|
|---|
| 13 | class MEnergyEst;
|
|---|
| 14 | class TH2D;
|
|---|
| 15 | class MParList;
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 | class MHAlphaEnergyTheta : public MH
|
|---|
| 19 | {
|
|---|
| 20 | private:
|
|---|
| 21 | MMcEvt *fMcEvt; //!
|
|---|
| 22 | MHillasSrc *fHillas; //!
|
|---|
| 23 | MEnergyEst *fEnergy; //!
|
|---|
| 24 |
|
|---|
| 25 | TH3D fHist;
|
|---|
| 26 |
|
|---|
| 27 | void SetAlphaRange(Axis_t lo, Axis_t up);
|
|---|
| 28 |
|
|---|
| 29 | public:
|
|---|
| 30 | MHAlphaEnergyTheta(const char *name=NULL, const char *title=NULL);
|
|---|
| 31 |
|
|---|
| 32 | virtual Bool_t SetupFill(const MParList *pList);
|
|---|
| 33 | virtual Bool_t Fill(const MParContainer *par);
|
|---|
| 34 |
|
|---|
| 35 | const TH3D *GetHist() { return &fHist; }
|
|---|
| 36 | const TH3D *GetHist() const { return &fHist; }
|
|---|
| 37 |
|
|---|
| 38 | void Draw(Option_t *option="");
|
|---|
| 39 | TObject *DrawClone(Option_t *option="") const;
|
|---|
| 40 |
|
|---|
| 41 | void Substract(const TH3D *h1, const TH3D *h2);
|
|---|
| 42 | void Substract(const MHAlphaEnergyTheta *h1, const MHAlphaEnergyTheta *h2)
|
|---|
| 43 | {
|
|---|
| 44 | Substract(h1->GetHist(), h2->GetHist());
|
|---|
| 45 | }
|
|---|
| 46 |
|
|---|
| 47 | TH2D *GetAlphaProjection(Axis_t lo, Axis_t up);
|
|---|
| 48 |
|
|---|
| 49 | ClassDef(MHAlphaEnergyTheta, 1) //Histogram to store a 3-Dim histogram in alpha, Energy and theta
|
|---|
| 50 | };
|
|---|
| 51 |
|
|---|
| 52 | #endif
|
|---|
| 53 |
|
|---|
| 54 |
|
|---|
| 55 |
|
|---|
| 56 |
|
|---|
| 57 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.