Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4HadronPhysicsINCLXX Class Reference

#include <G4HadronPhysicsINCLXX.hh>

Inheritance diagram for G4HadronPhysicsINCLXX:
Collaboration diagram for G4HadronPhysicsINCLXX:

Public Member Functions

 G4HadronPhysicsINCLXX (G4int verbose=1)
 
 G4HadronPhysicsINCLXX (const G4String &name, const G4bool quasiElastic=true, const G4bool neutronHP=false, const G4bool ftfp=false)
 
virtual ~G4HadronPhysicsINCLXX ()
 
virtual void ConstructParticle ()
 
virtual void ConstructProcess ()
 
void SetQuasiElastic (G4bool value)
 
- 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 89 of file G4HadronPhysicsINCLXX.hh.

Constructor & Destructor Documentation

G4HadronPhysicsINCLXX::G4HadronPhysicsINCLXX ( G4int  verbose = 1)

Definition at line 81 of file G4HadronPhysicsINCLXX.cc.

82  : G4VPhysicsConstructor("hInelastic INCLXX")
83  , QuasiElastic(true)
84  , withNeutronHP(false)
85  , withFTFP(false)
86 {
87 }
G4VPhysicsConstructor(const G4String &="")
G4HadronPhysicsINCLXX::G4HadronPhysicsINCLXX ( const G4String name,
const G4bool  quasiElastic = true,
const G4bool  neutronHP = false,
const G4bool  ftfp = false 
)

Definition at line 89 of file G4HadronPhysicsINCLXX.cc.

90  : G4VPhysicsConstructor(name)
91  , QuasiElastic(quasiElastic)
92  , withNeutronHP(neutronHP)
93  , withFTFP(ftfp)
94 {
95 }
G4VPhysicsConstructor(const G4String &="")
G4HadronPhysicsINCLXX::~G4HadronPhysicsINCLXX ( )
virtual

Definition at line 176 of file G4HadronPhysicsINCLXX.cc.

177 {
178  if(tpdata) {
179  delete tpdata->theFTFPNeutron;
180  delete tpdata->theQGSPNeutron;
181  delete tpdata->theINCLXXNeutron;
182  delete tpdata->theNeutronHP;
183  delete tpdata->theFTFPPro;
184  delete tpdata->theQGSPPro;
185  delete tpdata->thePro;
186  delete tpdata->theINCLXXPro;
187  delete tpdata->theFTFPPion;
188  delete tpdata->theQGSPPion;
189  delete tpdata->theFTFPKaon;
190  delete tpdata->theQGSPKaon;
191  delete tpdata->theINCLXXPion;
192  delete tpdata->thePion;
193  delete tpdata->theKaon;
194  delete tpdata->theHyperon;
195  delete tpdata->theAntiBaryon;
196  delete tpdata->theFTFPAntiBaryon;
197 
198  delete tpdata; tpdata = 0;
199  }
200 }

Member Function Documentation

void G4HadronPhysicsINCLXX::ConstructParticle ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 202 of file G4HadronPhysicsINCLXX.cc.

203 {
204  G4MesonConstructor pMesonConstructor;
205  pMesonConstructor.ConstructParticle();
206 
207  G4BaryonConstructor pBaryonConstructor;
208  pBaryonConstructor.ConstructParticle();
209 
210  G4ShortLivedConstructor pShortLivedConstructor;
211  pShortLivedConstructor.ConstructParticle();
212 
213  G4IonConstructor pIonConstructor;
214  pIonConstructor.ConstructParticle();
215 }
static void ConstructParticle()
static void ConstructParticle()
static void ConstructParticle()

Here is the call graph for this function:

void G4HadronPhysicsINCLXX::ConstructProcess ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 218 of file G4HadronPhysicsINCLXX.cc.

219 {
220  if ( tpdata == 0 ) tpdata = new ThreadPrivate;
221  CreateModels();
222  tpdata->theNeutrons->Build();
223  tpdata->thePro->Build();
224  tpdata->thePion->Build();
225  tpdata->theKaon->Build();
226 
227  // --- Kaons ---
228  tpdata->xsKaon = new G4ComponentGGHadronNucleusXsc();
229  G4VCrossSectionDataSet * kaonxs = new G4CrossSectionInelastic(tpdata->xsKaon);
234 
235  tpdata->theHyperon->Build();
236  tpdata->theAntiBaryon->Build();
237 
238  // --- Neutrons ---
239  G4HadronicProcess* capture = 0;
240  G4HadronicProcess* fission = 0;
242  G4ProcessVector* pv = pmanager->GetProcessList();
243  for ( size_t i=0; i < static_cast<size_t>(pv->size()); ++i ) {
244  if ( fCapture == ((*pv)[i])->GetProcessSubType() ) {
245  capture = static_cast<G4HadronicProcess*>((*pv)[i]);
246  } else if ( fFission == ((*pv)[i])->GetProcessSubType() ) {
247  fission = static_cast<G4HadronicProcess*>((*pv)[i]);
248  }
249  }
250  if ( ! capture ) {
251  capture = new G4HadronCaptureProcess("nCapture");
252  pmanager->AddDiscreteProcess(capture);
253  }
255  capture->AddDataSet(tpdata->xsNeutronCaptureXS);
256  G4NeutronRadCapture* theNeutronRadCapture = new G4NeutronRadCapture();
257  capture->RegisterMe( theNeutronRadCapture );
258  if ( withNeutronHP ) {
259  capture->AddDataSet( new G4ParticleHPCaptureData );
260  theNeutronRadCapture->SetMinEnergy( 19.9*MeV );
261  if ( ! fission ) {
262  fission = new G4HadronFissionProcess("nFission");
263  pmanager->AddDiscreteProcess(fission);
264  }
265  G4LFission* theNeutronLEPFission = new G4LFission();
266  theNeutronLEPFission->SetMinEnergy( 19.9*MeV );
267  fission->RegisterMe( theNeutronLEPFission );
268  }
269 }
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:

void G4HadronPhysicsINCLXX::SetQuasiElastic ( G4bool  value)
inline

Definition at line 100 of file G4HadronPhysicsINCLXX.hh.

100 {QuasiElastic = value;};
const XML_Char int const XML_Char * value
Definition: expat.h:331

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