source: trunk/MagicSoft/Mars/msim/MHPhotonEvent.h@ 9492

Last change on this file since 9492 was 9347, checked in by tbretz, 16 years ago
*** empty log message ***
File size: 1.4 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 TH2D fHistXY;
22 TH2D fHistUV;
23 TProfile2D fHistT;
24 TH1D fHistWL;
25 TH1D 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 ClassDef(MHPhotonEvent, 2) // Histogram to display the information of MPhotonEvents
63};
64
65#endif
Note: See TracBrowser for help on using the repository browser.