1 | #ifndef MARS_MHEvent
|
---|
2 | #define MARS_MHEvent
|
---|
3 |
|
---|
4 | #ifndef MARS_MH
|
---|
5 | #include "MH.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class TEllipse;
|
---|
9 |
|
---|
10 | class MHCamera;
|
---|
11 | class MRawEvtData;
|
---|
12 | class MRawRunHeader;
|
---|
13 | class MRawEvtHeader;
|
---|
14 |
|
---|
15 | class MTime;
|
---|
16 | class MMcEvt;
|
---|
17 | class MMcTrig;
|
---|
18 | class MHillas;
|
---|
19 | class MSignalCam;
|
---|
20 | class MImgCleanStd;
|
---|
21 | class MTriggerPattern;
|
---|
22 |
|
---|
23 | class MHEvent : public MH
|
---|
24 | {
|
---|
25 | public:
|
---|
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 |
|
---|
36 | private:
|
---|
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 |
|
---|
66 | public:
|
---|
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
|
---|