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

#include <G4HadronPhysicsQGSP_FTFP_BERT.hh>

Inheritance diagram for G4HadronPhysicsQGSP_FTFP_BERT:
Collaboration diagram for G4HadronPhysicsQGSP_FTFP_BERT:

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)
 
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 69 of file G4HadronPhysicsQGSP_FTFP_BERT.hh.

Constructor & Destructor Documentation

G4HadronPhysicsQGSP_FTFP_BERT::G4HadronPhysicsQGSP_FTFP_BERT ( G4int  verbose = 1)

Definition at line 71 of file G4HadronPhysicsQGSP_FTFP_BERT.cc.

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

Definition at line 95 of file G4HadronPhysicsQGSP_FTFP_BERT.cc.

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

Definition at line 178 of file G4HadronPhysicsQGSP_FTFP_BERT.cc.

179 {
180  if (!tpdata) return;
181 
182  delete tpdata->theQGSPNeutron;
183  delete tpdata->theFTFPNeutron;
184  delete tpdata->theBertiniNeutron;
185  delete tpdata->theNeutrons;
186 
187  delete tpdata->theQGSPPro;
188  delete tpdata->theFTFPPro;
189  delete tpdata->thePro;
190  delete tpdata->theBertiniPro;
191 
192  delete tpdata->theQGSPPiK;
193  delete tpdata->theFTFPPiK;
194  delete tpdata->theBertiniPiK;
195  delete tpdata->thePiK;
196 
197  delete tpdata->theHyperon;
198  delete tpdata->theAntiBaryon;
199  delete tpdata->theFTFPAntiBaryon;
200 
201  delete tpdata; tpdata = 0;
202 }

Member Function Documentation

void G4HadronPhysicsQGSP_FTFP_BERT::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 204 of file G4HadronPhysicsQGSP_FTFP_BERT.cc.

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

Here is the call graph for this function:

void G4HadronPhysicsQGSP_FTFP_BERT::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 220 of file G4HadronPhysicsQGSP_FTFP_BERT.cc.

221 {
222  if ( tpdata == 0 ) tpdata = new ThreadPrivate;
223  CreateModels();
224  tpdata->theNeutrons->Build();
225  tpdata->thePro->Build();
226  tpdata->thePiK->Build();
227 
228  // --- Kaons ---
229  tpdata->xsKaon = new G4ComponentGGHadronNucleusXsc();
230  G4VCrossSectionDataSet * kaonxs = new G4CrossSectionInelastic(tpdata->xsKaon);
235 
236  tpdata->theHyperon->Build();
237  tpdata->theAntiBaryon->Build();
238 
239  // --- Neutrons ---
241  G4PhysListUtil::FindInelasticProcess(G4Neutron::Neutron())->AddDataSet(tpdata->xsNeutronInelasticXS);
242 
243  G4HadronicProcess* capture = 0;
245  G4ProcessVector* pv = pmanager->GetProcessList();
246  for ( size_t i=0; i < static_cast<size_t>(pv->size()); ++i ) {
247  if ( fCapture == ((*pv)[i])->GetProcessSubType() ) {
248  capture = static_cast<G4HadronicProcess*>((*pv)[i]);
249  }
250  }
251  if ( ! capture ) {
252  capture = new G4HadronCaptureProcess("nCapture");
253  pmanager->AddDiscreteProcess(capture);
254  }
256  capture->AddDataSet(tpdata->xsNeutronCaptureXS);
257  capture->RegisterMe(new G4NeutronRadCapture());
258 }
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_FTFP_BERT::SetQuasiElastic ( G4bool  value)
inline

Definition at line 80 of file G4HadronPhysicsQGSP_FTFP_BERT.hh.

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