Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures | Public Member Functions
G4HadronPhysicsQGSP_BIC Class Reference

#include <G4HadronPhysicsQGSP_BIC.hh>

Inheritance diagram for G4HadronPhysicsQGSP_BIC:
G4VPhysicsConstructor

Public Member Functions

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

Constructor & Destructor Documentation

G4HadronPhysicsQGSP_BIC::G4HadronPhysicsQGSP_BIC ( G4int  verbose = 1)

Definition at line 73 of file G4HadronPhysicsQGSP_BIC.cc.

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

Definition at line 95 of file G4HadronPhysicsQGSP_BIC.cc.

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

Definition at line 158 of file G4HadronPhysicsQGSP_BIC.cc.

159 {
160  delete tpdata->theBinaryNeutron;
161  delete tpdata->theQGSPNeutron;
162  delete tpdata->theFTFPNeutron;
163  delete tpdata->theBertiniPiK;
164  delete tpdata->theQGSPPiK;
165  delete tpdata->theFTFPPiK;
166  delete tpdata->thePiK;
167  delete tpdata->theBinaryPro;
168  delete tpdata->theQGSPPro;
169  delete tpdata->theFTFPPro;
170  delete tpdata->thePro;
171  delete tpdata->theFTFPAntiBaryon;
172  delete tpdata->theAntiBaryon;
173  delete tpdata->theHyperon;
174  delete tpdata->xsNeutronInelasticXS;
175  delete tpdata->xsNeutronCaptureXS;
176 
177  delete tpdata; tpdata =0 ;
178 }

Member Function Documentation

void G4HadronPhysicsQGSP_BIC::ConstructParticle ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 180 of file G4HadronPhysicsQGSP_BIC.cc.

References G4MesonConstructor::ConstructParticle(), G4IonConstructor::ConstructParticle(), G4BaryonConstructor::ConstructParticle(), and G4ShortLivedConstructor::ConstructParticle().

181 {
182  G4MesonConstructor pMesonConstructor;
183  pMesonConstructor.ConstructParticle();
184 
185  G4BaryonConstructor pBaryonConstructor;
186  pBaryonConstructor.ConstructParticle();
187 
188  G4ShortLivedConstructor pShortLivedConstructor;
189  pShortLivedConstructor.ConstructParticle();
190 
191  G4IonConstructor pIonConstructor;
192  pIonConstructor.ConstructParticle();
193 }
static void ConstructParticle()
static void ConstructParticle()
static void ConstructParticle()
void G4HadronPhysicsQGSP_BIC::ConstructProcess ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 196 of file G4HadronPhysicsQGSP_BIC.cc.

References G4HadronicProcess::AddDataSet(), G4ProcessManager::AddDiscreteProcess(), fCapture, G4PhysListUtil::FindInelasticProcess(), G4ProcessManager::GetProcessList(), G4ParticleDefinition::GetProcessManager(), G4Neutron::Neutron(), G4HadronicProcess::RegisterMe(), and G4ProcessVector::size().

197 {
198  if ( tpdata == 0 ) tpdata = new ThreadPrivate;
199  CreateModels();
200  tpdata->theNeutrons->Build();
201  tpdata->thePro->Build();
202  tpdata->thePiK->Build();
203  tpdata->theHyperon->Build();
204  tpdata->theAntiBaryon->Build();
205 
206  // --- Neutrons ---
207  tpdata->xsNeutronInelasticXS = new G4NeutronInelasticXS();
208  G4PhysListUtil::FindInelasticProcess(G4Neutron::Neutron())->AddDataSet(tpdata->xsNeutronInelasticXS);
209 
210  G4HadronicProcess* capture = 0;
212  G4ProcessVector* pv = pmanager->GetProcessList();
213  for ( size_t i=0; i < static_cast<size_t>(pv->size()); ++i ) {
214  if ( fCapture == ((*pv)[i])->GetProcessSubType() ) {
215  capture = static_cast<G4HadronicProcess*>((*pv)[i]);
216  }
217  }
218  if ( ! capture ) {
219  capture = new G4HadronCaptureProcess("nCapture");
220  pmanager->AddDiscreteProcess(capture);
221  }
222  tpdata->xsNeutronCaptureXS = new G4NeutronCaptureXS();
223  capture->AddDataSet(tpdata->xsNeutronCaptureXS);
224  capture->RegisterMe(new G4NeutronRadCapture());
225 }
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
G4ProcessManager * GetProcessManager() const
void RegisterMe(G4HadronicInteraction *a)
static G4HadronicProcess * FindInelasticProcess(const G4ParticleDefinition *)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104
G4int size() const
G4ProcessVector * GetProcessList() const

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