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

Last change on this file since 9313 was 9224, checked in by tbretz, 16 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 Int_t Fill(const MParContainer *par, const Stat_t weight=1);
55 Bool_t ReInit(MParList *par);
56
57public:
58 MHEvent(EventType_t type=kEvtSignalRaw);
59 ~MHEvent();
60
61 void SetMinimum(Double_t min=-1111) { fMinimum=min; }
62 void SetMaximum(Double_t max=-1111) { fMaximum=max; }
63
64 MHCamera *GetHist() { return fHist; }
65
66 void Draw(Option_t *o="");
67 void Paint(Option_t *o="");
68
69 ClassDef(MHEvent, 1)
70};
71
72#endif
Note: See TracBrowser for help on using the repository browser.