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

#include <G4HadronPhysicsNuBeam.hh>

Inheritance diagram for G4HadronPhysicsNuBeam:
Collaboration diagram for G4HadronPhysicsNuBeam:

Public Member Functions

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

Constructor & Destructor Documentation

G4HadronPhysicsNuBeam::G4HadronPhysicsNuBeam ( G4int  verbose = 1)

Definition at line 72 of file G4HadronPhysicsNuBeam.cc.

73  : G4VPhysicsConstructor("hInelasticNuBeam")
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  , theQGSPPro(0)
84  , theHyperon(0)
85  , theAntiBaryon(0)
86  , theFTFPAntiBaryon(0) */
87  , QuasiElastic(false)
88 /* , xsKaon(0)
89  , xsNeutronInelasticXS(0)
90  , xsNeutronCaptureXS(0) */
91 {}
G4VPhysicsConstructor(const G4String &="")
G4HadronPhysicsNuBeam::G4HadronPhysicsNuBeam ( const G4String name,
G4bool  quasiElastic = false 
)

Definition at line 93 of file G4HadronPhysicsNuBeam.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  , theQGSPPro(0)
105  , theHyperon(0)
106  , theAntiBaryon(0)
107  , theFTFPAntiBaryon(0) */
108  , QuasiElastic(quasiElastic)
109 /* , xsKaon(0)
110  , xsNeutronInelasticXS(0)
111  , xsNeutronCaptureXS(0) */
112 {}
G4VPhysicsConstructor(const G4String &="")
G4HadronPhysicsNuBeam::~G4HadronPhysicsNuBeam ( )
virtual

Definition at line 174 of file G4HadronPhysicsNuBeam.cc.

175 {
176  if (!tpdata) return;
177 
178  delete tpdata->theNeutrons;
179  delete tpdata->theBertiniNeutron;
180  delete tpdata->theFTFPNeutron;
181 
182  delete tpdata->thePiK;
183  delete tpdata->theBertiniPiK;
184  delete tpdata->theFTFPPiK;
185 
186  delete tpdata->thePro;
187  delete tpdata->theBertiniPro;
188  delete tpdata->theFTFPPro;
189  delete tpdata->theQGSPPro;
190 
191  delete tpdata->theHyperon;
192  delete tpdata->theAntiBaryon;
193  delete tpdata->theFTFPAntiBaryon;
194 
195 }

Member Function Documentation

void G4HadronPhysicsNuBeam::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 197 of file G4HadronPhysicsNuBeam.cc.

198 {
199 
200  G4MesonConstructor pMesonConstructor;
201  pMesonConstructor.ConstructParticle();
202 
203  G4BaryonConstructor pBaryonConstructor;
204  pBaryonConstructor.ConstructParticle();
205 
206  G4ShortLivedConstructor pShortLivedConstructor;
207  pShortLivedConstructor.ConstructParticle();
208 
209  return;
210 
211 }
static void ConstructParticle()
static void ConstructParticle()

Here is the call graph for this function:

void G4HadronPhysicsNuBeam::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 214 of file G4HadronPhysicsNuBeam.cc.

215 {
216 
217  if ( tpdata == 0 ) tpdata = new ThreadPrivate;
218 
219  CreateModels();
220 
221  tpdata->theNeutrons->Build();
222  tpdata->thePro->Build();
223  tpdata->thePiK->Build();
224 
225  // --- Kaons ---
226  tpdata->xsKaon = new G4ComponentGGHadronNucleusXsc();
227  G4VCrossSectionDataSet * kaonxs = new G4CrossSectionInelastic(tpdata->xsKaon);
232 
233  tpdata->theHyperon->Build();
234  tpdata->theAntiBaryon->Build();
235 
236  // --- Neutrons ---
237  //
239  G4PhysListUtil::FindInelasticProcess(G4Neutron::Neutron())->AddDataSet(tpdata->xsNeutronInelasticXS);
240 
241  G4HadronicProcess* capture = 0;
243  G4ProcessVector* pv = pmanager->GetProcessList();
244  for ( size_t i=0; i < static_cast<size_t>(pv->size()); ++i )
245  {
246  if ( fCapture == ((*pv)[i])->GetProcessSubType() )
247  {
248  capture = static_cast<G4HadronicProcess*>((*pv)[i]);
249  }
250  }
251  if ( ! capture ) {
252  capture = new G4HadronCaptureProcess("nCapture");
253  pmanager->AddDiscreteProcess(capture);
254  }
256  capture->AddDataSet(tpdata->xsNeutronCaptureXS);
257  capture->RegisterMe(new G4NeutronRadCapture());
258 
259  return;
260 
261 }
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: