Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4HadronPhysicsFTFP_BERT_HP Class Reference

#include <G4HadronPhysicsFTFP_BERT_HP.hh>

Inheritance diagram for G4HadronPhysicsFTFP_BERT_HP:
Collaboration diagram for G4HadronPhysicsFTFP_BERT_HP:

Public Member Functions

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

Additional Inherited Members

- Static Public Member Functions inherited from G4VPhysicsConstructor
static const G4VPCManagerGetSubInstanceManager ()
 
- Protected Member Functions inherited from G4VPhysicsConstructor
G4bool RegisterProcess (G4VProcess *process, G4ParticleDefinition *particle)
 
G4ParticleTable::G4PTblDicIteratorGetParticleIterator () const
 
- Protected Attributes inherited from G4VPhysicsConstructor
G4int verboseLevel
 
G4String namePhysics
 
G4int typePhysics
 
G4ParticleTabletheParticleTable
 
G4int g4vpcInstanceID
 
- Static Protected Attributes inherited from G4VPhysicsConstructor
static G4RUN_DLL G4VPCManager subInstanceManager
 

Detailed Description

Definition at line 72 of file G4HadronPhysicsFTFP_BERT_HP.hh.

Constructor & Destructor Documentation

G4HadronPhysicsFTFP_BERT_HP::G4HadronPhysicsFTFP_BERT_HP ( G4int  verbose = 1)

Definition at line 66 of file G4HadronPhysicsFTFP_BERT_HP.cc.

67  : G4VPhysicsConstructor("hInelastic FTFP_BERT_HP")
68 /* , theNeutrons(0)
69  , theBertiniNeutron(0)
70  , theFTFPNeutron(0)
71  , theHPNeutron(0)
72  , thePion(0)
73  , theBertiniPion(0)
74  , theFTFPPion(0)
75  , theKaon(0)
76  , theBertiniKaon(0)
77  , theFTFPKaon(0)
78  , thePro(0)
79  , theBertiniPro(0)
80  , theFTFPPro(0)
81  , theHyperon(0)
82  , theAntiBaryon(0)
83  , theFTFPAntiBaryon(0)*/
84  , QuasiElastic(false)
85  /*, xsKaon(0)
86  , xsNeutronCaptureXS(0)*/
87 {}
G4VPhysicsConstructor(const G4String &="")
G4HadronPhysicsFTFP_BERT_HP::G4HadronPhysicsFTFP_BERT_HP ( const G4String name,
G4bool  quasiElastic = false 
)

Definition at line 89 of file G4HadronPhysicsFTFP_BERT_HP.cc.

90  : G4VPhysicsConstructor(name)
91 /* , theNeutrons(0)
92  , theBertiniNeutron(0)
93  , theFTFPNeutron(0)
94  , theHPNeutron(0)
95  , thePion(0)
96  , theBertiniPion(0)
97  , theFTFPPion(0)
98  , theKaon(0)
99  , theBertiniKaon(0)
100  , theFTFPKaon(0)
101  , thePro(0)
102  , theBertiniPro(0)
103  , theFTFPPro(0)
104  , theHyperon(0)
105  , theAntiBaryon(0)
106  , theFTFPAntiBaryon(0)*/
107  , QuasiElastic(quasiElastic)
108  /*, xsKaon(0)
109  , xsNeutronCaptureXS(0)*/
110 {}
G4VPhysicsConstructor(const G4String &="")
G4HadronPhysicsFTFP_BERT_HP::~G4HadronPhysicsFTFP_BERT_HP ( )
virtual

Definition at line 170 of file G4HadronPhysicsFTFP_BERT_HP.cc.

171 {
172  if (!tpdata) return;
173 
174  delete tpdata->theNeutrons;
175  delete tpdata->theBertiniNeutron;
176  delete tpdata->theFTFPNeutron;
177  delete tpdata->theHPNeutron;
178 
179  delete tpdata->thePion;
180  delete tpdata->theBertiniPion;
181  delete tpdata->theFTFPPion;
182 
183  delete tpdata->theKaon;
184  delete tpdata->theBertiniKaon;
185  delete tpdata->theFTFPKaon;
186 
187  delete tpdata->thePro;
188  delete tpdata->theBertiniPro;
189  delete tpdata->theFTFPPro;
190 
191  delete tpdata->theHyperon;
192  delete tpdata->theAntiBaryon;
193  delete tpdata->theFTFPAntiBaryon;
194 
195  delete tpdata; tpdata = 0;
196 }

Member Function Documentation

void G4HadronPhysicsFTFP_BERT_HP::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 198 of file G4HadronPhysicsFTFP_BERT_HP.cc.

199 {
200  G4MesonConstructor pMesonConstructor;
201  pMesonConstructor.ConstructParticle();
202 
203  G4BaryonConstructor pBaryonConstructor;
204  pBaryonConstructor.ConstructParticle();
205 
206  G4ShortLivedConstructor pShortLivedConstructor;
207  pShortLivedConstructor.ConstructParticle();
208 }
static void ConstructParticle()
static void ConstructParticle()

Here is the call graph for this function:

void G4HadronPhysicsFTFP_BERT_HP::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 211 of file G4HadronPhysicsFTFP_BERT_HP.cc.

212 {
213  if (tpdata == 0 ) tpdata = new ThreadPrivate;
214  CreateModels();
215  tpdata->theNeutrons->Build();
216  tpdata->thePro->Build();
217  tpdata->thePion->Build();
218  tpdata->theKaon->Build();
219 
220  // --- Kaons ---
221  tpdata->xsKaon = new G4ComponentGGHadronNucleusXsc();
222  G4VCrossSectionDataSet * kaonxs = new G4CrossSectionInelastic(tpdata->xsKaon);
227 
228  tpdata->theHyperon->Build();
229  tpdata->theAntiBaryon->Build();
230 
231  // --- Neutrons ---
232  G4HadronicProcess* capture = 0;
233  G4HadronicProcess* fission = 0;
235  G4ProcessVector* pv = pmanager->GetProcessList();
236  for ( size_t i=0; i < static_cast<size_t>(pv->size()); ++i ) {
237  if ( fCapture == ((*pv)[i])->GetProcessSubType() ) {
238  capture = static_cast<G4HadronicProcess*>((*pv)[i]);
239  } else if ( fFission == ((*pv)[i])->GetProcessSubType() ) {
240  fission = static_cast<G4HadronicProcess*>((*pv)[i]);
241  }
242  }
243  if ( ! capture ) {
244  capture = new G4HadronCaptureProcess("nCapture");
245  pmanager->AddDiscreteProcess(capture);
246  }
248  capture->AddDataSet(tpdata->xsNeutronCaptureXS);
249  capture->AddDataSet( new G4ParticleHPCaptureData );
250  G4NeutronRadCapture* theNeutronRadCapture = new G4NeutronRadCapture();
251  theNeutronRadCapture->SetMinEnergy( 19.9*MeV );
252  capture->RegisterMe( theNeutronRadCapture );
253  if ( ! fission ) {
254  fission = new G4HadronFissionProcess("nFission");
255  pmanager->AddDiscreteProcess(fission);
256  }
257  G4LFission* theNeutronLEPFission = new G4LFission();
258  theNeutronLEPFission->SetMinEnergy( 19.9*MeV );
259  fission->RegisterMe( theNeutronLEPFission );
260 }
G4VCrossSectionDataSet * GetCrossSectionDataSet(const G4String &name, G4bool warning=true)
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
static G4KaonZeroLong * KaonZeroLong()
static G4KaonMinus * KaonMinus()
Definition: G4KaonMinus.cc:113
void RegisterMe(G4HadronicInteraction *a)
void SetMinEnergy(G4double anEnergy)
static G4HadronicProcess * FindInelasticProcess(const G4ParticleDefinition *)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
static G4KaonZeroShort * KaonZeroShort()
static G4CrossSectionDataSetRegistry * Instance()
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104
G4int size() const
static const char * Default_Name()
G4ProcessManager * GetProcessManager() const
static constexpr double MeV
Definition: G4SIunits.hh:214
static G4KaonPlus * KaonPlus()
Definition: G4KaonPlus.cc:113
G4ProcessVector * GetProcessList() const

Here is the call graph for this function:


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