#include <G4LHEPAntiBarionBuilder.hh>
Public Member Functions | |
G4LHEPAntiBarionBuilder () | |
virtual | ~G4LHEPAntiBarionBuilder () |
void | Build () |
Definition at line 54 of file G4LHEPAntiBarionBuilder.hh.
G4LHEPAntiBarionBuilder::G4LHEPAntiBarionBuilder | ( | ) |
Definition at line 48 of file G4LHEPAntiBarionBuilder.cc.
00048 : 00049 theAntiProtonInelastic(0), theLEAntiProtonModel(0), theHEAntiProtonModel(0), 00050 theAntiNeutronInelastic(0), theLEAntiNeutronModel(0), theHEAntiNeutronModel(0), 00051 wasActivated(false) 00052 {}
G4LHEPAntiBarionBuilder::~G4LHEPAntiBarionBuilder | ( | ) | [virtual] |
void G4LHEPAntiBarionBuilder::Build | ( | ) |
Definition at line 57 of file G4LHEPAntiBarionBuilder.cc.
References G4ProcessManager::AddDiscreteProcess(), G4AntiNeutron::AntiNeutron(), G4AntiProton::AntiProton(), G4ParticleDefinition::GetProcessManager(), G4HadronicProcess::RegisterMe(), and G4HadronicInteraction::SetMaxEnergy().
00058 { 00059 G4ProcessManager * aProcMan = 0; 00060 wasActivated = true; 00061 00062 // anti-Proton 00063 theAntiProtonInelastic = new G4AntiProtonInelasticProcess(); 00064 aProcMan = G4AntiProton::AntiProton()->GetProcessManager(); 00065 theLEAntiProtonModel = new G4LEAntiProtonInelastic(); 00066 theHEAntiProtonModel = new G4HEAntiProtonInelastic(); 00067 theHEAntiProtonModel->SetMaxEnergy(100*TeV); 00068 theAntiProtonInelastic->RegisterMe(theLEAntiProtonModel); 00069 theAntiProtonInelastic->RegisterMe(theHEAntiProtonModel); 00070 aProcMan->AddDiscreteProcess(theAntiProtonInelastic); 00071 00072 // AntiNeutron 00073 theAntiNeutronInelastic = new G4AntiNeutronInelasticProcess(); 00074 aProcMan = G4AntiNeutron::AntiNeutron()->GetProcessManager(); 00075 theLEAntiNeutronModel = new G4LEAntiNeutronInelastic(); 00076 theHEAntiNeutronModel = new G4HEAntiNeutronInelastic(); 00077 theHEAntiNeutronModel->SetMaxEnergy(100*TeV); 00078 theAntiNeutronInelastic->RegisterMe(theLEAntiNeutronModel); 00079 theAntiNeutronInelastic->RegisterMe(theHEAntiNeutronModel); 00080 aProcMan->AddDiscreteProcess(theAntiNeutronInelastic); 00081 }