| 1 | #ifndef MARS_MHSectorVsTime | 
|---|
| 2 | #define MARS_MHSectorVsTime | 
|---|
| 3 |  | 
|---|
| 4 | #ifndef MARS_MH | 
|---|
| 5 | #include "MH.h" | 
|---|
| 6 | #endif | 
|---|
| 7 |  | 
|---|
| 8 | #ifndef MARS_MHCamera | 
|---|
| 9 | #include "MHCamera.h" | 
|---|
| 10 | #endif | 
|---|
| 11 |  | 
|---|
| 12 | class MHCamera; | 
|---|
| 13 | class MCamEvent; | 
|---|
| 14 | class MGeomCam; | 
|---|
| 15 |  | 
|---|
| 16 | class MRawEvtHeader; | 
|---|
| 17 | class MTime; | 
|---|
| 18 | class TGraph; | 
|---|
| 19 |  | 
|---|
| 20 | class MHSectorVsTime : public MH | 
|---|
| 21 | { | 
|---|
| 22 | private: | 
|---|
| 23 | static const TString gsDefName; | 
|---|
| 24 | static const TString gsDefTitle; | 
|---|
| 25 |  | 
|---|
| 26 | private: | 
|---|
| 27 | TGraph *fGraph; | 
|---|
| 28 |  | 
|---|
| 29 | MCamEvent *fEvt;        //! the current event | 
|---|
| 30 | MGeomCam  *fCam;        //! the camera geometry | 
|---|
| 31 |  | 
|---|
| 32 | MRawEvtHeader *fHeader; //! | 
|---|
| 33 | MTime         *fTime;   //! | 
|---|
| 34 |  | 
|---|
| 35 | MHCamera fHCamera;      //! | 
|---|
| 36 |  | 
|---|
| 37 | Double_t fMin;          //! Calculation of minimum | 
|---|
| 38 | Double_t fMax;          //! Calculation of maximum | 
|---|
| 39 |  | 
|---|
| 40 | Double_t fMinimum;      // User defined minimum | 
|---|
| 41 | Double_t fMaximum;      // User defined maximum | 
|---|
| 42 |  | 
|---|
| 43 | TString fNameEvt; | 
|---|
| 44 | TString fNameTime; | 
|---|
| 45 |  | 
|---|
| 46 | Int_t fType; | 
|---|
| 47 | Int_t fTypeErr; | 
|---|
| 48 |  | 
|---|
| 49 | TArrayI fSectors; | 
|---|
| 50 | TArrayI fAreaIndex; | 
|---|
| 51 |  | 
|---|
| 52 | // MH | 
|---|
| 53 | Bool_t SetupFill(const MParList *pList); | 
|---|
| 54 | Bool_t Fill(const MParContainer *par, const Stat_t w=1); | 
|---|
| 55 | Bool_t Finalize(); | 
|---|
| 56 |  | 
|---|
| 57 | public: | 
|---|
| 58 | MHSectorVsTime(const char *name=NULL, const char *title=NULL); | 
|---|
| 59 | ~MHSectorVsTime(); | 
|---|
| 60 |  | 
|---|
| 61 | // Setter | 
|---|
| 62 | void SetNameEvt(const TString name)  { fNameEvt = name; } | 
|---|
| 63 | void SetNameTime(const TString name) { fNameTime = name; } | 
|---|
| 64 | void SetType(Int_t type, Int_t e=-1) { fType = type; fTypeErr=e; } | 
|---|
| 65 | void SetSectors(const TArrayI &s)    { fSectors=s; } | 
|---|
| 66 | void SetAreaIndex(const TArrayI &a)  { fAreaIndex=a; } | 
|---|
| 67 |  | 
|---|
| 68 | void SetMinimum(Double_t min=-1111) { fMinimum = min; } | 
|---|
| 69 | void SetMaximum(Double_t max=-1111) { fMaximum = max; } | 
|---|
| 70 |  | 
|---|
| 71 | // Getter | 
|---|
| 72 | TH1 *GetHistByName(const TString name="") const; | 
|---|
| 73 | TGraph *GetGraph() { return fGraph; } | 
|---|
| 74 |  | 
|---|
| 75 | // TObject | 
|---|
| 76 | void SetName(const char *name); | 
|---|
| 77 | void SetTitle(const char *title); | 
|---|
| 78 |  | 
|---|
| 79 | void Draw(Option_t *o=NULL); | 
|---|
| 80 | void Paint(Option_t *o=NULL); | 
|---|
| 81 |  | 
|---|
| 82 | ClassDef(MHSectorVsTime, 2) // Histogram to sum camera events | 
|---|
| 83 | }; | 
|---|
| 84 |  | 
|---|
| 85 | #endif | 
|---|