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

Last change on this file was 7297, checked in by tbretz, 19 years ago
*** empty log message ***
File size: 1.5 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;
18
19class MHEvent : public MH
20{
21public:
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
31private:
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
56public:
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
Note: See TracBrowser for help on using the repository browser.