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

Last change on this file since 17689 was 13365, checked in by tbretz, 13 years ago
Added two more modes.
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
30 };
31
32private:
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
60public:
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
Note: See TracBrowser for help on using the repository browser.