Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
LXeEventAction.hh
이 파일의 문서화 페이지로 가기
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 //
26 // $Id: LXeEventAction.hh 109784 2018-05-09 08:14:08Z gcosmo $
27 //
30 //
31 
32 #ifndef LXeEventAction_h
33 #define LXeEventAction_h 1
34 
35 #include "LXeEventMessenger.hh"
36 #include "G4UserEventAction.hh"
37 #include "globals.hh"
38 #include "G4ThreeVector.hh"
39 
40 class G4Event;
41 
43 {
44  public:
45 
47  virtual ~LXeEventAction();
48 
49  public:
50 
51  virtual void BeginOfEventAction(const G4Event*);
52  virtual void EndOfEventAction(const G4Event*);
53 
54  void SetSaveThreshold(G4int );
55 
57 
59 
62 
65  void IncEDep(G4double dep){fTotE+=dep;}
68  void IncHitCount(G4int i=1){fHitCount+=i;}
69 
74  fPosMax = p;
75  fEdepMax = edep;
76  }
77 
80  G4int GetHitCount()const {return fHitCount;}
81  G4double GetEDep()const {return fTotE;}
84 
91 
92  //Gets the total photon count produced
94 
97 
98 
99 
100  private:
101 
103 
105 
108 
110 
112 
115 
116 
122 
124 
125  //These only have meaning if totE > 0
126  //If totE = 0 then these wont be set by EndOfEventAction
128  G4ThreeVector fReconPos; //Also relies on hitCount>0
129  G4ThreeVector fConvPos;//true (initial) converstion position
133 
135 
136 
137 
138 };
139 
140 #endif
G4double GetEDepMax()
G4ThreeVector GetConvPos()
G4ThreeVector fPosMax
virtual void EndOfEventAction(const G4Event *)
void SetEventVerbose(G4int v)
G4int GetBoundaryAbsorptionCount() const
G4ThreeVector GetPosMax()
void IncPhotonCount_Ceren()
void SetForceDrawPhotons(G4bool b)
G4int GetAbsorptionCount() const
const char * p
Definition: xmltok.h:285
G4double IsConvPosSet()
virtual void BeginOfEventAction(const G4Event *)
void SetEWeightPos(const G4ThreeVector &p)
void SetPMTThreshold(G4int t)
G4ThreeVector fReconPos
G4int GetHitCount() const
G4int GetPhotonCount_Ceren() const
G4ThreeVector GetEWeightPos()
double G4double
Definition: G4Types.hh:76
bool G4bool
Definition: G4Types.hh:79
G4int GetPhotonCount_Scint() const
Definition of the LXeEventMessenger class.
G4int GetPMTSAboveThreshold()
G4int fBoundaryAbsorptionCount
void IncEDep(G4double dep)
G4int GetPhotonCount()
G4ThreeVector fEWeightPos
void SetForceDrawNoPhotons(G4bool b)
Double_t edep
void SetPosMax(const G4ThreeVector &p, G4double edep)
void IncHitCount(G4int i=1)
G4ThreeVector GetReconPos()
void SetConvPos(const G4ThreeVector &p)
int G4int
Definition: G4Types.hh:78
G4ThreeVector fConvPos
void SetSaveThreshold(G4int)
G4bool fForcedrawphotons
void IncPMTSAboveThreshold()
void IncPhotonCount_Scint()
void SetReconPos(const G4ThreeVector &p)
G4double GetEDep() const
virtual ~LXeEventAction()
void IncBoundaryAbsorption()
LXeEventMessenger * fEventMessenger