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

#include <G4PiKBuilder.hh>

Public Member Functions

 G4PiKBuilder ()
 
virtual ~G4PiKBuilder ()
 
void Build ()
 
void RegisterMe (G4VPiKBuilder *aB)
 

Detailed Description

Definition at line 50 of file G4PiKBuilder.hh.

Constructor & Destructor Documentation

G4PiKBuilder::G4PiKBuilder ( )
G4PiKBuilder::~G4PiKBuilder ( )
virtual

Definition at line 56 of file G4PiKBuilder.cc.

57 {}

Member Function Documentation

void G4PiKBuilder::Build ( void  )

Definition at line 60 of file G4PiKBuilder.cc.

61 {
62  wasActivated = true;
63 
64  std::vector<G4VPiKBuilder *>::iterator i;
65  for(i=theModelCollections.begin(); i!=theModelCollections.end(); i++)
66  {
67  (*i)->Build(thePionPlusInelastic);
68  (*i)->Build(thePionMinusInelastic);
69  (*i)->Build(theKaonPlusInelastic);
70  (*i)->Build(theKaonMinusInelastic);
71  (*i)->Build(theKaonZeroLInelastic);
72  (*i)->Build(theKaonZeroSInelastic);
73  }
74  G4ProcessManager * theProcMan;
75  theProcMan = G4PionPlus::PionPlus()->GetProcessManager();
76  theProcMan->AddDiscreteProcess(thePionPlusInelastic);
77 
78  theProcMan = G4PionMinus::PionMinus()->GetProcessManager();
79  theProcMan->AddDiscreteProcess(thePionMinusInelastic);
80 
81  theProcMan = G4KaonPlus::KaonPlus()->GetProcessManager();
82  theProcMan->AddDiscreteProcess(theKaonPlusInelastic);
83 
84  theProcMan = G4KaonMinus::KaonMinus()->GetProcessManager();
85  theProcMan->AddDiscreteProcess(theKaonMinusInelastic);
86 
88  theProcMan->AddDiscreteProcess(theKaonZeroLInelastic);
89 
91  theProcMan->AddDiscreteProcess(theKaonZeroSInelastic);
92 }
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
static G4KaonZeroLong * KaonZeroLong()
static G4KaonMinus * KaonMinus()
Definition: G4KaonMinus.cc:113
static G4KaonZeroShort * KaonZeroShort()
static G4PionPlus * PionPlus()
Definition: G4PionPlus.cc:98
G4ProcessManager * GetProcessManager() const
static G4PionMinus * PionMinus()
Definition: G4PionMinus.cc:98
static G4KaonPlus * KaonPlus()
Definition: G4KaonPlus.cc:113

Here is the call graph for this function:

void G4PiKBuilder::RegisterMe ( G4VPiKBuilder aB)
inline

Definition at line 58 of file G4PiKBuilder.hh.

58 {theModelCollections.push_back(aB);}

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