Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:09:45

0001 // This file is part of the Acts project.
0002 //
0003 // Copyright (C) 2021 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 http://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 ActsExamples::MaterialPhysicsList::MaterialPhysicsList(
0019     std::unique_ptr<const Acts::Logger> logger)
0020     : G4VUserPhysicsList(), m_logger(std::move(logger)) {
0021   defaultCutValue = 1.0 * CLHEP::cm;
0022 }
0023 
0024 void ActsExamples::MaterialPhysicsList::ConstructParticle() {
0025   ACTS_DEBUG("Construct Geantinos and Charged Geantinos.");
0026   G4Geantino::GeantinoDefinition();
0027   G4ChargedGeantino::ChargedGeantinoDefinition();
0028 }
0029 
0030 void ActsExamples::MaterialPhysicsList::ConstructProcess() {
0031   ACTS_DEBUG("Adding Transport as single supperted Process.");
0032   AddTransportation();
0033 }
0034 
0035 void ActsExamples::MaterialPhysicsList::SetCuts() {
0036   SetCutsWithDefault();
0037 
0038   if (verboseLevel > 0) {
0039     DumpCutValuesTable();
0040   }
0041 }