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

#include <G4HadronPhysicsINCLXX.hh>

Inheritance diagram for G4HadronPhysicsINCLXX:
G4VPhysicsConstructor

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)
 
- 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

Build hadronic physics using INCL++, high-energy models (QGSP or FTFP) and possibly NeutronHP.

See also
G4INCLXXProtonBuilder
G4INCLXXNeutronBuilder
G4INCLXXPiKBuilder
G4IonINCLXXBuilder

Definition at line 83 of file G4HadronPhysicsINCLXX.hh.

Constructor & Destructor Documentation

G4HadronPhysicsINCLXX::G4HadronPhysicsINCLXX ( G4int  verbose = 1)

Definition at line 74 of file G4HadronPhysicsINCLXX.cc.

75  : G4VPhysicsConstructor("hInelastic INCLXX")
76 /* , theNeutrons(0)
77  , theQGSPNeutron(0)
78  , theFTFPNeutron(0)
79  , theBertiniNeutron(0)
80  , theINCLXXNeutron(0)
81  , theNeutronHP(0)
82  , thePiK(0)
83  , theQGSPPiK(0)
84  , theFTFPPiK(0)
85  , theBertiniPiK(0)
86  , theINCLXXPiK(0)
87  , thePro(0)
88  , theQGSPPro(0)
89  , theFTFPPro(0)
90  , theBertiniPro(0)
91  , theINCLXXPro(0)
92  , theHyperon(0)
93  , theAntiBaryon(0)
94  , theFTFPAntiBaryon(0)
95  , xsNeutronCaptureXS(0)*/
96  , QuasiElastic(true)
97  , withNeutronHP(false)
98  , withFTFP(false)
99 {
100 }
G4VPhysicsConstructor(const G4String &="")
G4HadronPhysicsINCLXX::G4HadronPhysicsINCLXX ( const G4String name,
const G4bool  quasiElastic = true,
const G4bool  neutronHP = false,
const G4bool  ftfp = false 
)

Definition at line 102 of file G4HadronPhysicsINCLXX.cc.

103  : G4VPhysicsConstructor(name)
104 /* , theNeutrons(0)
105  , theQGSPNeutron(0)
106  , theFTFPNeutron(0)
107  , theBertiniNeutron(0)
108  , theINCLXXNeutron(0)
109  , theNeutronHP(0)
110  , thePiK(0)
111  , theQGSPPiK(0)
112  , theFTFPPiK(0)
113  , theBertiniPiK(0)
114  , theINCLXXPiK(0)
115  , thePro(0)
116  , theQGSPPro(0)
117  , theFTFPPro(0)
118  , theBertiniPro(0)
119  , theINCLXXPro(0)
120  , theHyperon(0)
121  , theAntiBaryon(0)
122  , theFTFPAntiBaryon(0)
123  , xsNeutronCaptureXS(0)*/
124  , QuasiElastic(quasiElastic)
125  , withNeutronHP(neutronHP)
126  , withFTFP(ftfp)
127 {
128 }
G4VPhysicsConstructor(const G4String &="")
G4HadronPhysicsINCLXX::~G4HadronPhysicsINCLXX ( )
virtual

Definition at line 199 of file G4HadronPhysicsINCLXX.cc.

200 {
201  if(tpdata) {
202  delete tpdata->theFTFPNeutron;
203  delete tpdata->theQGSPNeutron;
204  delete tpdata->theBertiniNeutron;
205  delete tpdata->theINCLXXNeutron;
206  delete tpdata->theNeutronHP;
207  delete tpdata->theFTFPPro;
208  delete tpdata->theQGSPPro;
209  delete tpdata->thePro;
210  delete tpdata->theBertiniPro;
211  delete tpdata->theINCLXXPro;
212  delete tpdata->theFTFPPiK;
213  delete tpdata->theQGSPPiK;
214  delete tpdata->theINCLXXPiK;
215  delete tpdata->theBertiniPiK;
216  delete tpdata->thePiK;
217  delete tpdata->theHyperon;
218  delete tpdata->theAntiBaryon;
219  delete tpdata->theFTFPAntiBaryon;
220  delete tpdata->xsNeutronCaptureXS;
221 
222  delete tpdata; tpdata = 0;
223  }
224 }

Member Function Documentation

void G4HadronPhysicsINCLXX::ConstructParticle ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 226 of file G4HadronPhysicsINCLXX.cc.

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

227 {
228  G4MesonConstructor pMesonConstructor;
229  pMesonConstructor.ConstructParticle();
230 
231  G4BaryonConstructor pBaryonConstructor;
232  pBaryonConstructor.ConstructParticle();
233 
234  G4ShortLivedConstructor pShortLivedConstructor;
235  pShortLivedConstructor.ConstructParticle();
236 
237  G4IonConstructor pIonConstructor;
238  pIonConstructor.ConstructParticle();
239 }
static void ConstructParticle()
static void ConstructParticle()
static void ConstructParticle()
void G4HadronPhysicsINCLXX::ConstructProcess ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 242 of file G4HadronPhysicsINCLXX.cc.

References G4HadronicProcess::AddDataSet(), G4ProcessManager::AddDiscreteProcess(), fCapture, fFission, G4ProcessManager::GetProcessList(), G4ParticleDefinition::GetProcessManager(), python.hepunit::MeV, G4Neutron::Neutron(), G4HadronicProcess::RegisterMe(), G4HadronicInteraction::SetMinEnergy(), and G4ProcessVector::size().

243 {
244  if ( tpdata == 0 ) tpdata = new ThreadPrivate;
245  CreateModels();
246  tpdata->theNeutrons->Build();
247  tpdata->thePro->Build();
248  tpdata->thePiK->Build();
249  tpdata->theHyperon->Build();
250  tpdata->theAntiBaryon->Build();
251 
252  // --- Neutrons ---
253  G4HadronicProcess* capture = 0;
254  G4HadronicProcess* fission = 0;
256  G4ProcessVector* pv = pmanager->GetProcessList();
257  for ( size_t i=0; i < static_cast<size_t>(pv->size()); ++i ) {
258  if ( fCapture == ((*pv)[i])->GetProcessSubType() ) {
259  capture = static_cast<G4HadronicProcess*>((*pv)[i]);
260  } else if ( fFission == ((*pv)[i])->GetProcessSubType() ) {
261  fission = static_cast<G4HadronicProcess*>((*pv)[i]);
262  }
263  }
264  if ( ! capture ) {
265  capture = new G4HadronCaptureProcess("nCapture");
266  pmanager->AddDiscreteProcess(capture);
267  }
268  tpdata->xsNeutronCaptureXS = new G4NeutronCaptureXS();
269  capture->AddDataSet(tpdata->xsNeutronCaptureXS);
270  G4NeutronRadCapture* theNeutronRadCapture = new G4NeutronRadCapture();
271  capture->RegisterMe( theNeutronRadCapture );
272  if ( withNeutronHP ) {
273  capture->AddDataSet( new G4NeutronHPCaptureData );
274  theNeutronRadCapture->SetMinEnergy( 19.9*MeV );
275  if ( ! fission ) {
276  fission = new G4HadronFissionProcess("nFission");
277  pmanager->AddDiscreteProcess(fission);
278  }
279  G4LFission* theNeutronLEPFission = new G4LFission();
280  theNeutronLEPFission->SetMinEnergy( 19.9*MeV );
281  fission->RegisterMe( theNeutronLEPFission );
282  }
283 }
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
G4ProcessManager * GetProcessManager() const
void RegisterMe(G4HadronicInteraction *a)
void SetMinEnergy(G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104
G4int size() const
G4ProcessVector * GetProcessList() const
void G4HadronPhysicsINCLXX::SetQuasiElastic ( G4bool  value)
inline

Definition at line 94 of file G4HadronPhysicsINCLXX.hh.

94 {QuasiElastic = value;};
const XML_Char int const XML_Char * value

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