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

#include <G4HadronPhysicsFTF_BIC.hh>

Inheritance diagram for G4HadronPhysicsFTF_BIC:
G4VPhysicsConstructor

Public Member Functions

 G4HadronPhysicsFTF_BIC (G4int verbose=1)
 
 G4HadronPhysicsFTF_BIC (const G4String &name, G4bool quasiElastic=false)
 
virtual ~G4HadronPhysicsFTF_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 65 of file G4HadronPhysicsFTF_BIC.hh.

Constructor & Destructor Documentation

G4HadronPhysicsFTF_BIC::G4HadronPhysicsFTF_BIC ( G4int  verbose = 1)

Definition at line 67 of file G4HadronPhysicsFTF_BIC.cc.

68  : G4VPhysicsConstructor("hInelastic FTF_BIC")
69 /* , theNeutrons(0)
70  , theFTFBinaryNeutron(0)
71  , theBinaryNeutron(0)
72  , thePion(0)
73  , theKaon(0)
74  , theBICPion(0)
75  , theBertiniKaon(0)
76  , theFTFBinaryPion(0)
77  , theFTFBinaryKaon(0)
78  , thePro(0)
79  , theFTFBinaryPro(0)
80  , theBinaryPro(0)
81  , theHyperon(0)
82  , theAntiBaryon(0)
83  , theFTFPAntiBaryon(0)
84  , xsNeutronInelasticXS(0)
85  , xsNeutronCaptureXS(0)*/
86  , QuasiElastic(false)
87 {}
G4VPhysicsConstructor(const G4String &="")
G4HadronPhysicsFTF_BIC::G4HadronPhysicsFTF_BIC ( const G4String name,
G4bool  quasiElastic = false 
)

Definition at line 89 of file G4HadronPhysicsFTF_BIC.cc.

90  : G4VPhysicsConstructor(name)
91 /* , theNeutrons(0)
92  , theFTFBinaryNeutron(0)
93  , theBinaryNeutron(0)
94  , thePion(0)
95  , theKaon(0)
96  , theBICPion(0)
97  , theBertiniKaon(0)
98  , theFTFBinaryPion(0)
99  , theFTFBinaryKaon(0)
100  , thePro(0)
101  , theFTFBinaryPro(0)
102  , theBinaryPro(0)
103  , theHyperon(0)
104  , theAntiBaryon(0)
105  , theFTFPAntiBaryon(0)
106  , xsNeutronInelasticXS(0)
107  , xsNeutronCaptureXS(0)*/
108  , QuasiElastic(quasiElastic)
109 {}
G4VPhysicsConstructor(const G4String &="")
G4HadronPhysicsFTF_BIC::~G4HadronPhysicsFTF_BIC ( )
virtual

Definition at line 142 of file G4HadronPhysicsFTF_BIC.cc.

143 {
144  delete tpdata->theFTFBinaryNeutron;
145  delete tpdata->theBinaryNeutron;
146  delete tpdata->theNeutrons;
147 
148  delete tpdata->theFTFBinaryPro;
149  delete tpdata->theBinaryPro;
150  delete tpdata->thePro;
151 
152  delete tpdata->theFTFBinaryPion;
153  delete tpdata->theBICPion;
154  delete tpdata->thePion;
155 
156  delete tpdata->theFTFBinaryKaon;
157  delete tpdata->theBertiniKaon;
158  delete tpdata->theKaon;
159 
160  delete tpdata->theHyperon;
161  delete tpdata->theAntiBaryon;
162  delete tpdata->theFTFPAntiBaryon;
163 
164  delete tpdata->xsNeutronInelasticXS;
165  delete tpdata->xsNeutronCaptureXS;
166 
167  delete tpdata; tpdata = 0;
168 }

Member Function Documentation

void G4HadronPhysicsFTF_BIC::ConstructParticle ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 170 of file G4HadronPhysicsFTF_BIC.cc.

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

171 {
172  G4MesonConstructor pMesonConstructor;
173  pMesonConstructor.ConstructParticle();
174 
175  G4BaryonConstructor pBaryonConstructor;
176  pBaryonConstructor.ConstructParticle();
177 
178  G4ShortLivedConstructor pShortLivedConstructor;
179  pShortLivedConstructor.ConstructParticle();
180 }
static void ConstructParticle()
static void ConstructParticle()
void G4HadronPhysicsFTF_BIC::ConstructProcess ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 184 of file G4HadronPhysicsFTF_BIC.cc.

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

185 {
186  if ( tpdata == 0 ) tpdata = new ThreadPrivate;
187  CreateModels();
188  tpdata->theNeutrons->Build();
189  tpdata->thePro->Build();
190  tpdata->thePion->Build();
191  tpdata->theKaon->Build();
192 
193  tpdata->theHyperon->Build();
194  tpdata->theAntiBaryon->Build();
195 
196  // --- Neutrons ---
197  tpdata->xsNeutronInelasticXS = new G4NeutronInelasticXS();
198  G4PhysListUtil::FindInelasticProcess(G4Neutron::Neutron())->AddDataSet(tpdata->xsNeutronInelasticXS);
199 
200  G4HadronicProcess* capture = 0;
202  G4ProcessVector* pv = pmanager->GetProcessList();
203  for ( size_t i=0; i < static_cast<size_t>(pv->size()); ++i ) {
204  if ( fCapture == ((*pv)[i])->GetProcessSubType() ) {
205  capture = static_cast<G4HadronicProcess*>((*pv)[i]);
206  }
207  }
208  if ( ! capture ) {
209  capture = new G4HadronCaptureProcess("nCapture");
210  pmanager->AddDiscreteProcess(capture);
211  }
212  tpdata->xsNeutronCaptureXS = new G4NeutronCaptureXS();
213  capture->AddDataSet(tpdata->xsNeutronCaptureXS);
214  capture->RegisterMe(new G4NeutronRadCapture());
215 }
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: