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