#include <G4ProtonBuilder_WP.h>
Public Member Functions | |
void | Build () |
G4ProtonBuilder_WP () | |
void | RegisterMe (G4VProtonBuilder *aB) |
virtual | ~G4ProtonBuilder_WP () |
Private Attributes | |
std::vector< G4VProtonBuilder * > | theModelCollections |
G4ProtonInelasticProcess * | theProtonInelastic |
GflashHadronWrapperProcess * | theWrappedProtonInelastic |
G4bool | wasActivated |
Definition at line 52 of file G4ProtonBuilder_WP.h.
G4ProtonBuilder_WP::G4ProtonBuilder_WP | ( | ) |
Definition at line 67 of file G4ProtonBuilder_WP.cc.
References theProtonInelastic, and theWrappedProtonInelastic.
: wasActivated(false) { theProtonInelastic=new G4ProtonInelasticProcess; theWrappedProtonInelastic=new GflashHadronWrapperProcess("G4ProtonInelasticProcess"); }
G4ProtonBuilder_WP::~G4ProtonBuilder_WP | ( | ) | [virtual] |
Definition at line 75 of file G4ProtonBuilder_WP.cc.
References theProtonInelastic.
{ delete theProtonInelastic; }
void G4ProtonBuilder_WP::Build | ( | ) |
Definition at line 50 of file G4ProtonBuilder_WP.cc.
References i, theModelCollections, theProtonInelastic, theWrappedProtonInelastic, and wasActivated.
Referenced by HadronPhysicsQGSP_WP::ConstructProcess(), and HadronPhysicsQGSP_BERT_WP::ConstructProcess().
{ wasActivated = true; std::vector<G4VProtonBuilder *>::iterator i; for(i=theModelCollections.begin(); i!=theModelCollections.end(); i++) { (*i)->Build(theProtonInelastic); } G4ProcessManager * theProcMan = G4Proton::Proton()->GetProcessManager(); // theProcMan->AddDiscreteProcess(theProtonInelastic); edm::LogInfo("SimG4CoreGFlash") << " Adding GflashHadronWrapperProcess (G4wrapperProcess) for G4ProtonInelasticProcess"; theWrappedProtonInelastic->RegisterProcess(theProtonInelastic); theProcMan->AddDiscreteProcess(theWrappedProtonInelastic); }
void G4ProtonBuilder_WP::RegisterMe | ( | G4VProtonBuilder * | aB | ) | [inline] |
Definition at line 60 of file G4ProtonBuilder_WP.h.
References theModelCollections.
Referenced by HadronPhysicsQGSP_BERT_WP::CreateModels(), and HadronPhysicsQGSP_WP::CreateModels().
{theModelCollections.push_back(aB);}
std::vector<G4VProtonBuilder *> G4ProtonBuilder_WP::theModelCollections [private] |
Definition at line 67 of file G4ProtonBuilder_WP.h.
Referenced by Build(), and RegisterMe().
G4ProtonInelasticProcess* G4ProtonBuilder_WP::theProtonInelastic [private] |
Definition at line 63 of file G4ProtonBuilder_WP.h.
Referenced by Build(), G4ProtonBuilder_WP(), and ~G4ProtonBuilder_WP().
Definition at line 65 of file G4ProtonBuilder_WP.h.
Referenced by Build(), and G4ProtonBuilder_WP().
G4bool G4ProtonBuilder_WP::wasActivated [private] |
Definition at line 69 of file G4ProtonBuilder_WP.h.
Referenced by Build().