Belle II Software development
G4LongLivedNeutralPhysics Class Reference

LongLivedNeutral physics Class – to be registered in the physics list. More...

#include <G4LongLivedNeutralPhysics.h>

Inheritance diagram for G4LongLivedNeutralPhysics:

Public Member Functions

 G4LongLivedNeutralPhysics ()
 Constructor.
 
 ~G4LongLivedNeutralPhysics ()
 Destructor.
 
virtual void ConstructParticle ()
 Adds monopole and anti-monopole to GEANT4 with a pdg of +/-99666 and parameters taken from current class.
 
virtual void ConstructProcess ()
 This method will be invoked in the Construct() method.
 

Private Member Functions

G4LongLivedNeutralPhysicsoperator= (const G4LongLivedNeutralPhysics &right)
 Assignment operator should be hidden.
 
 G4LongLivedNeutralPhysics (const G4LongLivedNeutralPhysics &copy)
 Copy constructor should be hidden.
 

Private Attributes

G4LongLivedNeutralfLLPN
 Pointer to the neutral long lived definition in GEANT4.
 

Detailed Description

LongLivedNeutral physics Class – to be registered in the physics list.

Definition at line 27 of file G4LongLivedNeutralPhysics.h.

Constructor & Destructor Documentation

◆ G4LongLivedNeutralPhysics() [1/2]

Constructor.

Definition at line 24 of file G4LongLivedNeutralPhysics.cc.

25 : G4VPhysicsConstructor("LongLivedNeutralPhysics"),
26 fLLPN(0)
27{
28
29}
G4LongLivedNeutral * fLLPN
Pointer to the neutral long lived definition in GEANT4.

◆ ~G4LongLivedNeutralPhysics()

Destructor.

Definition at line 31 of file G4LongLivedNeutralPhysics.cc.

32{
33}

◆ G4LongLivedNeutralPhysics() [2/2]

Copy constructor should be hidden.

Parameters
copyCopy reference.

Member Function Documentation

◆ 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}
A class to hold long-lived neutral particle description.

◆ 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 // remove all processes added per default (em scintillation and transport)
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}
This class is a decay process.
Concrete class that does the geometrical transport.

◆ operator=()

G4LongLivedNeutralPhysics & operator= ( const G4LongLivedNeutralPhysics right)
private

Assignment operator should be hidden.

Parameters
rightAssign reference.

Member Data Documentation

◆ fLLPN

G4LongLivedNeutral* fLLPN
private

Pointer to the neutral long lived definition in GEANT4.

Definition at line 66 of file G4LongLivedNeutralPhysics.h.


The documentation for this class was generated from the following files: