LongLivedNeutral physics Class – to be registered in the physics list.
More...
#include <G4LongLivedNeutralPhysics.h>
LongLivedNeutral physics Class – to be registered in the physics list.
Definition at line 27 of file G4LongLivedNeutralPhysics.h.
◆ G4LongLivedNeutralPhysics() [1/2]
Constructor.
Definition at line 24 of file G4LongLivedNeutralPhysics.cc.
25 : G4VPhysicsConstructor("LongLivedNeutralPhysics"),
27{
28
29}
G4LongLivedNeutral * fLLPN
Pointer to the neutral long lived definition in GEANT4.
◆ ~G4LongLivedNeutralPhysics()
◆ G4LongLivedNeutralPhysics() [2/2]
Copy constructor should be hidden.
- Parameters
-
◆ ConstructParticle()
void ConstructParticle |
( |
| ) |
|
|
virtual |
Adds monopole and anti-monopole to GEANT4 with a pdg of +/-99666 and parameters taken from current class.
Definition at line 35 of file G4LongLivedNeutralPhysics.cc.
36{
37 fLLPN =
new G4LongLivedNeutral(
"LongLivedNeutralParticle");
38}
◆ ConstructProcess()
void ConstructProcess |
( |
| ) |
|
|
virtual |
This method will be invoked in the Construct() method.
each physics process will be instantiated and registered to the process manager of each particle type.
Definition at line 41 of file G4LongLivedNeutralPhysics.cc.
42{
43 B2DEBUG(20, "G4LongLivedNeutralPhysics::ConstructProcess");
44
45 G4ProcessManager* pmanager =
fLLPN->GetProcessManager();
46
47
48 for (int i = 0; i <= pmanager->GetProcessListLength(); ++i) {
49 pmanager->RemoveProcess(i);
50 }
51 pmanager->RemoveProcess(0);
52
53 pmanager->AddProcess(new G4LongLivedNeutralTransportation(), -1, 0, 0);
54 pmanager->AddProcess(new G4LongLivedNeutralDecay(), 0, -1, 0);
55}
◆ operator=()
Assignment operator should be hidden.
- Parameters
-
◆ fLLPN
The documentation for this class was generated from the following files: