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

#include <G4HyperonBuilder.hh>

+ Inheritance diagram for G4HyperonBuilder:

Public Member Functions

 G4HyperonBuilder ()
 
virtual ~G4HyperonBuilder ()
 
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 57 of file G4HyperonBuilder.hh.

Constructor & Destructor Documentation

◆ G4HyperonBuilder()

G4HyperonBuilder::G4HyperonBuilder ( )

Definition at line 51 of file G4HyperonBuilder.cc.

51 {
52 theLambdaInelastic = new G4LambdaInelasticProcess;
53 theAntiLambdaInelastic = new G4AntiLambdaInelasticProcess;
54 theSigmaMinusInelastic = new G4SigmaMinusInelasticProcess;
55 theAntiSigmaMinusInelastic = new G4AntiSigmaMinusInelasticProcess;
56 theSigmaPlusInelastic = new G4SigmaPlusInelasticProcess;
57 theAntiSigmaPlusInelastic = new G4AntiSigmaPlusInelasticProcess;
58 theXiMinusInelastic = new G4XiMinusInelasticProcess;
59 theAntiXiMinusInelastic = new G4AntiXiMinusInelasticProcess;
60 theXiZeroInelastic = new G4XiZeroInelasticProcess;
61 theAntiXiZeroInelastic = new G4AntiXiZeroInelasticProcess;
62 theOmegaMinusInelastic = new G4OmegaMinusInelasticProcess;
63 theAntiOmegaMinusInelastic = new G4AntiOmegaMinusInelasticProcess;
64}

◆ ~G4HyperonBuilder()

virtual G4HyperonBuilder::~G4HyperonBuilder ( )
inlinevirtual

Definition at line 60 of file G4HyperonBuilder.hh.

60{}

Member Function Documentation

◆ Build()

void G4HyperonBuilder::Build ( )
finaloverridevirtual

Reimplemented from G4PhysicsBuilderInterface.

Definition at line 74 of file G4HyperonBuilder.cc.

74 {
75 for ( std::vector< G4VHyperonBuilder* >::iterator i = theModelCollections.begin();
76 i != theModelCollections.end(); ++i ) {
77 (*i)->Build( theLambdaInelastic );
78 (*i)->Build( theAntiLambdaInelastic );
79 (*i)->Build( theSigmaMinusInelastic );
80 (*i)->Build( theAntiSigmaMinusInelastic );
81 (*i)->Build( theSigmaPlusInelastic );
82 (*i)->Build( theAntiSigmaPlusInelastic );
83 (*i)->Build( theXiMinusInelastic );
84 (*i)->Build( theAntiXiMinusInelastic );
85 (*i)->Build( theXiZeroInelastic );
86 (*i)->Build( theAntiXiZeroInelastic );
87 (*i)->Build( theOmegaMinusInelastic );
88 (*i)->Build( theAntiOmegaMinusInelastic );
89 }
90 G4ProcessManager* aProcMan = nullptr;
91 aProcMan = G4Lambda::Lambda()->GetProcessManager();
92 aProcMan->AddDiscreteProcess( theLambdaInelastic );
94 aProcMan->AddDiscreteProcess( theAntiLambdaInelastic );
96 aProcMan->AddDiscreteProcess( theSigmaMinusInelastic );
98 aProcMan->AddDiscreteProcess( theAntiSigmaMinusInelastic );
100 aProcMan->AddDiscreteProcess( theSigmaPlusInelastic );
102 aProcMan->AddDiscreteProcess( theAntiSigmaPlusInelastic );
104 aProcMan->AddDiscreteProcess( theXiMinusInelastic );
106 aProcMan->AddDiscreteProcess( theAntiXiMinusInelastic );
107 aProcMan = G4XiZero::XiZero()->GetProcessManager();
108 aProcMan->AddDiscreteProcess( theXiZeroInelastic );
110 aProcMan->AddDiscreteProcess( theAntiXiZeroInelastic );
112 aProcMan->AddDiscreteProcess( theOmegaMinusInelastic );
114 aProcMan->AddDiscreteProcess( theAntiOmegaMinusInelastic );
115}
static G4AntiLambda * AntiLambda()
static G4AntiOmegaMinus * AntiOmegaMinus()
static G4AntiSigmaMinus * AntiSigmaMinus()
static G4AntiSigmaPlus * AntiSigmaPlus()
static G4AntiXiMinus * AntiXiMinus()
static G4AntiXiZero * AntiXiZero()
static G4Lambda * Lambda()
Definition: G4Lambda.cc:107
static G4OmegaMinus * OmegaMinus()
G4ProcessManager * GetProcessManager() const
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
static G4SigmaMinus * SigmaMinus()
static G4SigmaPlus * SigmaPlus()
Definition: G4SigmaPlus.cc:107
static G4XiMinus * XiMinus()
Definition: G4XiMinus.cc:105
static G4XiZero * XiZero()
Definition: G4XiZero.cc:105

◆ RegisterMe()

void G4HyperonBuilder::RegisterMe ( G4PhysicsBuilderInterface aB)
finaloverridevirtual

Reimplemented from G4PhysicsBuilderInterface.

Definition at line 67 of file G4HyperonBuilder.cc.

67 {
68 auto bld = dynamic_cast< G4VHyperonBuilder* >( aB );
69 if ( bld != nullptr ) theModelCollections.push_back( bld );
71}
virtual void RegisterMe(G4PhysicsBuilderInterface *)

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