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

Last change on this file since 3416 was 3394, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 1.4 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 TGraph *fGraph;
24
25 MCamEvent *fEvt; //! the current event
26 MGeomCam *fCam; //! the camera geometry
27
28 MRawEvtHeader *fHeader; //!
29 MTime *fTime; //!
30
31 MHCamera fHCamera; //!
32
33 Double_t fMin; //!
34 Double_t fMax; //!
35
36 TString fNameEvt;
37 TString fNameTime;
38
39 Int_t fType;
40 Int_t fTypeErr;
41
42 TArrayI fSectors;
43 TArrayI fAreaIndex;
44
45 Bool_t SetupFill(const MParList *pList);
46 Bool_t Fill(const MParContainer *par, const Stat_t w=1);
47 Bool_t Finalize();
48
49public:
50 MHSectorVsTime(const char *name=NULL, const char *title=NULL);
51 ~MHSectorVsTime();
52
53 void SetNameEvt(const TString name) { fNameEvt = name; }
54 void SetNameTime(const TString name) { fNameTime = name; }
55 void SetType(Int_t type, Int_t e=-1) { fType = type; fTypeErr=e; }
56 void SetSectors(const TArrayI &s) { fSectors=s; }
57 void SetAreaIndex(const TArrayI &a) { fAreaIndex=a; }
58
59 TH1 *GetHistByName(const TString name="");
60 //TGraph *GetGraph() { return fGraph; }
61
62 void Draw(Option_t *o=NULL);
63
64 ClassDef(MHSectorVsTime, 1) // Histogram to sum camera events
65};
66
67#endif
68
69
70
Note: See TracBrowser for help on using the repository browser.