Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ExExChProtonBuilder Class Reference

#include <ExExChProtonBuilder.hh>

Public Member Functions

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

Detailed Description

Definition at line 41 of file ExExChProtonBuilder.hh.

Constructor & Destructor Documentation

ExExChProtonBuilder::ExExChProtonBuilder ( )

Definition at line 56 of file ExExChProtonBuilder.cc.

56  : wasActivated(false)
57 {
58  theProtonInelastic=new G4ProtonInelasticProcess;
59 }
ExExChProtonBuilder::~ExExChProtonBuilder ( )
virtual

Definition at line 64 of file ExExChProtonBuilder.cc.

65 {
66  delete theProtonInelastic;
67 }

Member Function Documentation

void ExExChProtonBuilder::Build ( void  )

Definition at line 38 of file ExExChProtonBuilder.cc.

39 {
40  wasActivated = true;
41  std::vector<G4VProtonBuilder *>::iterator i;
42  for(i=theModelCollections.begin(); i!=theModelCollections.end(); i++)
43  {
44  (*i)->Build(theProtonInelastic);
45  }
47  XWrapperDiscreteProcess* theProtonInelastic_wrapper =
49  theProtonInelastic_wrapper->RegisterProcess(theProtonInelastic,1);
50  theProcMan->AddDiscreteProcess(theProtonInelastic_wrapper);
51 }
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
static G4Proton * Proton()
Definition: G4Proton.cc:93
G4ProcessManager * GetProcessManager() const
void RegisterProcess(G4VDiscreteProcess *)

Here is the call graph for this function:

void ExExChProtonBuilder::RegisterMe ( G4VProtonBuilder aB)
inline

Definition at line 49 of file ExExChProtonBuilder.hh.

49 {theModelCollections.push_back(aB);}

The documentation for this class was generated from the following files: