#include <G4LHEPStoppingPhysics.hh>
Inheritance diagram for G4LHEPStoppingPhysics:
Public Member Functions | |
G4LHEPStoppingPhysics (G4int ver=1) | |
G4LHEPStoppingPhysics (const G4String &name, G4int ver=1) | |
virtual | ~G4LHEPStoppingPhysics () |
virtual void | ConstructParticle () |
virtual void | ConstructProcess () |
Definition at line 50 of file G4LHEPStoppingPhysics.hh.
G4LHEPStoppingPhysics::G4LHEPStoppingPhysics | ( | G4int | ver = 1 |
) |
Definition at line 66 of file G4LHEPStoppingPhysics.cc.
References G4HadronicDeprecate.
00067 : G4VPhysicsConstructor("LHEP Stopping") 00068 , muProcess(0), piProcess(0), kProcess(0), apProcess(0), anProcess(0) 00069 , verbose(ver), wasActivated(false) 00070 { 00071 G4HadronicDeprecate("G4LHEPStoppingPhysics"); 00072 }
Definition at line 74 of file G4LHEPStoppingPhysics.cc.
References G4HadronicDeprecate.
00075 : G4VPhysicsConstructor(nam), muProcess(0), piProcess(0), kProcess(0), apProcess(0), anProcess(0) 00076 , verbose(ver), wasActivated(false) 00077 { 00078 G4HadronicDeprecate("G4LHEPStoppingPhysics"); 00079 }
G4LHEPStoppingPhysics::~G4LHEPStoppingPhysics | ( | ) | [virtual] |
Definition at line 81 of file G4LHEPStoppingPhysics.cc.
00082 { 00083 if(wasActivated) { 00084 delete muProcess; 00085 delete piProcess; 00086 delete kProcess; 00087 delete apProcess; 00088 delete anProcess; 00089 } 00090 }
void G4LHEPStoppingPhysics::ConstructParticle | ( | ) | [virtual] |
Implements G4VPhysicsConstructor.
Definition at line 92 of file G4LHEPStoppingPhysics.cc.
References G4BaryonConstructor::ConstructParticle(), G4MesonConstructor::ConstructParticle(), and G4LeptonConstructor::ConstructParticle().
00093 { 00094 // G4cout << "G4QStoppingPhysics::ConstructParticle" << G4endl; 00095 G4LeptonConstructor pLeptonConstructor; 00096 pLeptonConstructor.ConstructParticle(); 00097 00098 G4MesonConstructor pMesonConstructor; 00099 pMesonConstructor.ConstructParticle(); 00100 00101 G4BaryonConstructor pBaryonConstructor; 00102 pBaryonConstructor.ConstructParticle(); 00103 00104 }
void G4LHEPStoppingPhysics::ConstructProcess | ( | ) | [virtual] |
Implements G4VPhysicsConstructor.
Definition at line 106 of file G4LHEPStoppingPhysics.cc.
References G4ProcessManager::AddRestProcess(), G4AntiNeutron::AntiNeutron(), G4AntiProton::AntiProton(), G4ParticleDefinition::GetProcessManager(), G4KaonMinus::KaonMinus(), G4MuonMinus::MuonMinus(), and G4PionMinus::PionMinus().
00107 { 00108 if(wasActivated) return; 00109 G4ProcessManager * aProcMan = 0; 00110 wasActivated=true; 00111 //G4cout << " adding stopping hadron Physics" << G4endl; 00112 00113 // Muon Minus Physics 00114 aProcMan = G4MuonMinus::MuonMinus()->GetProcessManager(); 00115 muProcess = new G4MuonMinusCaptureAtRest(); 00116 aProcMan->AddRestProcess(muProcess); 00117 00118 // PionMinus 00119 aProcMan = G4PionMinus::PionMinus()->GetProcessManager(); 00120 piProcess = new G4PionMinusAbsorptionAtRest(); 00121 aProcMan->AddRestProcess(piProcess); 00122 00123 // KaonMinus 00124 aProcMan = G4KaonMinus::KaonMinus()->GetProcessManager(); 00125 kProcess = new G4KaonMinusAbsorption(); 00126 aProcMan->AddRestProcess(kProcess); 00127 00128 // anti-Proton 00129 aProcMan = G4AntiProton::AntiProton()->GetProcessManager(); 00130 apProcess = new G4AntiProtonAnnihilationAtRest(); 00131 aProcMan->AddRestProcess(apProcess); 00132 00133 // AntiNeutron 00134 aProcMan = G4AntiNeutron::AntiNeutron()->GetProcessManager(); 00135 anProcess = new G4AntiNeutronAnnihilationAtRest(); 00136 aProcMan->AddRestProcess(anProcess); 00137 00138 }