Warning, file /geant4/examples/extended/optical/wls/include/WLSEventAction.hh was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034 #ifndef WLSEventAction_h
0035 #define WLSEventAction_h 1
0036
0037 #include "G4Types.hh"
0038 #include "G4UserEventAction.hh"
0039
0040 class WLSEventActionMessenger;
0041
0042 class WLSEventAction : public G4UserEventAction
0043 {
0044 public:
0045 WLSEventAction();
0046 ~WLSEventAction() override;
0047
0048 void BeginOfEventAction(const G4Event*) override;
0049 void EndOfEventAction(const G4Event*) override;
0050
0051 G4int GetEventNo();
0052 void SetEventVerbose(G4int);
0053
0054 void AddTIR() { fNTIR += 1; };
0055 void AddExiting() { fNExiting += 1; };
0056 void AddEscapedEnd() { fEscapedEnd += 1; };
0057 void AddEscapedMid() { fEscapedMid += 1; };
0058 void AddBounce() { fBounce += 1; };
0059 void AddWLSBounce() { fWLSBounce += 1; };
0060 void AddClad1Bounce() { fClad1Bounce += 1; };
0061 void AddClad2Bounce() { fClad2Bounce += 1; };
0062 void AddReflected() { fReflected += 1; };
0063 void AddEscaped() { fEscaped += 1; };
0064 void AddMirror() { fMirror += 1; };
0065
0066 private:
0067 WLSEventActionMessenger* fEventMessenger = nullptr;
0068
0069 G4int fVerboseLevel = 0;
0070
0071 G4int fMPPCCollID = 0;
0072
0073 G4int fNTIR = 0;
0074 G4int fNExiting = 0;
0075 G4int fEscapedEnd = 0;
0076 G4int fEscapedMid = 0;
0077 G4int fBounce = 0;
0078 G4int fWLSBounce = 0;
0079 G4int fClad1Bounce = 0;
0080 G4int fClad2Bounce = 0;
0081 G4int fReflected = 0;
0082 G4int fEscaped = 0;
0083 G4int fMirror = 0;
0084 };
0085
0086 #endif