source: trunk/MagicSoft/Mars/mhist/MHEvent.h@ 6724

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