Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-17 08:32:31

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 /// \file EmStandardPhysicsTrackingManager.hh
0027 /// \brief Definition of the EmStandardPhysicsTrackingManager class
0028 
0029 /// \class EmStandardPhysicsTrackingManager
0030 ///
0031 /// Class description:
0032 ///
0033 /// An implementation of the G4VTrackingManager interface for e-/e+ and gamma
0034 /// with the same processes as G4EmStandardPhysics.
0035 ///
0036 /// Original author: Jonas Hahnfeld, 2021
0037 
0038 #ifndef EmStandardPhysicsTrackingManager_h
0039 #define EmStandardPhysicsTrackingManager_h 1
0040 
0041 #include "G4VTrackingManager.hh"
0042 #include "globals.hh"
0043 
0044 class G4eMultipleScattering;
0045 class G4CoulombScattering;
0046 class G4eIonisation;
0047 class G4eBremsstrahlung;
0048 class G4eplusAnnihilation;
0049 
0050 class G4ComptonScattering;
0051 class G4GammaConversion;
0052 class G4PhotoElectricEffect;
0053 class G4RayleighScattering;
0054 
0055 class EmStandardPhysicsTrackingManager : public G4VTrackingManager
0056 {
0057   public:
0058     EmStandardPhysicsTrackingManager();
0059     ~EmStandardPhysicsTrackingManager();
0060 
0061     void BuildPhysicsTable(const G4ParticleDefinition&) override;
0062 
0063     void PreparePhysicsTable(const G4ParticleDefinition&) override;
0064 
0065     void HandOverOneTrack(G4Track* aTrack) override;
0066 
0067   private:
0068     void TrackElectron(G4Track* aTrack);
0069     void TrackPositron(G4Track* aTrack);
0070     void TrackGamma(G4Track* aTrack);
0071 
0072     struct
0073     {
0074         G4eMultipleScattering* msc;
0075         G4eIonisation* ioni;
0076         G4eBremsstrahlung* brems;
0077         G4CoulombScattering* ss;
0078     } fElectronProcs;
0079 
0080     struct
0081     {
0082         G4eMultipleScattering* msc;
0083         G4eIonisation* ioni;
0084         G4eBremsstrahlung* brems;
0085         G4eplusAnnihilation* annihilation;
0086         G4CoulombScattering* ss;
0087     } fPositronProcs;
0088 
0089     struct
0090     {
0091         G4PhotoElectricEffect* pe;
0092         G4ComptonScattering* compton;
0093         G4GammaConversion* conversion;
0094         G4RayleighScattering* rayleigh;
0095     } fGammaProcs;
0096 
0097     static EmStandardPhysicsTrackingManager* fMasterTrackingManager;
0098 };
0099 
0100 #endif