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

#include <G4HadronPhysicsQGSP_BIC_AllHP.hh>

Inheritance diagram for G4HadronPhysicsQGSP_BIC_AllHP:
Collaboration diagram for G4HadronPhysicsQGSP_BIC_AllHP:

Public Member Functions

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

Constructor & Destructor Documentation

G4HadronPhysicsQGSP_BIC_AllHP::G4HadronPhysicsQGSP_BIC_AllHP ( G4int  verbose = 1)

Definition at line 73 of file G4HadronPhysicsQGSP_BIC_AllHP.cc.

74  : G4VPhysicsConstructor("hInelastic QGSP_BIC_HP")
75 /* , theNeutrons(0)
76  , theFTFPNeutron(0)
77  , theQGSPNeutron(0)
78  , theBinaryNeutron(0)
79  , theHPNeutron(0)
80  , thePiKB(0)
81  , theFTFPPiK(0)
82  , theQGSPPiK(0)
83  , theBertiniPiK(0)
84  , thePro(0)
85  , theFTFPPro(0)
86  , theQGSPPro(0)
87  , theBinaryPro(0)
88  , theHyperon(0)
89  , theAntiBaryon(0)
90  , theFTFPAntiBaryon(0)
91  , xsKaon(0)
92  , xsNeutronCaptureXS(0)*/
93 // , QuasiElastic(true)
94 {}
G4VPhysicsConstructor(const G4String &="")
G4HadronPhysicsQGSP_BIC_AllHP::G4HadronPhysicsQGSP_BIC_AllHP ( const G4String name,
G4bool  quasiElastic = true 
)

Definition at line 96 of file G4HadronPhysicsQGSP_BIC_AllHP.cc.

97  : G4VPhysicsConstructor(name)
98 /* , theNeutrons(0)
99  , theFTFPNeutron(0)
100  , theQGSPNeutron(0)
101  , theBinaryNeutron(0)
102  , theHPNeutron(0)
103  , thePiKB(0)
104  , theFTFPPiK(0)
105  , theQGSPPiK(0)
106  , theBertiniPiK(0)
107  , thePro(0)
108  , theFTFPPro(0)
109  , theQGSPPro(0)
110  , theBinaryPro(0)
111  , theHyperon(0)
112  , theAntiBaryon(0)
113  , theFTFPAntiBaryon(0)
114  , xsKaon(0)
115  , xsNeutronCaptureXS(0)*/
116 // , QuasiElastic(quasiElastic)
117 {}
G4VPhysicsConstructor(const G4String &="")
G4HadronPhysicsQGSP_BIC_AllHP::~G4HadronPhysicsQGSP_BIC_AllHP ( )
virtual

Definition at line 171 of file G4HadronPhysicsQGSP_BIC_AllHP.cc.

172 {
173  if (!tpdata) return;
174 
175  //ParticleHP
176  delete tpdata->thePHPNeutron;
177  delete tpdata->thePHPProton;
178  delete tpdata->theBinaryNeutron;
179  delete tpdata->theQGSPNeutron;
180  delete tpdata->theFTFPNeutron;
181  delete tpdata->theBertiniPiK;
182  delete tpdata->theQGSPPiK;
183  delete tpdata->theFTFPPiK;
184  delete tpdata->thePiKB;
185  delete tpdata->theBinaryProton;
186  delete tpdata->theQGSPProton;
187  delete tpdata->theFTFPProton;
188  delete tpdata->theProtonB;
189  delete tpdata->theFTFPAntiBaryon;
190  delete tpdata->theAntiBaryon;
191  delete tpdata->theHyperon;
192  delete tpdata->xsNeutronCaptureXS;
193 
194  delete tpdata; tpdata = 0;
195 }

Member Function Documentation

void G4HadronPhysicsQGSP_BIC_AllHP::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 197 of file G4HadronPhysicsQGSP_BIC_AllHP.cc.

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

Here is the call graph for this function:

void G4HadronPhysicsQGSP_BIC_AllHP::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 210 of file G4HadronPhysicsQGSP_BIC_AllHP.cc.

211 {
212  if ( tpdata == 0 ) tpdata = new ThreadPrivate;
213  CreateModels();
214  tpdata->theNeutronB->Build();
215  tpdata->theProtonB->Build();
216  tpdata->thePiKB->Build();
217 
218  // --- Kaons ---
219  tpdata->xsKaon = new G4ComponentGGHadronNucleusXsc();
220  G4VCrossSectionDataSet * kaonxs = new G4CrossSectionInelastic(tpdata->xsKaon);
225 
226  tpdata->theHyperon->Build();
227  tpdata->theAntiBaryon->Build();
228 
229  // --- Neutrons ---
230  G4HadronicProcess* capture = 0;
231  G4HadronicProcess* fission = 0;
233  G4ProcessVector* pv = pmanager->GetProcessList();
234  for ( size_t i=0; i < static_cast<size_t>(pv->size()); ++i ) {
235  if ( fCapture == ((*pv)[i])->GetProcessSubType() ) {
236  capture = static_cast<G4HadronicProcess*>((*pv)[i]);
237  } else if ( fFission == ((*pv)[i])->GetProcessSubType() ) {
238  fission = static_cast<G4HadronicProcess*>((*pv)[i]);
239  }
240  }
241  if ( ! capture ) {
242  capture = new G4HadronCaptureProcess("nCapture");
243  pmanager->AddDiscreteProcess(capture);
244  }
245  tpdata->xsNeutronCaptureXS = new G4NeutronCaptureXS();
246  capture->AddDataSet(tpdata->xsNeutronCaptureXS);
247  capture->AddDataSet( new G4ParticleHPCaptureData );
248  G4NeutronRadCapture* theNeutronRadCapture = new G4NeutronRadCapture();
249  theNeutronRadCapture->SetMinEnergy( 19.9*MeV );
250  capture->RegisterMe( theNeutronRadCapture );
251  if ( ! fission ) {
252  fission = new G4HadronFissionProcess("nFission");
253  pmanager->AddDiscreteProcess(fission);
254  }
255  G4LFission* theNeutronLEPFission = new G4LFission();
256  theNeutronLEPFission->SetMinEnergy( 19.9*MeV );
257  fission->RegisterMe( theNeutronLEPFission );
258 }
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 G4Neutron * Neutron()
Definition: G4Neutron.cc:104
G4int size() const
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: