|
DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Go to the documentation of this file.
13 #ifndef DDG4_GEANT4FASTPHYSICS_H
14 #define DDG4_GEANT4FASTPHYSICS_H
21 #include <G4VModularPhysicsList.hh>
22 class G4FastSimulationPhysics;
69 #endif // DDG4_GEANT4FASTPHYSICS_H
88 #include <G4FastSimulationPhysics.hh>
108 this->
info(
"Enable fast simulation for particle type: %s", part_name.c_str());
117 this->
info(
"Constructed and initialized Geant4 Fast Physics [G4FastSimulationPhysics].");
virtual void constructPhysics(G4VModularPhysicsList *physics) override
constructPhysics callback
DDG4_DEFINE_ACTION_CONSTRUCTORS(Geant4FastPhysics)
Define standard assignments and constructors.
#define DECLARE_GEANT4ACTION(name)
Plugin defintion to create Geant4Action objects.
Geant4FastPhysics(Geant4Context *context, const std::string &nam)
Standard constructor.
void info(const char *fmt,...) const
Support of info messages.
PhysicsConstructors & physics()
Access all physics constructors.
std::vector< std::string > m_enabledParticles
Vector of particle names for which fast simulation is enabled.
Geant4Action & declareProperty(const std::string &nam, T &val)
Declare property.
const std::string & name() const
Access name of the action.
Wrapper for G4FastSimulationPhysics with properties.
Concrete basic implementation of a Geant4 physics list action.
Namespace for the Geant4 based simulation part of the AIDA detector description toolkit.
bool m_verbose
Property to set verbosity flag on G4FastSimulationPhysics.
Namespace for the AIDA detector description toolkit.
virtual ~Geant4FastPhysics()=default
Default destructor.
G4FastSimulationPhysics * m_fastPhysics
Reference to fast physics object.
Generic context to extend user, run and event information.
Geant4Context * context() const
Access the context.