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

#include <HadronPhysicsFTFP_BERT_TRV.hh>

+ Inheritance diagram for HadronPhysicsFTFP_BERT_TRV:

Public Member Functions

 HadronPhysicsFTFP_BERT_TRV (G4int verbose=1)
 
 HadronPhysicsFTFP_BERT_TRV (const G4String &name, G4bool quasiElastic=false)
 
virtual ~HadronPhysicsFTFP_BERT_TRV ()
 
virtual void ConstructParticle ()
 
virtual void ConstructProcess ()
 
- Public Member Functions inherited from G4VPhysicsConstructor
 G4VPhysicsConstructor (const G4String &="")
 
 G4VPhysicsConstructor (const G4String &name, G4int physics_type)
 
virtual ~G4VPhysicsConstructor ()
 
virtual void ConstructParticle ()=0
 
virtual void ConstructProcess ()=0
 
void SetPhysicsName (const G4String &="")
 
const G4StringGetPhysicsName () const
 
void SetPhysicsType (G4int)
 
G4int GetPhysicsType () const
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel () const
 

Additional Inherited Members

- Protected Member Functions inherited from G4VPhysicsConstructor
G4bool RegisterProcess (G4VProcess *process, G4ParticleDefinition *particle)
 
- Protected Attributes inherited from G4VPhysicsConstructor
G4int verboseLevel
 
G4String namePhysics
 
G4int typePhysics
 
G4ParticleTabletheParticleTable
 
G4ParticleTable::G4PTblDicIteratortheParticleIterator
 
G4PhysicsListHelperthePLHelper
 

Detailed Description

Definition at line 67 of file HadronPhysicsFTFP_BERT_TRV.hh.

Constructor & Destructor Documentation

◆ HadronPhysicsFTFP_BERT_TRV() [1/2]

HadronPhysicsFTFP_BERT_TRV::HadronPhysicsFTFP_BERT_TRV ( G4int  verbose = 1)

Definition at line 70 of file HadronPhysicsFTFP_BERT_TRV.cc.

71 : G4VPhysicsConstructor("hInelastic FTFP_BERT_TRV")
72 , theNeutrons(0)
73 , theBertiniNeutron(0)
74 , theFTFPNeutron(0)
75 , thePiK(0)
76 , theBertiniPiK(0)
77 , theFTFPPiK(0)
78 , thePro(0)
79 , theBertiniPro(0)
80 , theFTFPPro(0)
81 , theHyperon(0)
82 , theAntiBaryon(0)
83 , theFTFPAntiBaryon(0)
84 , QuasiElastic(false)
85 , ChipsKaonMinus(0)
86 , ChipsKaonPlus(0)
87 , ChipsKaonZero(0)
88 , xsNeutronInelasticXS(0)
89 , xsNeutronCaptureXS(0)
90{}

◆ HadronPhysicsFTFP_BERT_TRV() [2/2]

HadronPhysicsFTFP_BERT_TRV::HadronPhysicsFTFP_BERT_TRV ( const G4String name,
G4bool  quasiElastic = false 
)

Definition at line 92 of file HadronPhysicsFTFP_BERT_TRV.cc.

94 , theNeutrons(0)
95 , theBertiniNeutron(0)
96 , theFTFPNeutron(0)
97 , thePiK(0)
98 , theBertiniPiK(0)
99 , theFTFPPiK(0)
100 , thePro(0)
101 , theBertiniPro(0)
102 , theFTFPPro(0)
103 , theHyperon(0)
104 , theAntiBaryon(0)
105 , theFTFPAntiBaryon(0)
106 , QuasiElastic(quasiElastic)
107 , ChipsKaonMinus(0)
108 , ChipsKaonPlus(0)
109 , ChipsKaonZero(0)
110 , xsNeutronInelasticXS(0)
111 , xsNeutronCaptureXS(0)
112{}

◆ ~HadronPhysicsFTFP_BERT_TRV()

HadronPhysicsFTFP_BERT_TRV::~HadronPhysicsFTFP_BERT_TRV ( )
virtual

Definition at line 155 of file HadronPhysicsFTFP_BERT_TRV.cc.

156{
157 delete theNeutrons;
158 delete theBertiniNeutron;
159 delete theFTFPNeutron;
160
161 delete thePiK;
162 delete theBertiniPiK;
163 delete theFTFPPiK;
164
165 delete thePro;
166 delete theBertiniPro;
167 delete theFTFPPro;
168
169 delete theHyperon;
170 delete theAntiBaryon;
171 delete theFTFPAntiBaryon;
172
173 delete xsNeutronInelasticXS;
174 delete xsNeutronCaptureXS;
175}

Member Function Documentation

◆ ConstructParticle()

void HadronPhysicsFTFP_BERT_TRV::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 177 of file HadronPhysicsFTFP_BERT_TRV.cc.

178{
179 G4MesonConstructor pMesonConstructor;
180 pMesonConstructor.ConstructParticle();
181
182 G4BaryonConstructor pBaryonConstructor;
183 pBaryonConstructor.ConstructParticle();
184
185 G4ShortLivedConstructor pShortLivedConstructor;
186 pShortLivedConstructor.ConstructParticle();
187}
static void ConstructParticle()
static void ConstructParticle()

◆ ConstructProcess()

void HadronPhysicsFTFP_BERT_TRV::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 190 of file HadronPhysicsFTFP_BERT_TRV.cc.

191{
192 CreateModels();
193 theNeutrons->Build();
194 thePro->Build();
195 thePiK->Build();
196
197 theHyperon->Build();
198 theAntiBaryon->Build();
199
200 // --- Kaons ---
201 // Use Chips cross sections
205
210
211 // --- Neutrons ---
212 // Use the same cross sections and neutron capture as in QBBC.
213 // Need also to assigned a model (Gheisha) to fission.
214 xsNeutronInelasticXS = new G4NeutronInelasticXS();
216
217 G4HadronicProcess* capture = 0;
218 G4HadronicProcess* fission = 0;
220 G4ProcessVector* pv = pmanager->GetProcessList();
221 for ( size_t i=0; i < static_cast<size_t>(pv->size()); ++i ) {
222 if ( fCapture == ((*pv)[i])->GetProcessSubType() ) {
223 capture = static_cast<G4HadronicProcess*>((*pv)[i]);
224 } else if ( fFission == ((*pv)[i])->GetProcessSubType() ) {
225 fission = static_cast<G4HadronicProcess*>((*pv)[i]);
226 }
227 }
228 if ( ! capture ) {
229 capture = new G4HadronCaptureProcess("nCapture");
230 pmanager->AddDiscreteProcess(capture);
231 }
232 xsNeutronCaptureXS = new G4NeutronCaptureXS();
233 capture->AddDataSet(xsNeutronCaptureXS);
234 capture->RegisterMe(new G4NeutronRadCapture());
235 if ( ! fission ) {
236 fission = new G4HadronFissionProcess("nFission");
237 pmanager->AddDiscreteProcess(fission);
238 }
239 fission->RegisterMe(new G4LFission());
240
241}
G4VCrossSectionDataSet * GetCrossSectionDataSet(const G4String &name, G4bool warning=true)
static G4CrossSectionDataSetRegistry * Instance()
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void RegisterMe(G4HadronicInteraction *a)
static G4KaonMinus * KaonMinus()
Definition: G4KaonMinus.cc:113
static G4KaonPlus * KaonPlus()
Definition: G4KaonPlus.cc:113
static G4KaonZeroLong * KaonZeroLong()
static G4KaonZeroShort * KaonZeroShort()
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104
G4ProcessManager * GetProcessManager() const
static G4HadronicProcess * FindInelasticProcess(const G4ParticleDefinition *)
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
G4ProcessVector * GetProcessList() const
G4int size() const

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