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

#include <G4HadronPhysicsFTFP_BERT_TRV.hh>

Inheritance diagram for G4HadronPhysicsFTFP_BERT_TRV:
G4VPhysicsConstructor

Public Member Functions

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

Constructor & Destructor Documentation

G4HadronPhysicsFTFP_BERT_TRV::G4HadronPhysicsFTFP_BERT_TRV ( G4int  verbose = 1)

Definition at line 71 of file G4HadronPhysicsFTFP_BERT_TRV.cc.

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

Definition at line 93 of file G4HadronPhysicsFTFP_BERT_TRV.cc.

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

Definition at line 156 of file G4HadronPhysicsFTFP_BERT_TRV.cc.

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

Member Function Documentation

void G4HadronPhysicsFTFP_BERT_TRV::ConstructParticle ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 180 of file G4HadronPhysicsFTFP_BERT_TRV.cc.

References G4MesonConstructor::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 }
static void ConstructParticle()
static void ConstructParticle()
void G4HadronPhysicsFTFP_BERT_TRV::ConstructProcess ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 193 of file G4HadronPhysicsFTFP_BERT_TRV.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().

194 {
195  if ( tpdata == 0 ) tpdata = new ThreadPrivate;
196 
197  CreateModels();
198 
199  tpdata->theNeutrons->Build();
200  tpdata->thePro->Build();
201  tpdata->thePiK->Build();
202 
203  tpdata->theHyperon->Build();
204  tpdata->theAntiBaryon->Build();
205 
206  // --- Kaons ---
210 
215 
216  // --- Neutrons ---
217  tpdata->xsNeutronInelasticXS = new G4NeutronInelasticXS();
218  G4PhysListUtil::FindInelasticProcess(G4Neutron::Neutron())->AddDataSet(tpdata->xsNeutronInelasticXS);
219 
220  G4HadronicProcess* capture = 0;
222  G4ProcessVector* pv = pmanager->GetProcessList();
223  for ( size_t i=0; i < static_cast<size_t>(pv->size()); ++i ) {
224  if ( fCapture == ((*pv)[i])->GetProcessSubType() ) {
225  capture = static_cast<G4HadronicProcess*>((*pv)[i]);
226  }
227  }
228  if ( ! capture ) {
229  capture = new G4HadronCaptureProcess("nCapture");
230  pmanager->AddDiscreteProcess(capture);
231  }
232  tpdata->xsNeutronCaptureXS = new G4NeutronCaptureXS();
233  capture->AddDataSet(tpdata->xsNeutronCaptureXS);
234  capture->RegisterMe(new G4NeutronRadCapture());
235 }
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: