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

Last change on this file since 18720 was 18271, checked in by Daniela Dorner, 9 years ago
implemented case kEvtTimeSlopeCleaned
File size: 1.7 KB
Line 
1#ifndef MARS_MHEvent
2#define MARS_MHEvent
3
4#ifndef MARS_MH
5#include "MH.h"
6#endif
7
8class MHCamera;
9class MRawEvtData;
10class MRawRunHeader;
11class MRawEvtHeader;
12
13class MTime;
14class MMcEvt;
15class MMcTrig;
16class MSignalCam;
17class MImgCleanStd;
18class MTriggerPattern;
19
20class MHEvent : public MH
21{
22public:
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
33private:
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
61public:
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
Note: See TracBrowser for help on using the repository browser.