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

#include <G4HadronPhysicsQGS_BIC.hh>

Inheritance diagram for G4HadronPhysicsQGS_BIC:
G4VPhysicsConstructor

Public Member Functions

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

Constructor & Destructor Documentation

G4HadronPhysicsQGS_BIC::G4HadronPhysicsQGS_BIC ( G4int  verbose = 1)

Definition at line 69 of file G4HadronPhysicsQGS_BIC.cc.

70  : G4VPhysicsConstructor("hInelastic QGS_BIC")
71 /* , theNeutrons(0)
72  , theFTFBinaryNeutron(0)
73  , theQGSBinaryNeutron(0)
74  , theBinaryNeutron(0)
75  , thePion(0)
76  , theBinaryPion(0)
77  , theBertiniPion(0)
78  , theFTFBinaryPion(0)
79  , theQGSBinaryPion(0)
80  , theKaon(0)
81  , theBertiniKaon(0)
82  , theFTFBinaryKaon(0)
83  , theQGSBinaryKaon(0)
84  , thePro(0)
85  , theFTFBinaryPro(0)
86  , theQGSBinaryPro(0)
87  , theBinaryPro(0)
88  , theHyperon(0)
89  , theAntiBaryon(0)
90  , theFTFPAntiBaryon(0)
91  , xsNeutronInelasticXS(0)
92  , xsNeutronCaptureXS(0)*/
93 // , QuasiElastic(true)
94 {}
G4VPhysicsConstructor(const G4String &="")
G4HadronPhysicsQGS_BIC::G4HadronPhysicsQGS_BIC ( const G4String name,
G4bool  quasiElastic = true 
)

Definition at line 96 of file G4HadronPhysicsQGS_BIC.cc.

97  : G4VPhysicsConstructor(name)
98 /* , theNeutrons(0)
99  , theFTFBinaryNeutron(0)
100  , theQGSBinaryNeutron(0)
101  , theBinaryNeutron(0)
102  , thePion(0)
103  , theBinaryPion(0)
104  , theBertiniPion(0)
105  , theFTFBinaryPion(0)
106  , theQGSBinaryPion(0)
107  , theKaon(0)
108  , theBertiniKaon(0)
109  , theFTFBinaryKaon(0)
110  , theQGSBinaryKaon(0)
111  , thePro(0)
112  , theFTFBinaryPro(0)
113  , theQGSBinaryPro(0)
114  , theBinaryPro(0)
115  , theHyperon(0)
116  , theAntiBaryon(0)
117  , theFTFPAntiBaryon(0)
118  , xsNeutronInelasticXS(0)
119  , xsNeutronCaptureXS(0)*/
120 // , QuasiElastic(quasiElastic)
121 {}
G4VPhysicsConstructor(const G4String &="")
G4HadronPhysicsQGS_BIC::~G4HadronPhysicsQGS_BIC ( )
virtual

Definition at line 177 of file G4HadronPhysicsQGS_BIC.cc.

178 {
179  delete tpdata->theBinaryNeutron;
180  delete tpdata->theQGSBinaryNeutron;
181  delete tpdata->theFTFBinaryNeutron;
182  delete tpdata->theNeutrons;
183  delete tpdata->theQGSBinaryPion;
184  delete tpdata->theFTFBinaryPion;
185  delete tpdata->theBertiniPion;
186  delete tpdata->theBinaryPion;
187  delete tpdata->thePion;
188  delete tpdata->theQGSBinaryKaon;
189  delete tpdata->theFTFBinaryKaon;
190  delete tpdata->theBertiniKaon;
191  delete tpdata->theKaon;
192  delete tpdata->theBinaryPro;
193  delete tpdata->theQGSBinaryPro;
194  delete tpdata->theFTFBinaryPro;
195  delete tpdata->thePro;
196  delete tpdata->theFTFPAntiBaryon;
197  delete tpdata->theAntiBaryon;
198  delete tpdata->theHyperon;
199  delete tpdata->xsNeutronInelasticXS;
200  delete tpdata->xsNeutronCaptureXS;
201 
202  delete tpdata; tpdata = 0;
203 }

Member Function Documentation

void G4HadronPhysicsQGS_BIC::ConstructParticle ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 205 of file G4HadronPhysicsQGS_BIC.cc.

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

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

Implements G4VPhysicsConstructor.

Definition at line 221 of file G4HadronPhysicsQGS_BIC.cc.

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

222 {
223  if ( tpdata == 0 ) tpdata = new ThreadPrivate;
224  CreateModels();
225  tpdata->theNeutrons->Build();
226  tpdata->thePro->Build();
227  tpdata->thePion->Build();
228  tpdata->theKaon->Build();
229  tpdata->theHyperon->Build();
230  tpdata->theAntiBaryon->Build();
231 
232  // --- Neutrons ---
233  tpdata->xsNeutronInelasticXS = new G4NeutronInelasticXS();
234  G4PhysListUtil::FindInelasticProcess(G4Neutron::Neutron())->AddDataSet(tpdata->xsNeutronInelasticXS);
235 
236  G4HadronicProcess* capture = 0;
238  G4ProcessVector* pv = pmanager->GetProcessList();
239  for ( size_t i=0; i < static_cast<size_t>(pv->size()); ++i ) {
240  if ( fCapture == ((*pv)[i])->GetProcessSubType() ) {
241  capture = static_cast<G4HadronicProcess*>((*pv)[i]);
242  }
243  }
244  if ( ! capture ) {
245  capture = new G4HadronCaptureProcess("nCapture");
246  pmanager->AddDiscreteProcess(capture);
247  }
248  tpdata->xsNeutronCaptureXS = new G4NeutronCaptureXS();
249  capture->AddDataSet(tpdata->xsNeutronCaptureXS);
250  capture->RegisterMe(new G4NeutronRadCapture());
251 }
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: