Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4KaonBuilder Class Reference

#include <G4KaonBuilder.hh>

Public Member Functions

 G4KaonBuilder ()
 
virtual ~G4KaonBuilder ()
 
void Build ()
 
void RegisterMe (G4VKaonBuilder *aB)
 

Detailed Description

Definition at line 51 of file G4KaonBuilder.hh.

Constructor & Destructor Documentation

◆ G4KaonBuilder()

G4KaonBuilder::G4KaonBuilder ( )

◆ ~G4KaonBuilder()

G4KaonBuilder::~G4KaonBuilder ( )
virtual

Definition at line 53 of file G4KaonBuilder.cc.

54 {
55 delete theKaonPlusInelastic;
56 delete theKaonMinusInelastic;
57 delete theKaonZeroLInelastic;
58 delete theKaonZeroSInelastic;
59}

Member Function Documentation

◆ Build()

void G4KaonBuilder::Build ( )

Definition at line 61 of file G4KaonBuilder.cc.

63{
64 wasActivated = true;
65
66 std::vector<G4VKaonBuilder *>::iterator i;
67 for(i=theModelCollections.begin(); i!=theModelCollections.end(); i++)
68 {
69 (*i)->Build(theKaonPlusInelastic);
70 (*i)->Build(theKaonMinusInelastic);
71 (*i)->Build(theKaonZeroLInelastic);
72 (*i)->Build(theKaonZeroSInelastic);
73 }
74 G4ProcessManager * theProcMan;
75
77 theProcMan->AddDiscreteProcess(theKaonPlusInelastic);
78
80 theProcMan->AddDiscreteProcess(theKaonMinusInelastic);
81
83 theProcMan->AddDiscreteProcess(theKaonZeroLInelastic);
84
86 theProcMan->AddDiscreteProcess(theKaonZeroSInelastic);
87}
static G4KaonMinus * KaonMinus()
Definition: G4KaonMinus.cc:113
static G4KaonPlus * KaonPlus()
Definition: G4KaonPlus.cc:113
static G4KaonZeroLong * KaonZeroLong()
static G4KaonZeroShort * KaonZeroShort()
G4ProcessManager * GetProcessManager() const
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)

Referenced by HadronPhysicsFTF_BIC::ConstructProcess().

◆ RegisterMe()

void G4KaonBuilder::RegisterMe ( G4VKaonBuilder aB)
inline

Definition at line 59 of file G4KaonBuilder.hh.

59{theModelCollections.push_back(aB);}

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