source: trunk/Mars/msim/MHPhotonEvent.h@ 19353

Last change on this file since 19353 was 19251, checked in by tbretz, 6 years ago
Worked around a compiler warning (err is used in the header)
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#define err _err
14#include <TProfile2D.h>
15#undef err
16#endif
17
18class MPhotonEvent;
19
20class MHPhotonEvent : public MH
21{
22private:
23 TH2F fHistXY;
24 TH2F fHistUV;
25 TProfile2D fHistT;
26 TH1F fHistWL;
27 TH1F fHistH;
28
29 Int_t fType;
30 Bool_t fPermanentReset;
31
32 // MHPhotonEvent
33 void Init(const char *name, const char *title);
34 void SetBinningXY(Int_t num, Double_t max);
35
36 // MParContainer
37 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print);
38
39 // MH
40 Bool_t SetupFill(const MParList *pList);
41 Bool_t ReInit(MParList *pList);
42 Int_t Fill(const MParContainer *par, const Stat_t weight=1);
43 //Bool_t Finalize();
44
45public:
46 MHPhotonEvent(Double_t max, const char *name=0, const char *title=0);
47 MHPhotonEvent(Int_t type=3, const char *name=0, const char *title=0);
48
49 void PermanentReset(Bool_t b=kTRUE) { fPermanentReset=b; }
50
51 // TObject
52 void Draw(Option_t *o="");
53 void Paint(Option_t *o="");
54
55 void Clear(Option_t *o="")
56 {
57 fHistXY.Reset();
58 fHistUV.Reset();
59 fHistT.Reset();
60 fHistWL.Reset();
61 fHistH.Reset();
62 }
63
64 const TH2F &GetHistXY() const { return fHistXY; }
65 const TProfile2D &GetHistT() const { return fHistT; }
66
67 ClassDef(MHPhotonEvent, 3) // Histogram to display the information of MPhotonEvents
68};
69
70#endif
Note: See TracBrowser for help on using the repository browser.