Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
LXeUserEventInformation.hh
Go to the documentation of this file.
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
28 //
30 #include "G4ThreeVector.hh"
31 #include "globals.hh"
32 
33 #ifndef LXeUserEventInformation_h
34 #define LXeUserEventInformation_h 1
35 
37 {
38  public:
39 
41  virtual ~LXeUserEventInformation();
42 
43  inline virtual void Print()const{};
44 
45  void IncPhotonCount_Scint(){fPhotonCount_Scint++;}
46  void IncPhotonCount_Ceren(){fPhotonCount_Ceren++;}
47  void IncEDep(G4double dep){fTotE+=dep;}
48  void IncAbsorption(){fAbsorptionCount++;}
49  void IncBoundaryAbsorption(){fBoundaryAbsorptionCount++;}
50  void IncHitCount(G4int i=1){fHitCount+=i;}
51 
52  void SetEWeightPos(const G4ThreeVector& p){fEWeightPos=p;}
53  void SetReconPos(const G4ThreeVector& p){fReconPos=p;}
54  void SetConvPos(const G4ThreeVector& p){fConvPos=p;fConvPosSet=true;}
55  void SetPosMax(const G4ThreeVector& p,G4double edep){fPosMax=p;fEdepMax=edep;}
56 
57  G4int GetPhotonCount_Scint()const {return fPhotonCount_Scint;}
58  G4int GetPhotonCount_Ceren()const {return fPhotonCount_Ceren;}
59  G4int GetHitCount()const {return fHitCount;}
60  G4double GetEDep()const {return fTotE;}
61  G4int GetAbsorptionCount()const {return fAbsorptionCount;}
62  G4int GetBoundaryAbsorptionCount() const {return fBoundaryAbsorptionCount;}
63 
64  G4ThreeVector GetEWeightPos(){return fEWeightPos;}
65  G4ThreeVector GetReconPos(){return fReconPos;}
66  G4ThreeVector GetConvPos(){return fConvPos;}
67  G4ThreeVector GetPosMax(){return fPosMax;}
68  G4double GetEDepMax(){return fEdepMax;}
69  G4double IsConvPosSet(){return fConvPosSet;}
70 
71  //Gets the total photon count produced
72  G4int GetPhotonCount(){return fPhotonCount_Scint+fPhotonCount_Ceren;}
73 
74  void IncPMTSAboveThreshold(){fPMTsAboveThreshold++;}
75  G4int GetPMTSAboveThreshold(){return fPMTsAboveThreshold;}
76 
77  private:
78 
79  G4int fHitCount;
80  G4int fPhotonCount_Scint;
81  G4int fPhotonCount_Ceren;
82  G4int fAbsorptionCount;
83  G4int fBoundaryAbsorptionCount;
84 
85  G4double fTotE;
86 
87  //These only have meaning if totE > 0
88  //If totE = 0 then these wont be set by EndOfEventAction
89  G4ThreeVector fEWeightPos;
90  G4ThreeVector fReconPos; //Also relies on hitCount>0
91  G4ThreeVector fConvPos;//true (initial) converstion position
92  G4bool fConvPosSet;
93  G4ThreeVector fPosMax;
94  G4double fEdepMax;
95 
96  G4int fPMTsAboveThreshold;
97 
98 };
99 
100 #endif