Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-22 10:31:20

0001 //----------------------------------*-C++-*----------------------------------//
0002 // Copyright 2020-2024 UT-Battelle, LLC, and other Celeritas developers.
0003 // See the top-level COPYRIGHT file for details.
0004 // SPDX-License-Identifier: (Apache-2.0 OR MIT)
0005 //---------------------------------------------------------------------------//
0006 //! \file celeritas/ext/detail/CelerEmStandardPhysics.hh
0007 //---------------------------------------------------------------------------//
0008 #pragma once
0009 
0010 #include <G4ParticleDefinition.hh>
0011 #include <G4VPhysicsConstructor.hh>
0012 
0013 #include "../GeantPhysicsOptions.hh"
0014 
0015 namespace celeritas
0016 {
0017 namespace detail
0018 {
0019 //---------------------------------------------------------------------------//
0020 /*!
0021  * Construct Celeritas-supported EM standard physics.
0022  */
0023 class CelerEmStandardPhysics : public G4VPhysicsConstructor
0024 {
0025   public:
0026     //!@{
0027     //! \name Type aliases
0028     using Options = GeantPhysicsOptions;
0029     //!@}
0030 
0031   public:
0032     // Set up during construction
0033     explicit CelerEmStandardPhysics(Options const& options);
0034 
0035     // Set up minimal EM particle list
0036     void ConstructParticle() override;
0037     // Set up process list
0038     void ConstructProcess() override;
0039 
0040   private:
0041     Options options_;
0042 
0043     // Add EM processes for photons
0044     void add_gamma_processes();
0045     // Add EM processes for electrons and positrons
0046     void add_e_processes(G4ParticleDefinition* p);
0047     // Add EM processes for muons
0048     void add_mu_processes(G4ParticleDefinition* p);
0049 };
0050 
0051 //---------------------------------------------------------------------------//
0052 }  // namespace detail
0053 }  // namespace celeritas