Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4StoppingHadronBuilder Class Reference

#include <G4StoppingHadronBuilder.hh>

Public Member Functions

 G4StoppingHadronBuilder ()
 
virtual ~G4StoppingHadronBuilder ()
 
virtual void Build ()
 

Detailed Description

Definition at line 51 of file G4StoppingHadronBuilder.hh.

Constructor & Destructor Documentation

◆ G4StoppingHadronBuilder()

G4StoppingHadronBuilder::G4StoppingHadronBuilder ( )

Definition at line 53 of file G4StoppingHadronBuilder.cc.

53 :
54 theMuonMinusAbsorption(0),thePionMinusAbsorption(0),
55 theKaonMinusAbsorption(0), theAntiProtonAnnihilation(0),
56 theAntiNeutronAnnihilation(0),
57 wasActivated(false)
58{}

◆ ~G4StoppingHadronBuilder()

G4StoppingHadronBuilder::~G4StoppingHadronBuilder ( )
virtual

Definition at line 60 of file G4StoppingHadronBuilder.cc.

61{
62 if(wasActivated) {
63 delete theMuonMinusAbsorption;
64 delete thePionMinusAbsorption;
65 delete theKaonMinusAbsorption;
66 delete theAntiProtonAnnihilation;
67 delete theAntiNeutronAnnihilation;
68 }
69}

Member Function Documentation

◆ Build()

void G4StoppingHadronBuilder::Build ( )
virtual

Definition at line 71 of file G4StoppingHadronBuilder.cc.

72{
73 G4ProcessManager * aProcMan = 0;
74 wasActivated=true;
75//G4cout << " adding stopping hadron Physics" << G4endl;
76
77 // Muon Minus Physics
79 theMuonMinusAbsorption = new G4MuonMinusCaptureAtRest();
80 aProcMan->AddRestProcess(theMuonMinusAbsorption);
81
82 // PionMinus
84 thePionMinusAbsorption = new G4PionMinusAbsorptionAtRest();
85 aProcMan->AddRestProcess(thePionMinusAbsorption);
86
87 // KaonMinus
89 theKaonMinusAbsorption = new G4KaonMinusAbsorption();
90 aProcMan->AddRestProcess(theKaonMinusAbsorption);
91
92 // anti-Proton
94 theAntiProtonAnnihilation = new G4AntiProtonAnnihilationAtRest();
95 aProcMan->AddRestProcess(theAntiProtonAnnihilation);
96
97 // AntiNeutron
99 theAntiNeutronAnnihilation = new G4AntiNeutronAnnihilationAtRest();
100 aProcMan->AddRestProcess(theAntiNeutronAnnihilation);
101
102}
static G4AntiNeutron * AntiNeutron()
static G4AntiProton * AntiProton()
Definition: G4AntiProton.cc:93
static G4KaonMinus * KaonMinus()
Definition: G4KaonMinus.cc:113
static G4MuonMinus * MuonMinus()
Definition: G4MuonMinus.cc:100
G4ProcessManager * GetProcessManager() const
static G4PionMinus * PionMinus()
Definition: G4PionMinus.cc:98
G4int AddRestProcess(G4VProcess *aProcess, G4int ord=ordDefault)

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