Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:11:36

0001 // This file is part of the ACTS project.
0002 //
0003 // Copyright (C) 2016 CERN for the benefit of the ACTS project
0004 //
0005 // This Source Code Form is subject to the terms of the Mozilla Public
0006 // License, v. 2.0. If a copy of the MPL was not distributed with this
0007 // file, You can obtain one at https://mozilla.org/MPL/2.0/.
0008 
0009 #include "ActsExamples/Geant4/MaterialPhysicsList.hpp"
0010 
0011 #include <utility>
0012 
0013 #include <G4ParticleTypes.hh>
0014 #include <G4ProcessManager.hh>
0015 #include <G4ProcessVector.hh>
0016 #include <G4UnitsTable.hh>
0017 
0018 namespace ActsExamples::Geant4 {
0019 
0020 MaterialPhysicsList::MaterialPhysicsList(
0021     std::unique_ptr<const Acts::Logger> logger)
0022     : G4VUserPhysicsList(), m_logger(std::move(logger)) {
0023   defaultCutValue = 1.0 * CLHEP::cm;
0024 }
0025 
0026 void MaterialPhysicsList::ConstructParticle() {
0027   ACTS_DEBUG("Construct Geantinos and Charged Geantinos.");
0028   G4Geantino::GeantinoDefinition();
0029   G4ChargedGeantino::ChargedGeantinoDefinition();
0030 }
0031 
0032 void MaterialPhysicsList::ConstructProcess() {
0033   ACTS_DEBUG("Adding Transport as single supperted Process.");
0034   AddTransportation();
0035 }
0036 
0037 void MaterialPhysicsList::SetCuts() {
0038   SetCutsWithDefault();
0039 
0040   if (verboseLevel > 0) {
0041     DumpCutValuesTable();
0042   }
0043 }
0044 
0045 }  // namespace ActsExamples::Geant4