00001 #include "SimG4Core/PhysicsLists/interface/G4RPGProtonBuilder.hh" 00002 #include "G4ParticleDefinition.hh" 00003 #include "G4ParticleTable.hh" 00004 #include "G4ProcessManager.hh" 00005 00006 G4RPGProtonBuilder::G4RPGProtonBuilder(): theRPGProtonModel(0) { 00007 theMin = 0; 00008 theMax = 55*GeV; 00009 } 00010 00011 G4RPGProtonBuilder::~G4RPGProtonBuilder() { 00012 if (theRPGProtonModel) delete theRPGProtonModel; 00013 } 00014 00015 void G4RPGProtonBuilder::Build(G4HadronElasticProcess *) { 00016 G4cout << "Info - G4RPGProtonBuilder::Build() not adding elastic" << G4endl; 00017 } 00018 00019 void G4RPGProtonBuilder::Build(G4ProtonInelasticProcess * aP) { 00020 theRPGProtonModel = new G4RPGProtonInelastic(); 00021 theRPGProtonModel->SetMinEnergy(theMin); 00022 theRPGProtonModel->SetMaxEnergy(theMax); 00023 aP->RegisterMe(theRPGProtonModel); 00024 }