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

#include <G4HadronPhysicsQGSP_BERT_HP.hh>

Inheritance diagram for G4HadronPhysicsQGSP_BERT_HP:
Collaboration diagram for G4HadronPhysicsQGSP_BERT_HP:

Public Member Functions

 G4HadronPhysicsQGSP_BERT_HP (G4int verbose=1)
 
 G4HadronPhysicsQGSP_BERT_HP (const G4String &name, G4bool quasiElastic=true)
 
virtual ~G4HadronPhysicsQGSP_BERT_HP ()
 
virtual void ConstructParticle ()
 
virtual void ConstructProcess ()
 
- 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 73 of file G4HadronPhysicsQGSP_BERT_HP.hh.

Constructor & Destructor Documentation

G4HadronPhysicsQGSP_BERT_HP::G4HadronPhysicsQGSP_BERT_HP ( G4int  verbose = 1)

Definition at line 80 of file G4HadronPhysicsQGSP_BERT_HP.cc.

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

Definition at line 103 of file G4HadronPhysicsQGSP_BERT_HP.cc.

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

Definition at line 174 of file G4HadronPhysicsQGSP_BERT_HP.cc.

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

Member Function Documentation

void G4HadronPhysicsQGSP_BERT_HP::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 198 of file G4HadronPhysicsQGSP_BERT_HP.cc.

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

Here is the call graph for this function:

void G4HadronPhysicsQGSP_BERT_HP::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 214 of file G4HadronPhysicsQGSP_BERT_HP.cc.

215 {
216  if ( tpdata == 0 ) tpdata = new ThreadPrivate;
217  CreateModels();
218  tpdata->theNeutrons->Build();
219  tpdata->thePro->Build();
220  tpdata->thePiK->Build();
221 
222  // --- Kaons ---
223  tpdata->xsKaon = new G4ComponentGGHadronNucleusXsc();
224  G4VCrossSectionDataSet * kaonxs = new G4CrossSectionInelastic(tpdata->xsKaon);
229 
230  tpdata->theHyperon->Build();
231  tpdata->theAntiBaryon->Build();
232 
233  // --- Neutrons ---
234  G4HadronicProcess* capture = 0;
235  G4HadronicProcess* fission = 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  } else if ( fFission == ((*pv)[i])->GetProcessSubType() ) {
242  fission = static_cast<G4HadronicProcess*>((*pv)[i]);
243  }
244  }
245  if ( ! capture ) {
246  capture = new G4HadronCaptureProcess("nCapture");
247  pmanager->AddDiscreteProcess(capture);
248  }
250  capture->AddDataSet(tpdata->xsNeutronCaptureXS);
251  capture->AddDataSet( new G4ParticleHPCaptureData );
252  G4NeutronRadCapture* theNeutronRadCapture = new G4NeutronRadCapture();
253  theNeutronRadCapture->SetMinEnergy( 19.9*MeV );
254  capture->RegisterMe( theNeutronRadCapture );
255  if ( ! fission ) {
256  fission = new G4HadronFissionProcess("nFission");
257  pmanager->AddDiscreteProcess(fission);
258  }
259  G4LFission* theNeutronLEPFission = new G4LFission();
260  theNeutronLEPFission->SetMinEnergy( 19.9*MeV );
261  fission->RegisterMe( theNeutronLEPFission );
262 }
G4VCrossSectionDataSet * GetCrossSectionDataSet(const G4String &name, G4bool warning=true)
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
static G4KaonZeroLong * KaonZeroLong()
static G4KaonMinus * KaonMinus()
Definition: G4KaonMinus.cc:113
void RegisterMe(G4HadronicInteraction *a)
void SetMinEnergy(G4double anEnergy)
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 constexpr double MeV
Definition: G4SIunits.hh:214
static G4KaonPlus * KaonPlus()
Definition: G4KaonPlus.cc:113
G4ProcessVector * GetProcessList() const

Here is the call graph for this function:


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