Back to home page

EIC code displayed by LXR

 
 

    


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

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