source: tags/Mars-V0.8.6/mhist/MHEvent.h

Last change on this file was 5145, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.2 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 MMcEvt;
14class MMcTrig;
15class MCerPhotEvt;
16class MImgCleanStd;
17
18class MHEvent : public MH
19{
20public:
21 enum EventType_t {
22 kEvtSignalRaw, kEvtSignalDensity, kEvtPedestal,
23 kEvtPedestalRMS, kEvtCleaningLevels,
24 kEvtCleaningData,
25 kEvtIdxMax, kEvtArrTime, kEvtTrigPix, kEvtIslandIndex
26 };
27
28private:
29 MRawEvtData *fRawEvtData; //!
30 MRawRunHeader *fRawRunHeader; //!
31 MRawEvtHeader *fRawEvtHeader; //!
32
33 MMcEvt *fMcEvt; //!
34 MMcTrig *fMcTrig; //!
35 MCerPhotEvt *fCerPhotEvt; //!
36 MImgCleanStd *fImgCleanStd; //!
37
38 MRawEvtData *fClone; //->
39
40 MHCamera *fHist;
41
42 EventType_t fType;
43
44 TH1 *GetHistByName(const TString name) { return (TH1*)fHist; }
45
46 Bool_t SetupFill(const MParList *plist);
47 Bool_t Fill(const MParContainer *par, const Stat_t weight=1);
48
49public:
50 MHEvent(EventType_t type=kEvtSignalRaw);
51 ~MHEvent();
52
53 MHCamera *GetHist() { return fHist; }
54
55 void Draw(Option_t *o="");
56 void Paint(Option_t *o="");
57
58 ClassDef(MHEvent, 1)
59};
60
61#endif
Note: See TracBrowser for help on using the repository browser.