source: trunk/MagicSoft/Mars/mhvstime/MHPixVsTime.h@ 4651

Last change on this file since 4651 was 3394, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 1.1 KB
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
12class MHCamera;
13class MCamEvent;
14class MGeomCam;
15
16class MRawEvtHeader;
17class MTime;
18
19class MHPixVsTime : public MH
20{
21private:
22 TGraphErrors *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 TString fNameTime;
33
34 Int_t fType;
35 Int_t fTypeErr;
36
37 Bool_t SetupFill(const MParList *pList);
38 Bool_t Fill(const MParContainer *par, const Stat_t w=1);
39
40public:
41 MHPixVsTime(Int_t idx=0, const char *name=NULL, const char *title=NULL);
42 ~MHPixVsTime();
43
44 void SetNameEvt(const TString name) { fNameEvt = name; }
45 void SetNameTime(const TString name) { fNameTime = name; }
46 void SetType(Int_t type, Int_t e=-1) { fType = type; fTypeErr=e; }
47
48 TH1 *GetHistByName(const TString name="");
49 TGraph *GetGraph() { return fGraph; }
50
51 void Draw(Option_t *o=NULL);
52
53 ClassDef(MHPixVsTime, 1) // Histogram to sum camera events
54};
55
56#endif
57
58
59
Note: See TracBrowser for help on using the repository browser.