source: trunk/MagicSoft/Mars/mhvstime/MHSectorVsTime.h@ 7386

Last change on this file since 7386 was 7358, checked in by tbretz, 19 years ago
*** empty log message ***
File size: 1.9 KB
Line 
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
12class MHCamera;
13class MCamEvent;
14class MGeomCam;
15
16class MRawEvtHeader;
17class MTime;
18class TGraph;
19
20class MHSectorVsTime : public MH
21{
22private:
23 static const TString gsDefName;
24 static const TString gsDefTitle;
25
26private:
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
57public:
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
Note: See TracBrowser for help on using the repository browser.