1 #include "SimG4Core/PhysicsLists/interface/G4RPGProtonBuilder.hh"
2 #include "G4ParticleDefinition.hh"
3 #include "G4ParticleTable.hh"
4 #include "G4ProcessManager.hh"
6 G4RPGProtonBuilder::G4RPGProtonBuilder(): theRPGProtonModel(0) {
11 G4RPGProtonBuilder::~G4RPGProtonBuilder() {
12 if (theRPGProtonModel)
delete theRPGProtonModel;
15 void G4RPGProtonBuilder::Build(G4HadronElasticProcess *) {
16 G4cout <<
"Info - G4RPGProtonBuilder::Build() not adding elastic" << G4endl;
19 void G4RPGProtonBuilder::Build(G4ProtonInelasticProcess * aP) {
20 theRPGProtonModel =
new G4RPGProtonInelastic();
21 theRPGProtonModel->SetMinEnergy(theMin);
22 theRPGProtonModel->SetMaxEnergy(theMax);
23 aP->RegisterMe(theRPGProtonModel);