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

#include <G4HadronPhysicsQGSP_BERT.hh>

Inheritance diagram for G4HadronPhysicsQGSP_BERT:
G4VPhysicsConstructor

Public Member Functions

 G4HadronPhysicsQGSP_BERT (G4int verbose=1)
 
 G4HadronPhysicsQGSP_BERT (const G4String &name, G4bool quasiElastic=true)
 
virtual ~G4HadronPhysicsQGSP_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 72 of file G4HadronPhysicsQGSP_BERT.hh.

Constructor & Destructor Documentation

G4HadronPhysicsQGSP_BERT::G4HadronPhysicsQGSP_BERT ( G4int  verbose = 1)

Definition at line 76 of file G4HadronPhysicsQGSP_BERT.cc.

77  : G4VPhysicsConstructor("hInelastic QGSP_BERT")
78 /* , theNeutrons(0)
79  , theFTFPNeutron(0)
80  , theQGSPNeutron(0)
81  , theBertiniNeutron(0)
82  , thePiK(0)
83  , theFTFPPiK(0)
84  , theQGSPPiK(0)
85  , theBertiniPiK(0)
86  , thePro(0)
87  , theFTFPPro(0)
88  , theQGSPPro(0)
89  , theBertiniPro(0)
90  , theHyperon(0)
91  , theAntiBaryon(0)
92  , theFTFPAntiBaryon(0)
93  , xsNeutronInelasticXS(0)
94  , xsNeutronCaptureXS(0)*/
95  , QuasiElastic(true)
96 {
97 }
G4VPhysicsConstructor(const G4String &="")
G4HadronPhysicsQGSP_BERT::G4HadronPhysicsQGSP_BERT ( const G4String name,
G4bool  quasiElastic = true 
)

Definition at line 99 of file G4HadronPhysicsQGSP_BERT.cc.

100  : G4VPhysicsConstructor(name)
101 /* , theNeutrons(0)
102  , theFTFPNeutron(0)
103  , theQGSPNeutron(0)
104  , theBertiniNeutron(0)
105  , thePiK(0)
106  , theFTFPPiK(0)
107  , theQGSPPiK(0)
108  , theBertiniPiK(0)
109  , thePro(0)
110  , theFTFPPro(0)
111  , theQGSPPro(0)
112  , theBertiniPro(0)
113  , theHyperon(0)
114  , theAntiBaryon(0)
115  , theFTFPAntiBaryon(0)
116  , xsNeutronInelasticXS(0)
117  , xsNeutronCaptureXS(0)*/
118  , QuasiElastic(quasiElastic)
119 {
120 }
G4VPhysicsConstructor(const G4String &="")
G4HadronPhysicsQGSP_BERT::~G4HadronPhysicsQGSP_BERT ( )
virtual

Definition at line 168 of file G4HadronPhysicsQGSP_BERT.cc.

169 {
170  delete tpdata->theBertiniNeutron;
171  delete tpdata->theQGSPNeutron;
172  delete tpdata->theFTFPNeutron;
173  delete tpdata->theNeutrons;
174  delete tpdata->theBertiniPiK;
175  delete tpdata->theQGSPPiK;
176  delete tpdata->theFTFPPiK;
177  delete tpdata->thePiK;
178  delete tpdata->theBertiniPro;
179  delete tpdata->theQGSPPro;
180  delete tpdata->theFTFPPro;
181  delete tpdata->thePro;
182  delete tpdata->theFTFPAntiBaryon;
183  delete tpdata->theAntiBaryon;
184  delete tpdata->theHyperon;
185  delete tpdata->xsNeutronInelasticXS;
186  delete tpdata->xsNeutronCaptureXS;
187 
188  delete tpdata; tpdata = 0;
189 }

Member Function Documentation

void G4HadronPhysicsQGSP_BERT::ConstructParticle ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 191 of file G4HadronPhysicsQGSP_BERT.cc.

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

192 {
193  G4MesonConstructor pMesonConstructor;
194  pMesonConstructor.ConstructParticle();
195 
196  G4BaryonConstructor pBaryonConstructor;
197  pBaryonConstructor.ConstructParticle();
198 
199  G4ShortLivedConstructor pShortLivedConstructor;
200  pShortLivedConstructor.ConstructParticle();
201 
202  G4IonConstructor pIonConstructor;
203  pIonConstructor.ConstructParticle();
204 }
static void ConstructParticle()
static void ConstructParticle()
static void ConstructParticle()
void G4HadronPhysicsQGSP_BERT::ConstructProcess ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 207 of file G4HadronPhysicsQGSP_BERT.cc.

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

208 {
209  if ( tpdata == 0 ) tpdata = new ThreadPrivate;
210  CreateModels();
211  tpdata->theNeutrons->Build();
212  tpdata->thePro->Build();
213  tpdata->thePiK->Build();
214  tpdata->theHyperon->Build();
215  tpdata->theAntiBaryon->Build();
216 
217  // --- Neutrons ---
218  tpdata->xsNeutronInelasticXS = new G4NeutronInelasticXS();
219  G4PhysListUtil::FindInelasticProcess(G4Neutron::Neutron())->AddDataSet(tpdata->xsNeutronInelasticXS);
220 
221  G4HadronicProcess* capture = 0;
223  G4ProcessVector* pv = pmanager->GetProcessList();
224  for ( size_t i=0; i < static_cast<size_t>(pv->size()); ++i ) {
225  if ( fCapture == ((*pv)[i])->GetProcessSubType() ) {
226  capture = static_cast<G4HadronicProcess*>((*pv)[i]);
227  }
228  }
229  if ( ! capture ) {
230  capture = new G4HadronCaptureProcess("nCapture");
231  pmanager->AddDiscreteProcess(capture);
232  }
233  tpdata->xsNeutronCaptureXS = new G4NeutronCaptureXS();
234  capture->AddDataSet(tpdata->xsNeutronCaptureXS);
235  capture->RegisterMe(new G4NeutronRadCapture());
236 }
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_BERT::SetQuasiElastic ( G4bool  value)
inline

Definition at line 83 of file G4HadronPhysicsQGSP_BERT.hh.

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

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