Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4HadronPhysicsQGSP_BERT Class Reference

#include <G4HadronPhysicsQGSP_BERT.hh>

Inheritance diagram for G4HadronPhysicsQGSP_BERT:
Collaboration diagram for G4HadronPhysicsQGSP_BERT:

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)
 
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 74 of file G4HadronPhysicsQGSP_BERT.hh.

Constructor & Destructor Documentation

G4HadronPhysicsQGSP_BERT::G4HadronPhysicsQGSP_BERT ( G4int  verbose = 1)

Definition at line 79 of file G4HadronPhysicsQGSP_BERT.cc.

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

Definition at line 103 of file G4HadronPhysicsQGSP_BERT.cc.

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

Definition at line 173 of file G4HadronPhysicsQGSP_BERT.cc.

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

Member Function Documentation

void G4HadronPhysicsQGSP_BERT::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 196 of file G4HadronPhysicsQGSP_BERT.cc.

197 {
198  G4MesonConstructor pMesonConstructor;
199  pMesonConstructor.ConstructParticle();
200 
201  G4BaryonConstructor pBaryonConstructor;
202  pBaryonConstructor.ConstructParticle();
203 
204  G4ShortLivedConstructor pShortLivedConstructor;
205  pShortLivedConstructor.ConstructParticle();
206 
207  G4IonConstructor pIonConstructor;
208  pIonConstructor.ConstructParticle();
209 }
static void ConstructParticle()
static void ConstructParticle()
static void ConstructParticle()

Here is the call graph for this function:

void G4HadronPhysicsQGSP_BERT::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 212 of file G4HadronPhysicsQGSP_BERT.cc.

213 {
214  if ( tpdata == 0 ) tpdata = new ThreadPrivate;
215  CreateModels();
216  tpdata->theNeutrons->Build();
217  tpdata->thePro->Build();
218  tpdata->thePiK->Build();
219 
220  // --- Kaons ---
221  tpdata->xsKaon = new G4ComponentGGHadronNucleusXsc();
222  G4VCrossSectionDataSet * kaonxs = new G4CrossSectionInelastic(tpdata->xsKaon);
227 
228  tpdata->theHyperon->Build();
229  tpdata->theAntiBaryon->Build();
230 
231  // --- Neutrons ---
233  G4PhysListUtil::FindInelasticProcess(G4Neutron::Neutron())->AddDataSet(tpdata->xsNeutronInelasticXS);
234 
235  G4HadronicProcess* capture = 0;
237  G4ProcessVector* pv = pmanager->GetProcessList();
238  for ( size_t i=0; i < static_cast<size_t>(pv->size()); ++i ) {
239  if ( fCapture == ((*pv)[i])->GetProcessSubType() ) {
240  capture = static_cast<G4HadronicProcess*>((*pv)[i]);
241  }
242  }
243  if ( ! capture ) {
244  capture = new G4HadronCaptureProcess("nCapture");
245  pmanager->AddDiscreteProcess(capture);
246  }
248  capture->AddDataSet(tpdata->xsNeutronCaptureXS);
249  capture->RegisterMe(new G4NeutronRadCapture());
250 }
G4VCrossSectionDataSet * GetCrossSectionDataSet(const G4String &name, G4bool warning=true)
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
static G4KaonZeroLong * KaonZeroLong()
static const char * Default_Name()
static G4KaonMinus * KaonMinus()
Definition: G4KaonMinus.cc:113
void RegisterMe(G4HadronicInteraction *a)
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 G4KaonPlus * KaonPlus()
Definition: G4KaonPlus.cc:113
G4ProcessVector * GetProcessList() const

Here is the call graph for this function:

void G4HadronPhysicsQGSP_BERT::SetQuasiElastic ( G4bool  value)
inline

Definition at line 85 of file G4HadronPhysicsQGSP_BERT.hh.

85 {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: