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

#include <G4HadronPhysicsQGSP_BIC_HP.hh>

Inheritance diagram for G4HadronPhysicsQGSP_BIC_HP:
Collaboration diagram for G4HadronPhysicsQGSP_BIC_HP:

Public Member Functions

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

Constructor & Destructor Documentation

G4HadronPhysicsQGSP_BIC_HP::G4HadronPhysicsQGSP_BIC_HP ( G4int  verbose = 1)

Definition at line 78 of file G4HadronPhysicsQGSP_BIC_HP.cc.

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

Definition at line 101 of file G4HadronPhysicsQGSP_BIC_HP.cc.

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

Definition at line 168 of file G4HadronPhysicsQGSP_BIC_HP.cc.

169 {
170  if (!tpdata) return;
171 
172  delete tpdata->theHPNeutron;
173  delete tpdata->theBinaryNeutron;
174  delete tpdata->theQGSPNeutron;
175  delete tpdata->theFTFPNeutron;
176  delete tpdata->theBertiniPiK;
177  delete tpdata->theQGSPPiK;
178  delete tpdata->theFTFPPiK;
179  delete tpdata->thePiK;
180  delete tpdata->theBinaryPro;
181  delete tpdata->theQGSPPro;
182  delete tpdata->theFTFPPro;
183  delete tpdata->thePro;
184  delete tpdata->theFTFPAntiBaryon;
185  delete tpdata->theAntiBaryon;
186  delete tpdata->theHyperon;
187 
188  delete tpdata; tpdata = 0;
189 }

Member Function Documentation

void G4HadronPhysicsQGSP_BIC_HP::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 191 of file G4HadronPhysicsQGSP_BIC_HP.cc.

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()

Here is the call graph for this function:

void G4HadronPhysicsQGSP_BIC_HP::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 207 of file G4HadronPhysicsQGSP_BIC_HP.cc.

208 {
209  if ( tpdata == 0 ) tpdata = new ThreadPrivate;
210  CreateModels();
211  tpdata->theNeutrons->Build();
212  tpdata->thePro->Build();
213  tpdata->thePiK->Build();
214 
215  // --- Kaons ---
216  tpdata->xsKaon = new G4ComponentGGHadronNucleusXsc();
217  G4VCrossSectionDataSet * kaonxs = new G4CrossSectionInelastic(tpdata->xsKaon);
222 
223  tpdata->theHyperon->Build();
224  tpdata->theAntiBaryon->Build();
225 
226  // --- Neutrons ---
227  G4HadronicProcess* capture = 0;
228  G4HadronicProcess* fission = 0;
230  G4ProcessVector* pv = pmanager->GetProcessList();
231  for ( size_t i=0; i < static_cast<size_t>(pv->size()); ++i ) {
232  if ( fCapture == ((*pv)[i])->GetProcessSubType() ) {
233  capture = static_cast<G4HadronicProcess*>((*pv)[i]);
234  } else if ( fFission == ((*pv)[i])->GetProcessSubType() ) {
235  fission = static_cast<G4HadronicProcess*>((*pv)[i]);
236  }
237  }
238  if ( ! capture ) {
239  capture = new G4HadronCaptureProcess("nCapture");
240  pmanager->AddDiscreteProcess(capture);
241  }
243  capture->AddDataSet(tpdata->xsNeutronCaptureXS);
244  capture->AddDataSet( new G4ParticleHPCaptureData );
245  G4NeutronRadCapture* theNeutronRadCapture = new G4NeutronRadCapture();
246  theNeutronRadCapture->SetMinEnergy( 19.9*MeV );
247  capture->RegisterMe( theNeutronRadCapture );
248  if ( ! fission ) {
249  fission = new G4HadronFissionProcess("nFission");
250  pmanager->AddDiscreteProcess(fission);
251  }
252  G4LFission* theNeutronLEPFission = new G4LFission();
253  theNeutronLEPFission->SetMinEnergy( 19.9*MeV );
254  fission->RegisterMe( theNeutronLEPFission );
255 }
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: