Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4PionBuilder Class Reference

#include <G4PionBuilder.hh>

Public Member Functions

 G4PionBuilder ()
 
virtual ~G4PionBuilder ()
 
void Build ()
 
void RegisterMe (G4VPionBuilder *aB)
 

Detailed Description

Definition at line 48 of file G4PionBuilder.hh.

Constructor & Destructor Documentation

G4PionBuilder::G4PionBuilder ( )

Definition at line 45 of file G4PionBuilder.cc.

45  : wasActivated(false)
46 {
47  thePionPlusInelastic=new G4PionPlusInelasticProcess;
48  thePionMinusInelastic=new G4PionMinusInelasticProcess;
49 }
G4PionBuilder::~G4PionBuilder ( )
virtual

Definition at line 51 of file G4PionBuilder.cc.

52 {}

Member Function Documentation

void G4PionBuilder::Build ( )

Definition at line 55 of file G4PionBuilder.cc.

56 {
57  wasActivated = true;
58 
59  std::vector<G4VPionBuilder *>::iterator i;
60  for(i=theModelCollections.begin(); i!=theModelCollections.end(); i++)
61  {
62  (*i)->Build(thePionPlusInelastic);
63  (*i)->Build(thePionMinusInelastic);
64  }
65  G4ProcessManager * theProcMan;
66 
67  theProcMan = G4PionPlus::PionPlus()->GetProcessManager();
68  theProcMan->AddDiscreteProcess(thePionPlusInelastic);
69 
70  theProcMan = G4PionMinus::PionMinus()->GetProcessManager();
71  theProcMan->AddDiscreteProcess(thePionMinusInelastic);
72 }
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
static G4PionPlus * PionPlus()
Definition: G4PionPlus.cc:98
G4ProcessManager * GetProcessManager() const
static G4PionMinus * PionMinus()
Definition: G4PionMinus.cc:98

Here is the call graph for this function:

void G4PionBuilder::RegisterMe ( G4VPionBuilder aB)
inline

Definition at line 56 of file G4PionBuilder.hh.

56 {theModelCollections.push_back(aB);}

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