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 |
|
---|
19 | class MHEvent : public MH
|
---|
20 | {
|
---|
21 | public:
|
---|
22 | enum EventType_t {
|
---|
23 | kEvtSignalRaw, kEvtSignalDensity,
|
---|
24 | kEvtPedestal, kEvtPedestalRMS,
|
---|
25 | kEvtPedPhot, kEvtPedPhotRMS,
|
---|
26 | kEvtCleaningLevels, kEvtCleaningData,
|
---|
27 | kEvtIdxMax, kEvtArrTime, kEvtArrTimeCleaned,
|
---|
28 | kEvtTrigPix, kEvtIslandIndex
|
---|
29 | };
|
---|
30 |
|
---|
31 | private:
|
---|
32 | MRawEvtData *fRawEvtData; //!
|
---|
33 | MRawRunHeader *fRawRunHeader; //!
|
---|
34 | MRawEvtHeader *fRawEvtHeader; //!
|
---|
35 |
|
---|
36 | MTime *fTime; //!
|
---|
37 | MMcEvt *fMcEvt; //!
|
---|
38 | MMcTrig *fMcTrig; //!
|
---|
39 | MSignalCam *fCerPhotEvt; //!
|
---|
40 | MImgCleanStd *fImgCleanStd; //!
|
---|
41 |
|
---|
42 | MRawEvtData *fClone; //->
|
---|
43 |
|
---|
44 | MHCamera *fHist;
|
---|
45 |
|
---|
46 | EventType_t fType;
|
---|
47 |
|
---|
48 | Double_t fMinimum;
|
---|
49 | Double_t fMaximum;
|
---|
50 |
|
---|
51 | TH1 *GetHistByName(const TString name) const { return (TH1*)fHist; }
|
---|
52 |
|
---|
53 | Bool_t SetupFill(const MParList *plist);
|
---|
54 | Bool_t Fill(const MParContainer *par, const Stat_t weight=1);
|
---|
55 |
|
---|
56 | public:
|
---|
57 | MHEvent(EventType_t type=kEvtSignalRaw);
|
---|
58 | ~MHEvent();
|
---|
59 |
|
---|
60 | void SetMinimum(Double_t min=-1111) { fMinimum=min; }
|
---|
61 | void SetMaximum(Double_t max=-1111) { fMaximum=max; }
|
---|
62 |
|
---|
63 | MHCamera *GetHist() { return fHist; }
|
---|
64 |
|
---|
65 | void Draw(Option_t *o="");
|
---|
66 | void Paint(Option_t *o="");
|
---|
67 |
|
---|
68 | ClassDef(MHEvent, 1)
|
---|
69 | };
|
---|
70 |
|
---|
71 | #endif
|
---|