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