LDMX Software
|
Defines basic APrime physics. More...
#include <APrimePhysics.h>
Public Member Functions | |
APrimePhysics (const framework::config::Parameters ¶ms) | |
Class constructor. | |
virtual | ~APrimePhysics () |
Class destructor. | |
void | ConstructParticle () |
Construct particle. | |
void | ConstructProcess () |
Construct the process. | |
Static Public Attributes | |
static const std::string | NAME = "APrime" |
The name of this physics constructor. | |
Private Attributes | |
G4double | ap_mass_ |
the mass of the A' for this run | |
bool | enable_ |
is dark brem enabled for this run? | |
framework::config::Parameters | parameters_ |
Dark brem parameters to pass to the process (if enabled) | |
std::unique_ptr< G4DarkBremsstrahlung > | process_ |
Defines basic APrime physics.
It constructs the APrime particle and links the dark brem process to the electron.
Definition at line 35 of file APrimePhysics.h.
simcore::APrimePhysics::APrimePhysics | ( | const framework::config::Parameters & | params | ) |
Class constructor.
params | Parameters to configure the dark brem process |
Definition at line 39 of file APrimePhysics.cxx.
References ap_mass_, enable_, framework::config::Parameters::getParameter(), and parameters_.
|
inlinevirtual |
void simcore::APrimePhysics::ConstructParticle | ( | ) |
Construct particle.
Insert A' into the Geant4 particle table. Geant4 registers all instances derived from G4ParticleDefinition and deletes them at the end of processing.
Uses the A' mass given by the parameter APrimeMass to inform the G4APrime instance what mass to use.
Insert A-prime into the Geant4 particle table.
Geant4 registers all instances derived from G4ParticleDefinition and deletes them at the end of the run. We configure the A' to have the input mass and the PDG ID number of 622.
Definition at line 47 of file APrimePhysics.cxx.
References ap_mass_, framework::config::Parameters::getParameter(), and parameters_.
void simcore::APrimePhysics::ConstructProcess | ( | ) |
Construct the process.
Links the dark brem processs to the electron through the process manager only if the dark brem process is enabled ('enable' is True).
G4ProcessManager registers and cleans up any created processes, so we can forget about it after creating it.
Definition at line 76 of file APrimePhysics.cxx.
References enable_, framework::config::Parameters::getParameter(), parameters_, and simcore::store_element_z().
|
private |
the mass of the A' for this run
Definition at line 89 of file APrimePhysics.h.
Referenced by APrimePhysics(), and ConstructParticle().
|
private |
is dark brem enabled for this run?
Definition at line 92 of file APrimePhysics.h.
Referenced by APrimePhysics(), and ConstructProcess().
|
static |
The name of this physics constructor.
Passed into Geant4 to register this physics, should not conflict with any other Geant4 physics.
Definition at line 44 of file APrimePhysics.h.
|
private |
Dark brem parameters to pass to the process (if enabled)
Definition at line 101 of file APrimePhysics.h.
Referenced by APrimePhysics(), ConstructParticle(), and ConstructProcess().
|
private |
Definition at line 103 of file APrimePhysics.h.