Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-23 09:22:24

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 //
0027 /// \file optical/wls/include/WLSEventAction.hh
0028 /// \brief Definition of the WLSEventAction class
0029 //
0030 
0031 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
0032 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
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