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

Last change on this file since 5569 was 4891, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.6 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; //!
38 Double_t fMax; //!
39
40 TString fNameEvt;
41 TString fNameTime;
42
43 Int_t fType;
44 Int_t fTypeErr;
45
46 TArrayI fSectors;
47 TArrayI fAreaIndex;
48
49 Bool_t SetupFill(const MParList *pList);
50 Bool_t Fill(const MParContainer *par, const Stat_t w=1);
51 Bool_t Finalize();
52
53public:
54 MHSectorVsTime(const char *name=NULL, const char *title=NULL);
55 ~MHSectorVsTime();
56
57 void SetName(const char *name);
58 void SetTitle(const char *title);
59
60 void SetNameEvt(const TString name) { fNameEvt = name; }
61 void SetNameTime(const TString name) { fNameTime = name; }
62 void SetType(Int_t type, Int_t e=-1) { fType = type; fTypeErr=e; }
63 void SetSectors(const TArrayI &s) { fSectors=s; }
64 void SetAreaIndex(const TArrayI &a) { fAreaIndex=a; }
65
66 TH1 *GetHistByName(const TString name="");
67 //TGraph *GetGraph() { return fGraph; }
68
69 void Draw(Option_t *o=NULL);
70
71 ClassDef(MHSectorVsTime, 1) // Histogram to sum camera events
72};
73
74#endif
75
76
77
Note: See TracBrowser for help on using the repository browser.