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

#include <G4HadronPhysicsQGSP_FTFP_BERT.hh>

Inheritance diagram for G4HadronPhysicsQGSP_FTFP_BERT:
G4VPhysicsConstructor

Public Member Functions

 G4HadronPhysicsQGSP_FTFP_BERT (G4int verbose=1)
 
 G4HadronPhysicsQGSP_FTFP_BERT (const G4String &name, G4bool quasiElastic=true)
 
virtual ~G4HadronPhysicsQGSP_FTFP_BERT ()
 
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

Definition at line 66 of file G4HadronPhysicsQGSP_FTFP_BERT.hh.

Constructor & Destructor Documentation

G4HadronPhysicsQGSP_FTFP_BERT::G4HadronPhysicsQGSP_FTFP_BERT ( G4int  verbose = 1)

Definition at line 67 of file G4HadronPhysicsQGSP_FTFP_BERT.cc.

68  : G4VPhysicsConstructor("hInelastic QGSP_FTFP_BERT")
69 /* , theNeutrons(0)
70  , theFTFPNeutron(0)
71  , theQGSPNeutron(0)
72  , theBertiniNeutron(0)
73  , thePiK(0)
74  , theFTFPPiK(0)
75  , theQGSPPiK(0)
76  , theBertiniPiK(0)
77  , thePro(0)
78  , theFTFPPro(0)
79  , theQGSPPro(0)
80  , theBertiniPro(0)
81  , theHyperon(0)
82  , theAntiBaryon(0)
83  , theFTFPAntiBaryon(0)
84  , xsNeutronInelasticXS(0)
85  , xsNeutronCaptureXS(0)*/
86  , QuasiElastic(true)
87 {
88 }
G4VPhysicsConstructor(const G4String &="")
G4HadronPhysicsQGSP_FTFP_BERT::G4HadronPhysicsQGSP_FTFP_BERT ( const G4String name,
G4bool  quasiElastic = true 
)

Definition at line 90 of file G4HadronPhysicsQGSP_FTFP_BERT.cc.

92  : G4VPhysicsConstructor("hInelastic QGSP_FTFP_BERT")
93 /* , theNeutrons(0)
94  , theFTFPNeutron(0)
95  , theQGSPNeutron(0)
96  , theBertiniNeutron(0)
97  , thePiK(0)
98  , theFTFPPiK(0)
99  , theQGSPPiK(0)
100  , theBertiniPiK(0)
101  , thePro(0)
102  , theFTFPPro(0)
103  , theQGSPPro(0)
104  , theBertiniPro(0)
105  , theHyperon(0)
106  , theAntiBaryon(0)
107  , theFTFPAntiBaryon(0)
108  , xsNeutronInelasticXS(0)
109  , xsNeutronCaptureXS(0)*/
110  , QuasiElastic(quasiElastic)
111 {
112 }
G4VPhysicsConstructor(const G4String &="")
G4HadronPhysicsQGSP_FTFP_BERT::~G4HadronPhysicsQGSP_FTFP_BERT ( )
virtual

Definition at line 172 of file G4HadronPhysicsQGSP_FTFP_BERT.cc.

173 {
174  delete tpdata->theQGSPNeutron;
175  delete tpdata->theFTFPNeutron;
176  delete tpdata->theBertiniNeutron;
177  delete tpdata->theNeutrons;
178 
179  delete tpdata->theQGSPPro;
180  delete tpdata->theFTFPPro;
181  delete tpdata->thePro;
182  delete tpdata->theBertiniPro;
183 
184  delete tpdata->theQGSPPiK;
185  delete tpdata->theFTFPPiK;
186  delete tpdata->theBertiniPiK;
187  delete tpdata->thePiK;
188 
189  delete tpdata->theHyperon;
190  delete tpdata->theAntiBaryon;
191  delete tpdata->theFTFPAntiBaryon;
192 
193  delete tpdata->xsNeutronInelasticXS;
194  delete tpdata->xsNeutronCaptureXS;
195 
196  delete tpdata; tpdata = 0;
197 }

Member Function Documentation

void G4HadronPhysicsQGSP_FTFP_BERT::ConstructParticle ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 199 of file G4HadronPhysicsQGSP_FTFP_BERT.cc.

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

200 {
201  G4MesonConstructor pMesonConstructor;
202  pMesonConstructor.ConstructParticle();
203 
204  G4BaryonConstructor pBaryonConstructor;
205  pBaryonConstructor.ConstructParticle();
206 
207  G4ShortLivedConstructor pShortLivedConstructor;
208  pShortLivedConstructor.ConstructParticle();
209 
210  G4IonConstructor pIonConstructor;
211  pIonConstructor.ConstructParticle();
212 }
static void ConstructParticle()
static void ConstructParticle()
static void ConstructParticle()
void G4HadronPhysicsQGSP_FTFP_BERT::ConstructProcess ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 215 of file G4HadronPhysicsQGSP_FTFP_BERT.cc.

References G4HadronicProcess::AddDataSet(), G4ProcessManager::AddDiscreteProcess(), fCapture, G4PhysListUtil::FindInelasticProcess(), G4ProcessManager::GetProcessList(), G4ParticleDefinition::GetProcessManager(), G4Neutron::Neutron(), G4HadronicProcess::RegisterMe(), and G4ProcessVector::size().

216 {
217  if ( tpdata == 0 ) tpdata = new ThreadPrivate;
218  CreateModels();
219  tpdata->theNeutrons->Build();
220  tpdata->thePro->Build();
221  tpdata->thePiK->Build();
222  tpdata->theHyperon->Build();
223  tpdata->theAntiBaryon->Build();
224 
225  // --- Neutrons ---
226  tpdata->xsNeutronInelasticXS = new G4NeutronInelasticXS();
227  G4PhysListUtil::FindInelasticProcess(G4Neutron::Neutron())->AddDataSet(tpdata->xsNeutronInelasticXS);
228 
229  G4HadronicProcess* capture = 0;
231  G4ProcessVector* pv = pmanager->GetProcessList();
232  for ( size_t i=0; i < static_cast<size_t>(pv->size()); ++i ) {
233  if ( fCapture == ((*pv)[i])->GetProcessSubType() ) {
234  capture = static_cast<G4HadronicProcess*>((*pv)[i]);
235  }
236  }
237  if ( ! capture ) {
238  capture = new G4HadronCaptureProcess("nCapture");
239  pmanager->AddDiscreteProcess(capture);
240  }
241  tpdata->xsNeutronCaptureXS = new G4NeutronCaptureXS();
242  capture->AddDataSet(tpdata->xsNeutronCaptureXS);
243  capture->RegisterMe(new G4NeutronRadCapture());
244 }
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
G4ProcessManager * GetProcessManager() const
void RegisterMe(G4HadronicInteraction *a)
static G4HadronicProcess * FindInelasticProcess(const G4ParticleDefinition *)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104
G4int size() const
G4ProcessVector * GetProcessList() const
void G4HadronPhysicsQGSP_FTFP_BERT::SetQuasiElastic ( G4bool  value)
inline

Definition at line 77 of file G4HadronPhysicsQGSP_FTFP_BERT.hh.

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

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