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

#include <G4KaonBuilder.hh>

+ Inheritance diagram for G4KaonBuilder:

Public Member Functions

 G4KaonBuilder ()
 
virtual ~G4KaonBuilder ()
 
virtual void Build () final override
 
virtual void RegisterMe (G4PhysicsBuilderInterface *aB) final override
 
- Public Member Functions inherited from G4PhysicsBuilderInterface
 G4PhysicsBuilderInterface ()=default
 
virtual ~G4PhysicsBuilderInterface ()
 
virtual void Build ()
 
virtual void RegisterMe (G4PhysicsBuilderInterface *)
 
virtual void SetMinEnergy (G4double)
 
virtual void SetMaxEnergy (G4double)
 

Detailed Description

Definition at line 51 of file G4KaonBuilder.hh.

Constructor & Destructor Documentation

◆ G4KaonBuilder()

G4KaonBuilder::G4KaonBuilder ( )

◆ ~G4KaonBuilder()

virtual G4KaonBuilder::~G4KaonBuilder ( )
inlinevirtual

Definition at line 55 of file G4KaonBuilder.hh.

55{}

Member Function Documentation

◆ Build()

void G4KaonBuilder::Build ( )
finaloverridevirtual

Reimplemented from G4PhysicsBuilderInterface.

Definition at line 52 of file G4KaonBuilder.cc.

54{
55 std::vector<G4VKaonBuilder *>::iterator i;
56 for(i=theModelCollections.begin(); i!=theModelCollections.end(); i++)
57 {
58 (*i)->Build(theKaonPlusInelastic);
59 (*i)->Build(theKaonMinusInelastic);
60 (*i)->Build(theKaonZeroLInelastic);
61 (*i)->Build(theKaonZeroSInelastic);
62 }
63 G4ProcessManager * theProcMan;
64
66 theProcMan->AddDiscreteProcess(theKaonPlusInelastic);
67
69 theProcMan->AddDiscreteProcess(theKaonMinusInelastic);
70
72 theProcMan->AddDiscreteProcess(theKaonZeroLInelastic);
73
75 theProcMan->AddDiscreteProcess(theKaonZeroSInelastic);
76}
static G4KaonMinus * KaonMinus()
Definition: G4KaonMinus.cc:112
static G4KaonPlus * KaonPlus()
Definition: G4KaonPlus.cc:112
static G4KaonZeroLong * KaonZeroLong()
static G4KaonZeroShort * KaonZeroShort()
G4ProcessManager * GetProcessManager() const
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)

◆ RegisterMe()

void G4KaonBuilder::RegisterMe ( G4PhysicsBuilderInterface aB)
finaloverridevirtual

Reimplemented from G4PhysicsBuilderInterface.

Definition at line 78 of file G4KaonBuilder.cc.

78 {
79 auto bld = dynamic_cast<G4VKaonBuilder*>(aB);
80 if ( bld != nullptr ) {
81 theModelCollections.push_back(bld);
82 } else {
84 }
85}
virtual void RegisterMe(G4PhysicsBuilderInterface *)

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