CMS 3D CMS Logo

Public Member Functions | Private Attributes

G4ProtonBuilder_WP Class Reference

#include <G4ProtonBuilder_WP.h>

List of all members.

Public Member Functions

void Build ()
 G4ProtonBuilder_WP ()
void RegisterMe (G4VProtonBuilder *aB)
virtual ~G4ProtonBuilder_WP ()

Private Attributes

std::vector< G4VProtonBuilder * > theModelCollections
G4ProtonInelasticProcess * theProtonInelastic
GflashHadronWrapperProcesstheWrappedProtonInelastic
G4bool wasActivated

Detailed Description

Definition at line 52 of file G4ProtonBuilder_WP.h.


Constructor & Destructor Documentation

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;
 }

Member Function Documentation

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]

Member Data Documentation

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().

Definition at line 69 of file G4ProtonBuilder_WP.h.

Referenced by Build().