Line | |
---|
1 | #ifndef MARS_MHPixVsTime
|
---|
2 | #define MARS_MHPixVsTime
|
---|
3 |
|
---|
4 | #ifndef MARS_MH
|
---|
5 | #include "MH.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | #ifndef ROOT_TGraphErrors
|
---|
9 | #include <TGraphErrors.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 | static const TString gsDefName;
|
---|
23 | static const TString gsDefTitle;
|
---|
24 |
|
---|
25 | TGraphErrors *fGraph;
|
---|
26 | Int_t fIndex;
|
---|
27 |
|
---|
28 | MCamEvent *fEvt; //! the current event
|
---|
29 | MGeomCam *fCam; //! the camera geometry
|
---|
30 |
|
---|
31 | MRawEvtHeader *fHeader; //!
|
---|
32 | MTime *fTime; //!
|
---|
33 |
|
---|
34 | TString fNameEvt;
|
---|
35 | TString fNameTime;
|
---|
36 |
|
---|
37 | Int_t fType;
|
---|
38 | Int_t fTypeErr;
|
---|
39 |
|
---|
40 | Bool_t SetupFill(const MParList *pList);
|
---|
41 | Bool_t Fill(const MParContainer *par, const Stat_t w=1);
|
---|
42 |
|
---|
43 | public:
|
---|
44 | MHPixVsTime(Int_t idx=0, const char *name=NULL, const char *title=NULL);
|
---|
45 | ~MHPixVsTime();
|
---|
46 |
|
---|
47 | void SetNameEvt(const TString name) { fNameEvt = name; }
|
---|
48 | void SetNameTime(const TString name) { fNameTime = name; }
|
---|
49 | void SetType(Int_t type, Int_t e=-1) { fType = type; fTypeErr=e; }
|
---|
50 |
|
---|
51 | void SetName(const char *name);
|
---|
52 | void SetTitle(const char *title);
|
---|
53 |
|
---|
54 | TH1 *GetHistByName(const TString name="") const;
|
---|
55 | TGraph *GetGraph() { return fGraph; }
|
---|
56 |
|
---|
57 | void Draw(Option_t *o=NULL);
|
---|
58 |
|
---|
59 | ClassDef(MHPixVsTime, 1) // Histogram to sum camera events
|
---|
60 | };
|
---|
61 |
|
---|
62 | #endif
|
---|
63 |
|
---|
64 |
|
---|
65 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.