QwGeant4
QweakSimUserPMTOnly_PMTEvent.hh
Go to the documentation of this file.
1 
2 // QweakSimUserPMTOnly_PMTEvent.hh
3 // Martin McHugh
4 // 2013-08-01
5 
6 /////// --------------------------------------------------------------------
7 
8 #ifndef QweakSimUserPMTOnly_PMTEvent_h
9 #define QweakSimUserPMTOnly_PMTEvent_h
10 
11 /////// --------------------------------------------------------------------
12 
13 //-- root includes
14 #include "TObject.h"
15 
16 /////// --------------------------------------------------------------------
17 
18 class QweakSimUserPMTOnly_PMTEvent : public TObject
19 {
20 
21  private:
22 
23  Float_t TrackID;
24 
25  Int_t NbOfHits;
26 
28 
30 
31  Float_t PMTTotalNbOfPEs;
32 
33  public:
34 
35  //--- Constructor
37 
38  //--- Destructor
40 
41  void Initialize();
42 
43  //-----------------
44 
45  void StoreTrackID(Float_t tid) { TrackID = tid; }
46  Float_t GetTrackID() const {return TrackID;}
47 
48  //-----------------
49 
50  void StoreDetectorNbOfHits(Int_t nd) { NbOfHits = nd; }
51  Int_t GetDetectorNbOfHits() const {return NbOfHits;}
52 
53  //-----------------
54 
55  void StorePMTHasBeenHit(Int_t np) { PMTHasBeenHit = np; }
56  Int_t GetPMTHasBeenHit() const {return PMTHasBeenHit;}
57 
58  //-----------------
59 
60  void StorePMTTotalNbOfHits(Int_t npt) { PMTTotalNbOfHits = npt; }
61  Int_t GetPMTTotalNbOfHits() const {return PMTTotalNbOfHits;}
62 
63  //-----------------
64 
65  void StorePMTTotalNbOfPEs(Float_t npt) { PMTTotalNbOfPEs = npt; }
66  Float_t GetPMTTotalNbOfPEs() const {return PMTTotalNbOfPEs;}
67 
68  //--- define a new Class known to ROOT
70 
71 }; //--- end class QweakSimUserPMTOnly_PMTEvent
72 
73 /////// --------------------------------------------------------------------
74 
75 #endif
76 
77 /////// --------------------------------------------------------------------