Line | |
---|
1 | #ifndef MARS_MHPixVsTime
|
---|
2 | #define MARS_MHPixVsTime
|
---|
3 |
|
---|
4 | #ifndef MARS_MH
|
---|
5 | #include "MH.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | #ifndef ROOT_TGraph
|
---|
9 | #include <TGraph.h>
|
---|
10 | #endif
|
---|
11 |
|
---|
12 | class MHCamera;
|
---|
13 | class MCamEvent;
|
---|
14 | class MGeomCam;
|
---|
15 |
|
---|
16 | class MRawEvtHeader;
|
---|
17 | class MTime;
|
---|
18 |
|
---|
19 | class MHPixVsTime : public MH
|
---|
20 | {
|
---|
21 | private:
|
---|
22 | TGraph fGraph;
|
---|
23 | Int_t fIndex;
|
---|
24 |
|
---|
25 | MCamEvent *fEvt; //! the current event
|
---|
26 | MGeomCam *fCam; //! the camera geometry
|
---|
27 |
|
---|
28 | MRawEvtHeader *fHeader; //!
|
---|
29 | MTime *fTime; //!
|
---|
30 |
|
---|
31 | TString fNameEvt;
|
---|
32 |
|
---|
33 | Int_t fType;
|
---|
34 | Int_t fTypeErr;
|
---|
35 |
|
---|
36 | Bool_t fUseEventTime;
|
---|
37 |
|
---|
38 | Bool_t SetupFill(const MParList *pList);
|
---|
39 | Bool_t Fill(const MParContainer *par, const Stat_t w=1);
|
---|
40 | Bool_t Finalize();
|
---|
41 |
|
---|
42 | public:
|
---|
43 | MHPixVsTime(Int_t idx=0, const char *name=NULL, const char *title=NULL);
|
---|
44 | ~MHPixVsTime();
|
---|
45 |
|
---|
46 | void SetNameEvt(const TString name) { fNameEvt = name; }
|
---|
47 | void SetType(Int_t type, Int_t e=-1) { fType = type; fTypeErr=e; }
|
---|
48 |
|
---|
49 | TH1 *GetHistByName(const TString name="");
|
---|
50 | TGraph &GetGraph() { return fGraph; }
|
---|
51 |
|
---|
52 | void SetUseEventTime(Bool_t use = kTRUE) { fUseEventTime = use; }
|
---|
53 |
|
---|
54 | void Draw(Option_t *o="");
|
---|
55 |
|
---|
56 | ClassDef(MHPixVsTime, 1) // Histogram to sum camera events
|
---|
57 | };
|
---|
58 |
|
---|
59 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.