Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4HadronPhysicsFTFP_BERT_TRV Class Reference

#include <G4HadronPhysicsFTFP_BERT_TRV.hh>

Inheritance diagram for G4HadronPhysicsFTFP_BERT_TRV:
Collaboration diagram for G4HadronPhysicsFTFP_BERT_TRV:

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)
 
G4ParticleTable::G4PTblDicIteratorGetParticleIterator () const
 
- 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 70 of file G4HadronPhysicsFTFP_BERT_TRV.hh.

Constructor & Destructor Documentation

G4HadronPhysicsFTFP_BERT_TRV::G4HadronPhysicsFTFP_BERT_TRV ( G4int  verbose = 1)

Definition at line 72 of file G4HadronPhysicsFTFP_BERT_TRV.cc.

73  : G4VPhysicsConstructor("hInelastic FTFP_BERT_TRV")
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  /*, xsKaon(0)
88  , xsNeutronInelasticXS(0)
89  , xsNeutronCaptureXS(0)*/
90 {}
G4VPhysicsConstructor(const G4String &="")
G4HadronPhysicsFTFP_BERT_TRV::G4HadronPhysicsFTFP_BERT_TRV ( const G4String name,
G4bool  quasiElastic = false 
)

Definition at line 92 of file G4HadronPhysicsFTFP_BERT_TRV.cc.

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

Definition at line 153 of file G4HadronPhysicsFTFP_BERT_TRV.cc.

154 {
155  if (!tpdata) return;
156 
157  delete tpdata->theNeutrons;
158  delete tpdata->theBertiniNeutron;
159  delete tpdata->theFTFPNeutron;
160 
161  delete tpdata->thePiK;
162  delete tpdata->theBertiniPiK;
163  delete tpdata->theFTFPPiK;
164 
165  delete tpdata->thePro;
166  delete tpdata->theBertiniPro;
167  delete tpdata->theFTFPPro;
168 
169  delete tpdata->theHyperon;
170  delete tpdata->theAntiBaryon;
171  delete tpdata->theFTFPAntiBaryon;
172 
173  delete tpdata; tpdata = 0;
174 }

Member Function Documentation

void G4HadronPhysicsFTFP_BERT_TRV::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 176 of file G4HadronPhysicsFTFP_BERT_TRV.cc.

177 {
178  G4MesonConstructor pMesonConstructor;
179  pMesonConstructor.ConstructParticle();
180 
181  G4BaryonConstructor pBaryonConstructor;
182  pBaryonConstructor.ConstructParticle();
183 
184  G4ShortLivedConstructor pShortLivedConstructor;
185  pShortLivedConstructor.ConstructParticle();
186 }
static void ConstructParticle()
static void ConstructParticle()

Here is the call graph for this function:

void G4HadronPhysicsFTFP_BERT_TRV::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 189 of file G4HadronPhysicsFTFP_BERT_TRV.cc.

190 {
191  if ( tpdata == 0 ) tpdata = new ThreadPrivate;
192 
193  CreateModels();
194 
195  tpdata->theNeutrons->Build();
196  tpdata->thePro->Build();
197  tpdata->thePiK->Build();
198 
199  tpdata->theHyperon->Build();
200  tpdata->theAntiBaryon->Build();
201 
202  // --- Kaons ---
203  tpdata->xsKaon = new G4ComponentGGHadronNucleusXsc();
204  G4VCrossSectionDataSet * kaonxs = new G4CrossSectionInelastic(tpdata->xsKaon);
209 
210  // --- Neutrons ---
212  G4PhysListUtil::FindInelasticProcess(G4Neutron::Neutron())->AddDataSet(tpdata->xsNeutronInelasticXS);
213 
214  G4HadronicProcess* capture = 0;
216  G4ProcessVector* pv = pmanager->GetProcessList();
217  for ( size_t i=0; i < static_cast<size_t>(pv->size()); ++i ) {
218  if ( fCapture == ((*pv)[i])->GetProcessSubType() ) {
219  capture = static_cast<G4HadronicProcess*>((*pv)[i]);
220  }
221  }
222  if ( ! capture ) {
223  capture = new G4HadronCaptureProcess("nCapture");
224  pmanager->AddDiscreteProcess(capture);
225  }
227  capture->AddDataSet(tpdata->xsNeutronCaptureXS);
228  capture->RegisterMe(new G4NeutronRadCapture());
229 }
G4VCrossSectionDataSet * GetCrossSectionDataSet(const G4String &name, G4bool warning=true)
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
static G4KaonZeroLong * KaonZeroLong()
static const char * Default_Name()
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 const char * Default_Name()
G4ProcessManager * GetProcessManager() const
static G4KaonPlus * KaonPlus()
Definition: G4KaonPlus.cc:113
G4ProcessVector * GetProcessList() const

Here is the call graph for this function:


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