source: trunk/Mars/mhist/MHEvent.h@ 20051

Last change on this file since 20051 was 19360, checked in by tbretz, 6 years ago
Implemented the display of the hillas ellipse.
File size: 1.8 KB
Line 
1#ifndef MARS_MHEvent
2#define MARS_MHEvent
3
4#ifndef MARS_MH
5#include "MH.h"
6#endif
7
8class TEllipse;
9
10class MHCamera;
11class MRawEvtData;
12class MRawRunHeader;
13class MRawEvtHeader;
14
15class MTime;
16class MMcEvt;
17class MMcTrig;
18class MHillas;
19class MSignalCam;
20class MImgCleanStd;
21class MTriggerPattern;
22
23class MHEvent : public MH
24{
25public:
26 enum EventType_t {
27 kEvtSignalRaw, kEvtSignalDensity, kEvtSignalUncleaned,
28 kEvtPedestal, kEvtPedestalRMS,
29 kEvtPedPhot, kEvtPedPhotRMS,
30 kEvtCleaningLevels, kEvtCleaningData,
31 kEvtIdxMax, kEvtArrTime, kEvtArrTimeCleaned,
32 kEvtTrigPix, kEvtIslandIndex, kEvtTimeSlope,
33 kEvtTimeSlopeCleaned
34 };
35
36private:
37 MRawEvtData *fRawEvtData; //!
38 MRawRunHeader *fRawRunHeader; //!
39 MRawEvtHeader *fRawEvtHeader; //!
40
41 MTime *fTime; //!
42 MMcEvt *fMcEvt; //!
43 MMcTrig *fMcTrig; //!
44 MSignalCam *fCerPhotEvt; //!
45 MImgCleanStd *fImgCleanStd; //!
46 MTriggerPattern *fTrigger; //!
47 MHillas *fHillas; //!
48
49 MRawEvtData *fClone; //->
50 MTriggerPattern *fTrigCpy; //->
51
52 MHCamera *fHist;
53 TEllipse *fEllipse;
54
55 EventType_t fType;
56
57 Double_t fMinimum;
58 Double_t fMaximum;
59
60 TH1 *GetHistByName(const TString name) const { return (TH1*)fHist; }
61
62 Bool_t SetupFill(const MParList *plist);
63 Int_t Fill(const MParContainer *par, const Stat_t weight=1);
64 Bool_t ReInit(MParList *par);
65
66public:
67 MHEvent(EventType_t type=kEvtSignalRaw);
68 ~MHEvent();
69
70 void SetMinimum(Double_t min=-1111) { fMinimum=min; }
71 void SetMaximum(Double_t max=-1111) { fMaximum=max; }
72
73 MHCamera *GetHist() { return fHist; }
74
75 void Draw(Option_t *o="");
76 void Paint(Option_t *o="");
77
78 ClassDef(MHEvent, 1)
79};
80
81#endif
Note: See TracBrowser for help on using the repository browser.