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

#include <G4LHEPStoppingHadronBuilder.hh>

Public Member Functions

 G4LHEPStoppingHadronBuilder ()
 
virtual ~G4LHEPStoppingHadronBuilder ()
 
virtual void Build ()
 

Detailed Description

Definition at line 52 of file G4LHEPStoppingHadronBuilder.hh.

Constructor & Destructor Documentation

◆ G4LHEPStoppingHadronBuilder()

G4LHEPStoppingHadronBuilder::G4LHEPStoppingHadronBuilder ( )

Definition at line 54 of file G4LHEPStoppingHadronBuilder.cc.

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

◆ ~G4LHEPStoppingHadronBuilder()

G4LHEPStoppingHadronBuilder::~G4LHEPStoppingHadronBuilder ( )
virtual

Definition at line 61 of file G4LHEPStoppingHadronBuilder.cc.

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

Member Function Documentation

◆ Build()

void G4LHEPStoppingHadronBuilder::Build ( )
virtual

Definition at line 72 of file G4LHEPStoppingHadronBuilder.cc.

73{
74 G4ProcessManager * aProcMan = 0;
75 wasActivated=true;
76//G4cout << " adding stopping hadron Physics" << G4endl;
77
78 // Muon Minus Physics
80 theMuonMinusAbsorption = new G4MuonMinusCapture();
81 aProcMan->AddRestProcess(theMuonMinusAbsorption);
82
83 // PionMinus
85 thePionMinusAbsorption = new G4PionMinusAbsorptionAtRest();
86 aProcMan->AddRestProcess(thePionMinusAbsorption);
87
88 // KaonMinus
90 theKaonMinusAbsorption = new G4KaonMinusAbsorption();
91 aProcMan->AddRestProcess(theKaonMinusAbsorption);
92
93 // anti-Proton
95 theAntiProtonAnnihilation = new G4AntiProtonAnnihilationAtRest();
96 aProcMan->AddRestProcess(theAntiProtonAnnihilation);
97
98 // AntiNeutron
100 theAntiNeutronAnnihilation = new G4AntiNeutronAnnihilationAtRest();
101 aProcMan->AddRestProcess(theAntiNeutronAnnihilation);
102
103}
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)

Referenced by HadronPhysicsLHEP::ConstructProcess().


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