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

#include <G4HadronPhysicsFTFP_BERT.hh>

Inheritance diagram for G4HadronPhysicsFTFP_BERT:
G4VPhysicsConstructor

Public Member Functions

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

Constructor & Destructor Documentation

G4HadronPhysicsFTFP_BERT::G4HadronPhysicsFTFP_BERT ( G4int  verbose = 1)

Definition at line 72 of file G4HadronPhysicsFTFP_BERT.cc.

73  : G4VPhysicsConstructor("hInelastic FTFP_BERT")
74 /* , theNeutrons(0)
75  , theBertiniNeutron(0)
76  , theFTFPNeutron(0)
77  , thePiK(0)
78  , theBertiniPiK(0)
79  , theFTFPPiK(0)
80  , thePro(0)
81  , theBertiniPro(0)
82  , theFTFPPro(0)
83  , theHyperon(0)
84  , theAntiBaryon(0)
85  , theFTFPAntiBaryon(0) */
86  , QuasiElastic(false)
87  /* , ChipsKaonMinus(0)
88  , ChipsKaonPlus(0)
89  , ChipsKaonZero(0)
90  , xsNeutronInelasticXS(0)
91  , xsNeutronCaptureXS(0)*/
92 {}
G4VPhysicsConstructor(const G4String &="")
G4HadronPhysicsFTFP_BERT::G4HadronPhysicsFTFP_BERT ( const G4String name,
G4bool  quasiElastic = false 
)

Definition at line 94 of file G4HadronPhysicsFTFP_BERT.cc.

95  : G4VPhysicsConstructor(name)
96 /* , theNeutrons(0)
97  , theBertiniNeutron(0)
98  , theFTFPNeutron(0)
99  , thePiK(0)
100  , theBertiniPiK(0)
101  , theFTFPPiK(0)
102  , thePro(0)
103  , theBertiniPro(0)
104  , theFTFPPro(0)
105  , theHyperon(0)
106  , theAntiBaryon(0)
107  , theFTFPAntiBaryon(0)*/
108  , QuasiElastic(quasiElastic)
109  /* , ChipsKaonMinus(0)
110  , ChipsKaonPlus(0)
111  , ChipsKaonZero(0)
112  , xsNeutronInelasticXS(0)
113  , xsNeutronCaptureXS(0)*/
114 {}
G4VPhysicsConstructor(const G4String &="")
G4HadronPhysicsFTFP_BERT::~G4HadronPhysicsFTFP_BERT ( )
virtual

Definition at line 144 of file G4HadronPhysicsFTFP_BERT.cc.

145 {
146  delete tpdata->theNeutrons;
147  delete tpdata->theBertiniNeutron;
148  delete tpdata->theFTFPNeutron;
149 
150  delete tpdata->thePiK;
151  delete tpdata->theBertiniPiK;
152  delete tpdata->theFTFPPiK;
153 
154  delete tpdata->thePro;
155  delete tpdata->theBertiniPro;
156  delete tpdata->theFTFPPro;
157 
158  delete tpdata->theHyperon;
159  delete tpdata->theAntiBaryon;
160  delete tpdata->theFTFPAntiBaryon;
161 
162  delete tpdata->xsNeutronInelasticXS;
163  delete tpdata->xsNeutronCaptureXS;
164 
165  //Note that here we need to set to 0 the pointer
166  //since tpdata is static and if thread are "reused"
167  //it can be problematic
168  delete tpdata; tpdata = 0;
169 }

Member Function Documentation

void G4HadronPhysicsFTFP_BERT::ConstructParticle ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 171 of file G4HadronPhysicsFTFP_BERT.cc.

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

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

Implements G4VPhysicsConstructor.

Definition at line 184 of file G4HadronPhysicsFTFP_BERT.cc.

References G4HadronicProcess::AddDataSet(), G4ProcessManager::AddDiscreteProcess(), G4ChipsKaonMinusInelasticXS::Default_Name(), G4ChipsKaonPlusInelasticXS::Default_Name(), G4ChipsKaonZeroInelasticXS::Default_Name(), fCapture, G4PhysListUtil::FindInelasticProcess(), G4CrossSectionDataSetRegistry::GetCrossSectionDataSet(), G4ProcessManager::GetProcessList(), G4ParticleDefinition::GetProcessManager(), G4CrossSectionDataSetRegistry::Instance(), G4KaonMinus::KaonMinus(), G4KaonPlus::KaonPlus(), G4KaonZeroLong::KaonZeroLong(), G4KaonZeroShort::KaonZeroShort(), 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->thePiK->Build();
191 
192  // --- Kaons ---
196 
201 
202  tpdata->theHyperon->Build();
203  tpdata->theAntiBaryon->Build();
204 
205  // --- Neutrons ---
206  tpdata->xsNeutronInelasticXS = new G4NeutronInelasticXS();
207  G4PhysListUtil::FindInelasticProcess(G4Neutron::Neutron())->AddDataSet(tpdata->xsNeutronInelasticXS);
208 
209  G4HadronicProcess* capture = 0;
211  G4ProcessVector* pv = pmanager->GetProcessList();
212  for ( size_t i=0; i < static_cast<size_t>(pv->size()); ++i ) {
213  if ( fCapture == ((*pv)[i])->GetProcessSubType() ) {
214  capture = static_cast<G4HadronicProcess*>((*pv)[i]);
215  }
216  }
217  if ( ! capture ) {
218  capture = new G4HadronCaptureProcess("nCapture");
219  pmanager->AddDiscreteProcess(capture);
220  }
221  tpdata->xsNeutronCaptureXS = new G4NeutronCaptureXS();
222  capture->AddDataSet(tpdata->xsNeutronCaptureXS);
223  capture->RegisterMe(new G4NeutronRadCapture());
224 }
G4VCrossSectionDataSet * GetCrossSectionDataSet(const G4String &name, G4bool warning=true)
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
static G4KaonZeroLong * KaonZeroLong()
G4ProcessManager * GetProcessManager() const
static G4KaonMinus * KaonMinus()
Definition: G4KaonMinus.cc:113
void RegisterMe(G4HadronicInteraction *a)
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 G4KaonPlus * KaonPlus()
Definition: G4KaonPlus.cc:113
G4ProcessVector * GetProcessList() const

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