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

#include <G4HadronPhysicsShielding.hh>

Inheritance diagram for G4HadronPhysicsShielding:
G4VPhysicsConstructor

Public Member Functions

 G4HadronPhysicsShielding (G4int verbose=1)
 
 G4HadronPhysicsShielding (const G4String &name, G4bool quasiElastic=false)
 
virtual ~G4HadronPhysicsShielding ()
 
virtual void ConstructParticle ()
 
virtual void ConstructProcess ()
 
void UseLEND (G4String ss="")
 
void UnuseLEND ()
 
- 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 G4HadronPhysicsShielding.hh.

Constructor & Destructor Documentation

G4HadronPhysicsShielding::G4HadronPhysicsShielding ( G4int  verbose = 1)

Definition at line 79 of file G4HadronPhysicsShielding.cc.

80  : G4VPhysicsConstructor("hInelastic Shielding")
81 /* , theNeutrons(0)
82  , theLENeutron(0)
83  , theBertiniNeutron(0)
84  , theFTFPNeutron(0)
85  , thePiK(0)
86  , theBertiniPiK(0)
87  , theFTFPPiK(0)
88  , thePro(0)
89  , theBertiniPro(0)
90  , theFTFPPro(0)
91  , theHyperon(0)
92  , theAntiBaryon(0)
93  , theFTFPAntiBaryon(0) */
94 // , QuasiElastic(false)
95  /* , theChipsKaonMinus(0)
96  , theChipsKaonPlus(0)
97  , theChipsKaonZero(0)
98  , theBGGxsNeutron(0)
99  , theNeutronHPJENDLHEInelastic(0)
100  , theBGGxsProton(0)
101  , xsNeutronCaptureXS(0)*/
102  , useLEND(false)
103  , evaluation()
104 {}
G4VPhysicsConstructor(const G4String &="")
G4HadronPhysicsShielding::G4HadronPhysicsShielding ( const G4String name,
G4bool  quasiElastic = false 
)

Definition at line 106 of file G4HadronPhysicsShielding.cc.

107  : G4VPhysicsConstructor(name)
108 /* , theNeutrons(0)
109  , theLENeutron(0)
110  , theBertiniNeutron(0)
111  , theFTFPNeutron(0)
112  , thePiK(0)
113  , theBertiniPiK(0)
114  , theFTFPPiK(0)
115  , thePro(0)
116  , theBertiniPro(0)
117  , theFTFPPro(0)
118  , theHyperon(0)
119  , theAntiBaryon(0)
120  , theFTFPAntiBaryon(0) */
121 // , QuasiElastic(quasiElastic)
122  /* , theChipsKaonMinus(0)
123  , theChipsKaonPlus(0)
124  , theChipsKaonZero(0)
125  , theBGGxsNeutron(0)
126  , theNeutronHPJENDLHEInelastic(0)
127  , theBGGxsProton(0)
128  , xsNeutronCaptureXS(0)*/
129  , useLEND(false)
130  , evaluation()
131 {}
G4VPhysicsConstructor(const G4String &="")
G4HadronPhysicsShielding::~G4HadronPhysicsShielding ( )
virtual

Definition at line 171 of file G4HadronPhysicsShielding.cc.

172 {
173  delete tpdata->theNeutrons;
174  delete tpdata->theBertiniNeutron;
175  delete tpdata->theFTFPNeutron;
176  //delete tpdata->theHPNeutron;
177  delete tpdata->theLENeutron;
178 
179  delete tpdata->thePiK;
180  delete tpdata->theBertiniPiK;
181  delete tpdata->theFTFPPiK;
182 
183  delete tpdata->thePro;
184  delete tpdata->theBertiniPro;
185  delete tpdata->theFTFPPro;
186 
187  delete tpdata->theHyperon;
188  delete tpdata->theAntiBaryon;
189  delete tpdata->theFTFPAntiBaryon;
190 
191  delete tpdata->theBGGxsNeutron;
192  delete tpdata->theNeutronHPJENDLHEInelastic;
193  delete tpdata->theBGGxsProton;
194 
195  delete tpdata->xsNeutronCaptureXS;
196 
197  delete tpdata; tpdata=0;
198 }

Member Function Documentation

void G4HadronPhysicsShielding::ConstructParticle ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 200 of file G4HadronPhysicsShielding.cc.

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

201 {
202  G4MesonConstructor pMesonConstructor;
203  pMesonConstructor.ConstructParticle();
204 
205  G4BaryonConstructor pBaryonConstructor;
206  pBaryonConstructor.ConstructParticle();
207 
208  G4ShortLivedConstructor pShortLivedConstructor;
209  pShortLivedConstructor.ConstructParticle();
210 
211  G4IonConstructor pIonConstructor;
212  pIonConstructor.ConstructParticle();
213 }
static void ConstructParticle()
static void ConstructParticle()
static void ConstructParticle()
void G4HadronPhysicsShielding::ConstructProcess ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 216 of file G4HadronPhysicsShielding.cc.

References G4HadronicProcess::AddDataSet(), G4ProcessManager::AddDiscreteProcess(), G4ChipsKaonMinusInelasticXS::Default_Name(), G4ChipsKaonPlusInelasticXS::Default_Name(), G4ChipsKaonZeroInelasticXS::Default_Name(), fCapture, fFission, G4PhysListUtil::FindInelasticProcess(), G4CrossSectionDataSetRegistry::GetCrossSectionDataSet(), G4ProcessManager::GetProcessList(), G4ParticleDefinition::GetProcessManager(), G4CrossSectionDataSetRegistry::Instance(), G4KaonMinus::KaonMinus(), G4KaonPlus::KaonPlus(), G4KaonZeroLong::KaonZeroLong(), G4KaonZeroShort::KaonZeroShort(), python.hepunit::MeV, G4Neutron::Neutron(), G4HadronicProcess::RegisterMe(), G4HadronicInteraction::SetMinEnergy(), and G4ProcessVector::size().

217 {
218  if ( tpdata == 0 ) tpdata = new ThreadPrivate;
219  CreateModels();
220 
221  //tpdata->theBGGxsNeutron=new G4BGGNucleonInelasticXS(G4Neutron::Neutron());
222  tpdata->thePro->Build();
223  tpdata->theNeutrons->Build();
224 
225  tpdata->theBGGxsNeutron = 0; //set explictly to zero or destructor may fail
226 // tpdata->theBGGxsNeutron=new G4NeutronHPBGGNucleonInelasticXS(G4Neutron::Neutron());
227 // FindInelasticProcess(G4Neutron::Neutron())->AddDataSet(tpdata->theBGGxsNeutron);
228 //
229 
231  tpdata->theNeutronHPJENDLHEInelastic=new G4NeutronHPJENDLHEInelasticData;
232  G4PhysListUtil::FindInelasticProcess(G4Neutron::Neutron())->AddDataSet(tpdata->theNeutronHPJENDLHEInelastic);
234 
235  tpdata->theBGGxsProton=0;
236 // tpdata->theBGGxsProton=new G4BGGNucleonInelasticXS(G4Proton::Proton());
237 // G4PhysListUtil::FindInelasticProcess(G4Proton::Proton())->AddDataSet(tpdata->theBGGxsProton);
238 
239  tpdata->thePiK->Build();
240  // use CHIPS cross sections also for Kaons
241 
245 
250 
251  tpdata->theHyperon->Build();
252  tpdata->theAntiBaryon->Build();
253 
254  // --- Neutrons ---
255  G4HadronicProcess* capture = 0;
256  G4HadronicProcess* fission = 0;
258  G4ProcessVector* pv = pmanager->GetProcessList();
259  for ( size_t i=0; i < static_cast<size_t>(pv->size()); ++i ) {
260  if ( fCapture == ((*pv)[i])->GetProcessSubType() ) {
261  capture = static_cast<G4HadronicProcess*>((*pv)[i]);
262  } else if ( fFission == ((*pv)[i])->GetProcessSubType() ) {
263  fission = static_cast<G4HadronicProcess*>((*pv)[i]);
264  }
265  }
266  if ( ! capture ) {
267  capture = new G4HadronCaptureProcess("nCapture");
268  pmanager->AddDiscreteProcess(capture);
269  }
270  tpdata->xsNeutronCaptureXS = new G4NeutronCaptureXS();
271  capture->AddDataSet(tpdata->xsNeutronCaptureXS);
272  capture->AddDataSet( new G4NeutronHPCaptureData );
273  G4NeutronRadCapture* theNeutronRadCapture = new G4NeutronRadCapture();
274  theNeutronRadCapture->SetMinEnergy( 19.9*MeV );
275  capture->RegisterMe( theNeutronRadCapture );
276  if ( ! fission ) {
277  fission = new G4HadronFissionProcess("nFission");
278  pmanager->AddDiscreteProcess(fission);
279  }
280  G4LFission* theNeutronLEPFission = new G4LFission();
281  theNeutronLEPFission->SetMinEnergy( 19.9*MeV );
282  fission->RegisterMe( theNeutronLEPFission );
283 }
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)
void SetMinEnergy(G4double anEnergy)
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
void G4HadronPhysicsShielding::UnuseLEND ( )
inline

Definition at line 77 of file G4HadronPhysicsShielding.hh.

77 {useLEND=false;};
void G4HadronPhysicsShielding::UseLEND ( G4String  ss = "")
inline

Definition at line 76 of file G4HadronPhysicsShielding.hh.

76 {useLEND=true;evaluation=ss;};

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