source: branches/Mars_use_drstimefiles/msim/MHPhotonEvent.h@ 18454

Last change on this file since 18454 was 9567, checked in by tbretz, 15 years ago
*** empty log message ***
File size: 1.5 KB
Line 
1#ifndef MARS_MHPhotonEvent
2#define MARS_MHPhotonEvent
3
4#ifndef MARS_MH
5#include "MH.h"
6#endif
7
8#ifndef ROOT_TH2
9#include <TH2.h>
10#endif
11
12#ifndef ROOT_TProfile2D
13#include <TProfile2D.h>
14#endif
15
16class MPhotonEvent;
17
18class MHPhotonEvent : public MH
19{
20private:
21 TH2F fHistXY;
22 TH2F fHistUV;
23 TProfile2D fHistT;
24 TH1F fHistWL;
25 TH1F fHistH;
26
27 Int_t fType;
28 Bool_t fPermanentReset;
29
30 // MHPhotonEvent
31 void Init(const char *name, const char *title);
32 void SetBinningXY(Int_t num, Double_t max);
33
34 // MParContainer
35 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print);
36
37 // MH
38 Bool_t SetupFill(const MParList *pList);
39 Bool_t ReInit(MParList *pList);
40 Int_t Fill(const MParContainer *par, const Stat_t weight=1);
41 //Bool_t Finalize();
42
43public:
44 MHPhotonEvent(Double_t max, const char *name=0, const char *title=0);
45 MHPhotonEvent(Int_t type=3, const char *name=0, const char *title=0);
46
47 void PermanentReset(Bool_t b=kTRUE) { fPermanentReset=b; }
48
49 // TObject
50 void Draw(Option_t *o="");
51 void Paint(Option_t *o="");
52
53 void Clear(Option_t *o="")
54 {
55 fHistXY.Reset();
56 fHistUV.Reset();
57 fHistT.Reset();
58 fHistWL.Reset();
59 fHistH.Reset();
60 }
61
62 const TH2F &GetHistXY() const { return fHistXY; }
63 const TProfile2D &GetHistT() const { return fHistT; }
64
65 ClassDef(MHPhotonEvent, 3) // Histogram to display the information of MPhotonEvents
66};
67
68#endif
Note: See TracBrowser for help on using the repository browser.