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
|
---|
30 | };
|
---|
31 |
|
---|
32 | private:
|
---|
33 | MRawEvtData *fRawEvtData; //!
|
---|
34 | MRawRunHeader *fRawRunHeader; //!
|
---|
35 | MRawEvtHeader *fRawEvtHeader; //!
|
---|
36 |
|
---|
37 | MTime *fTime; //!
|
---|
38 | MMcEvt *fMcEvt; //!
|
---|
39 | MMcTrig *fMcTrig; //!
|
---|
40 | MSignalCam *fCerPhotEvt; //!
|
---|
41 | MImgCleanStd *fImgCleanStd; //!
|
---|
42 | MTriggerPattern *fTrigger; //!
|
---|
43 |
|
---|
44 | MRawEvtData *fClone; //->
|
---|
45 | MTriggerPattern *fTrigCpy; //->
|
---|
46 |
|
---|
47 | MHCamera *fHist;
|
---|
48 |
|
---|
49 | EventType_t fType;
|
---|
50 |
|
---|
51 | Double_t fMinimum;
|
---|
52 | Double_t fMaximum;
|
---|
53 |
|
---|
54 | TH1 *GetHistByName(const TString name) const { return (TH1*)fHist; }
|
---|
55 |
|
---|
56 | Bool_t SetupFill(const MParList *plist);
|
---|
57 | Int_t Fill(const MParContainer *par, const Stat_t weight=1);
|
---|
58 | Bool_t ReInit(MParList *par);
|
---|
59 |
|
---|
60 | public:
|
---|
61 | MHEvent(EventType_t type=kEvtSignalRaw);
|
---|
62 | ~MHEvent();
|
---|
63 |
|
---|
64 | void SetMinimum(Double_t min=-1111) { fMinimum=min; }
|
---|
65 | void SetMaximum(Double_t max=-1111) { fMaximum=max; }
|
---|
66 |
|
---|
67 | MHCamera *GetHist() { return fHist; }
|
---|
68 |
|
---|
69 | void Draw(Option_t *o="");
|
---|
70 | void Paint(Option_t *o="");
|
---|
71 |
|
---|
72 | ClassDef(MHEvent, 1)
|
---|
73 | };
|
---|
74 |
|
---|
75 | #endif
|
---|