Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures | Public Member Functions
G4HadronPhysicsFTFP_BERT_HP Class Reference

#include <G4HadronPhysicsFTFP_BERT_HP.hh>

Inheritance diagram for G4HadronPhysicsFTFP_BERT_HP:
G4VPhysicsConstructor

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)
 
- 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 65 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  , thePiK(0)
73  , theBertiniPiK(0)
74  , theFTFPPiK(0)
75  , thePro(0)
76  , theBertiniPro(0)
77  , theFTFPPro(0)
78  , theHyperon(0)
79  , theAntiBaryon(0)
80  , theFTFPAntiBaryon(0)*/
81  , QuasiElastic(false)
82  /* , ChipsKaonMinus(0)
83  , ChipsKaonPlus(0)
84  , ChipsKaonZero(0)
85  , xsNeutronCaptureXS(0)*/
86 {}
G4VPhysicsConstructor(const G4String &="")
G4HadronPhysicsFTFP_BERT_HP::G4HadronPhysicsFTFP_BERT_HP ( const G4String name,
G4bool  quasiElastic = false 
)

Definition at line 88 of file G4HadronPhysicsFTFP_BERT_HP.cc.

89  : G4VPhysicsConstructor(name)
90 /* , theNeutrons(0)
91  , theBertiniNeutron(0)
92  , theFTFPNeutron(0)
93  , theHPNeutron(0)
94  , thePiK(0)
95  , theBertiniPiK(0)
96  , theFTFPPiK(0)
97  , thePro(0)
98  , theBertiniPro(0)
99  , theFTFPPro(0)
100  , theHyperon(0)
101  , theAntiBaryon(0)
102  , theFTFPAntiBaryon(0)*/
103  , QuasiElastic(quasiElastic)
104  /* , ChipsKaonMinus(0)
105  , ChipsKaonPlus(0)
106  , ChipsKaonZero(0)
107  , xsNeutronCaptureXS(0)*/
108 {}
G4VPhysicsConstructor(const G4String &="")
G4HadronPhysicsFTFP_BERT_HP::~G4HadronPhysicsFTFP_BERT_HP ( )
virtual

Definition at line 139 of file G4HadronPhysicsFTFP_BERT_HP.cc.

140 {
141  delete tpdata->theNeutrons;
142  delete tpdata->theBertiniNeutron;
143  delete tpdata->theFTFPNeutron;
144  delete tpdata->theHPNeutron;
145 
146  delete tpdata->thePiK;
147  delete tpdata->theBertiniPiK;
148  delete tpdata->theFTFPPiK;
149 
150  delete tpdata->thePro;
151  delete tpdata->theBertiniPro;
152  delete tpdata->theFTFPPro;
153 
154  delete tpdata->theHyperon;
155  delete tpdata->theAntiBaryon;
156  delete tpdata->theFTFPAntiBaryon;
157 
158  delete tpdata->xsNeutronCaptureXS;
159 
160  delete tpdata; tpdata = 0;
161 }

Member Function Documentation

void G4HadronPhysicsFTFP_BERT_HP::ConstructParticle ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 163 of file G4HadronPhysicsFTFP_BERT_HP.cc.

References G4MesonConstructor::ConstructParticle(), G4BaryonConstructor::ConstructParticle(), and G4ShortLivedConstructor::ConstructParticle().

164 {
165  G4MesonConstructor pMesonConstructor;
166  pMesonConstructor.ConstructParticle();
167 
168  G4BaryonConstructor pBaryonConstructor;
169  pBaryonConstructor.ConstructParticle();
170 
171  G4ShortLivedConstructor pShortLivedConstructor;
172  pShortLivedConstructor.ConstructParticle();
173 }
static void ConstructParticle()
static void ConstructParticle()
void G4HadronPhysicsFTFP_BERT_HP::ConstructProcess ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 176 of file G4HadronPhysicsFTFP_BERT_HP.cc.

References G4HadronicProcess::AddDataSet(), G4ProcessManager::AddDiscreteProcess(), G4ChipsKaonMinusInelasticXS::Default_Name(), G4ChipsKaonPlusInelasticXS::Default_Name(), G4ChipsKaonZeroInelasticXS::Default_Name(), fCapture, fFission, G4PhysListUtil::FindInelasticProcess(), G4CrossSectionDataSetRegistry::GetCrossSectionDataSet(), G4ProcessManager::GetProcessList(), G4ParticleDefinition::GetProcessManager(), G4CrossSectionDataSetRegistry::Instance(), G4KaonMinus::KaonMinus(), G4KaonPlus::KaonPlus(), G4KaonZeroLong::KaonZeroLong(), G4KaonZeroShort::KaonZeroShort(), python.hepunit::MeV, G4Neutron::Neutron(), G4HadronicProcess::RegisterMe(), G4HadronicInteraction::SetMinEnergy(), and G4ProcessVector::size().

177 {
178  if (tpdata == 0 ) tpdata = new ThreadPrivate;
179  CreateModels();
180  tpdata->theNeutrons->Build();
181  tpdata->thePro->Build();
182  tpdata->thePiK->Build();
183 
184  // --- Kaons ---
188 
193 
194  tpdata->theHyperon->Build();
195  tpdata->theAntiBaryon->Build();
196 
197  // --- Neutrons ---
198  G4HadronicProcess* capture = 0;
199  G4HadronicProcess* fission = 0;
201  G4ProcessVector* pv = pmanager->GetProcessList();
202  for ( size_t i=0; i < static_cast<size_t>(pv->size()); ++i ) {
203  if ( fCapture == ((*pv)[i])->GetProcessSubType() ) {
204  capture = static_cast<G4HadronicProcess*>((*pv)[i]);
205  } else if ( fFission == ((*pv)[i])->GetProcessSubType() ) {
206  fission = static_cast<G4HadronicProcess*>((*pv)[i]);
207  }
208  }
209  if ( ! capture ) {
210  capture = new G4HadronCaptureProcess("nCapture");
211  pmanager->AddDiscreteProcess(capture);
212  }
213  tpdata->xsNeutronCaptureXS = new G4NeutronCaptureXS();
214  capture->AddDataSet(tpdata->xsNeutronCaptureXS);
215  capture->AddDataSet( new G4NeutronHPCaptureData );
216  G4NeutronRadCapture* theNeutronRadCapture = new G4NeutronRadCapture();
217  theNeutronRadCapture->SetMinEnergy( 19.9*MeV );
218  capture->RegisterMe( theNeutronRadCapture );
219  if ( ! fission ) {
220  fission = new G4HadronFissionProcess("nFission");
221  pmanager->AddDiscreteProcess(fission);
222  }
223  G4LFission* theNeutronLEPFission = new G4LFission();
224  theNeutronLEPFission->SetMinEnergy( 19.9*MeV );
225  fission->RegisterMe( theNeutronLEPFission );
226 }
G4VCrossSectionDataSet * GetCrossSectionDataSet(const G4String &name, G4bool warning=true)
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
static G4KaonZeroLong * KaonZeroLong()
G4ProcessManager * GetProcessManager() const
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 G4KaonPlus * KaonPlus()
Definition: G4KaonPlus.cc:113
G4ProcessVector * GetProcessList() const

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