CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
G4ProtonBuilder_WP Class Reference

#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
 
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.

67  : wasActivated(false)
68  {
69  theProtonInelastic=new G4ProtonInelasticProcess;
70 
71  theWrappedProtonInelastic=new GflashHadronWrapperProcess("G4ProtonInelasticProcess");
72  }
GflashHadronWrapperProcess * theWrappedProtonInelastic
G4ProtonInelasticProcess * theProtonInelastic
G4ProtonBuilder_WP::~G4ProtonBuilder_WP ( )
virtual

Definition at line 75 of file G4ProtonBuilder_WP.cc.

References theProtonInelastic.

76  {
77  delete theProtonInelastic;
78  }
G4ProtonInelasticProcess * 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 HadronPhysicsQGSPCMS_FTFP_BERT_WP::ConstructProcess(), HadronPhysicsQGSP_WP::ConstructProcess(), and HadronPhysicsQGSP_BERT_WP::ConstructProcess().

51  {
52  wasActivated = true;
53  std::vector<G4VProtonBuilder *>::iterator i;
54  for(i=theModelCollections.begin(); i!=theModelCollections.end(); i++)
55  {
56  (*i)->Build(theProtonInelastic);
57  }
58  G4ProcessManager * theProcMan = G4Proton::Proton()->GetProcessManager();
59  // theProcMan->AddDiscreteProcess(theProtonInelastic);
60  edm::LogInfo("SimG4CoreGFlash") << " Adding GflashHadronWrapperProcess (G4wrapperProcess) for G4ProtonInelasticProcess";
62  theProcMan->AddDiscreteProcess(theWrappedProtonInelastic);
63 
64 }
int i
Definition: DBlmapReader.cc:9
GflashHadronWrapperProcess * theWrappedProtonInelastic
std::vector< G4VProtonBuilder * > theModelCollections
G4ProtonInelasticProcess * theProtonInelastic
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().

GflashHadronWrapperProcess* G4ProtonBuilder_WP::theWrappedProtonInelastic
private

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