Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4HyperonBuilder.cc
Go to the documentation of this file.
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26//---------------------------------------------------------------------------
27// ClassName: G4HyperonBuilder
28// Author: Alberto Ribon
29// Date: May 2020
30// Modified:
31//---------------------------------------------------------------------------
32
33#include "G4HyperonBuilder.hh"
35#include "G4ParticleTable.hh"
36#include "G4ProcessManager.hh"
49
50
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}
65
66
68 auto bld = dynamic_cast< G4VHyperonBuilder* >( aB );
69 if ( bld != nullptr ) theModelCollections.push_back( bld );
71}
72
73
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()
virtual void Build() final override
virtual void RegisterMe(G4PhysicsBuilderInterface *aB) final override
static G4Lambda * Lambda()
Definition: G4Lambda.cc:107
static G4OmegaMinus * OmegaMinus()
G4ProcessManager * GetProcessManager() const
virtual void RegisterMe(G4PhysicsBuilderInterface *)
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