test
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 66 of file G4ProtonBuilder_WP.cc.

References theProtonInelastic, and theWrappedProtonInelastic.

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

Definition at line 74 of file G4ProtonBuilder_WP.cc.

References theProtonInelastic.

75  {
76  delete theProtonInelastic;
77  }
G4ProtonInelasticProcess * theProtonInelastic

Member Function Documentation

void G4ProtonBuilder_WP::Build ( )

Definition at line 49 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().

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