Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
Shielding Class Reference

#include <Shielding.hh>

+ Inheritance diagram for Shielding:

Public Member Functions

 Shielding (G4int verb=1, const G4String &n_model="HP", const G4String &HadrPhysVariant="")
 
virtual ~Shielding ()=default
 
 Shielding (const Shielding &)=delete
 
Shieldingoperator= (const Shielding &right)=delete
 
- Public Member Functions inherited from G4VModularPhysicsList
 G4VModularPhysicsList ()
 
virtual ~G4VModularPhysicsList ()
 
virtual void ConstructParticle () override
 
virtual void ConstructProcess () override
 
void RegisterPhysics (G4VPhysicsConstructor *)
 
const G4VPhysicsConstructorGetPhysics (G4int index) const
 
const G4VPhysicsConstructorGetPhysics (const G4String &name) const
 
const G4VPhysicsConstructorGetPhysicsWithType (G4int physics_type) const
 
void ReplacePhysics (G4VPhysicsConstructor *)
 
void RemovePhysics (G4VPhysicsConstructor *)
 
void RemovePhysics (G4int type)
 
void RemovePhysics (const G4String &name)
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel () const
 
G4int GetInstanceID () const
 
virtual void TerminateWorker () override
 
- Public Member Functions inherited from G4VUserPhysicsList
 G4VUserPhysicsList ()
 
virtual ~G4VUserPhysicsList ()
 
 G4VUserPhysicsList (const G4VUserPhysicsList &)
 
G4VUserPhysicsListoperator= (const G4VUserPhysicsList &)
 
virtual void ConstructParticle ()=0
 
void Construct ()
 
virtual void ConstructProcess ()=0
 
void UseCoupledTransportation (G4bool vl=true)
 
virtual void SetCuts ()
 
void SetDefaultCutValue (G4double newCutValue)
 
G4double GetDefaultCutValue () const
 
void BuildPhysicsTable ()
 
void PreparePhysicsTable (G4ParticleDefinition *)
 
void BuildPhysicsTable (G4ParticleDefinition *)
 
G4bool StorePhysicsTable (const G4String &directory=".")
 
G4bool IsPhysicsTableRetrieved () const
 
G4bool IsStoredInAscii () const
 
const G4StringGetPhysicsTableDirectory () const
 
void SetPhysicsTableRetrieved (const G4String &directory="")
 
void SetStoredInAscii ()
 
void ResetPhysicsTableRetrieved ()
 
void ResetStoredInAscii ()
 
void DumpList () const
 
void DumpCutValuesTable (G4int flag=1)
 
void DumpCutValuesTableIfRequested ()
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel () const
 
void SetCutsWithDefault ()
 
void SetCutValue (G4double aCut, const G4String &pname)
 
G4double GetCutValue (const G4String &pname) const
 
void SetCutValue (G4double aCut, const G4String &pname, const G4String &rname)
 
void SetParticleCuts (G4double cut, G4ParticleDefinition *particle, G4Region *region=0)
 
void SetParticleCuts (G4double cut, const G4String &particleName, G4Region *region=0)
 
void SetCutsForRegion (G4double aCut, const G4String &rname)
 
void ResetCuts ()
 obsolete methods
 
void SetApplyCuts (G4bool value, const G4String &name)
 
G4bool GetApplyCuts (const G4String &name) const
 
void RemoveProcessManager ()
 
void AddProcessManager (G4ParticleDefinition *newParticle, G4ProcessManager *newManager=0)
 
void CheckParticleList ()
 
void DisableCheckParticleList ()
 
G4int GetInstanceID () const
 
virtual void InitializeWorker ()
 
virtual void TerminateWorker ()
 

Additional Inherited Members

- Static Public Member Functions inherited from G4VModularPhysicsList
static const G4VMPLManagerGetSubInstanceManager ()
 
- Static Public Member Functions inherited from G4VUserPhysicsList
static const G4VUPLManagerGetSubInstanceManager ()
 
- Protected Types inherited from G4VModularPhysicsList
typedef G4VMPLData::G4PhysConstVectorData G4PhysConstVector
 
- Protected Member Functions inherited from G4VModularPhysicsList
 G4VModularPhysicsList (const G4VModularPhysicsList &)
 
G4VModularPhysicsListoperator= (const G4VModularPhysicsList &)
 
- Protected Member Functions inherited from G4VUserPhysicsList
void AddTransportation ()
 
G4bool RegisterProcess (G4VProcess *process, G4ParticleDefinition *particle)
 
void BuildIntegralPhysicsTable (G4VProcess *, G4ParticleDefinition *)
 
virtual void RetrievePhysicsTable (G4ParticleDefinition *, const G4String &directory, G4bool ascii=false)
 
void InitializeProcessManager ()
 
G4ParticleTable::G4PTblDicIteratorGetParticleIterator () const
 
- Protected Attributes inherited from G4VModularPhysicsList
G4int verboseLevel
 
G4int g4vmplInstanceID
 
- Protected Attributes inherited from G4VUserPhysicsList
G4ParticleTabletheParticleTable
 
G4int verboseLevel
 
G4double defaultCutValue
 
G4bool isSetDefaultCutValue
 
G4ProductionCutsTablefCutsTable
 
G4bool fRetrievePhysicsTable
 
G4bool fStoredInAscii
 
G4bool fIsCheckedForRetrievePhysicsTable
 
G4bool fIsRestoredCutValues
 
G4String directoryPhysicsTable
 
G4bool fDisableCheckParticleList
 
G4int g4vuplInstanceID
 
- Static Protected Attributes inherited from G4VModularPhysicsList
static G4RUN_DLL G4VMPLManager G4VMPLsubInstanceManager
 
- Static Protected Attributes inherited from G4VUserPhysicsList
static G4RUN_DLL G4VUPLManager subInstanceManager
 

Detailed Description

Definition at line 46 of file Shielding.hh.

Constructor & Destructor Documentation

◆ Shielding() [1/2]

Shielding::Shielding ( G4int  verb = 1,
const G4String n_model = "HP",
const G4String HadrPhysVariant = "" 
)
explicit

Definition at line 70 of file Shielding.cc.

72{
73 G4String LEN_model = n_model;
74 size_t find = LEN_model.find("LEND__");
75 G4String evaluation;
76 if ( find != G4String::npos )
77 {
78 evaluation=LEN_model;
79 evaluation.erase(0,find+6);
80 LEN_model="LEND";
81 }
82
83 G4cout << "<<< Geant4 Physics List simulation engine: Shielding"
84 << HadrPhysVariant << G4endl;
85 if ( LEN_model=="LEND" ) G4cout <<
86 "<<< LEND will be used for low energy neutron and gamma projectiles"
87 << G4endl;
88
89 defaultCutValue = 0.7*CLHEP::mm;
90 SetCutValue(0, "proton");
91 SetVerboseLevel(verbose);
92
93 // EM Physics
95
96 // Synchroton Radiation & GN Physics
97 G4EmExtraPhysics* emExtraPhysics = new G4EmExtraPhysics(verbose);
98 if ( LEN_model == "LEND" ) {
99 // Use LEND model for Gamma Nuclear
100 emExtraPhysics->LENDGammaNuclear(true);
101 }
102 RegisterPhysics( emExtraPhysics );
103
104 // Decays
105 RegisterPhysics( new G4DecayPhysics(verbose) );
107
108 // Hadron Elastic scattering
109 if ( LEN_model == "HP" )
110 {
112 }
113 else if ( LEN_model == "LEND" )
114 {
115 RegisterPhysics( new G4HadronElasticPhysicsLEND(verbose,evaluation));
116 }
117 else
118 {
119 G4cout << "Shielding Physics List: Warning!" <<G4endl;
120 G4cout << "\"" << LEN_model
121 << "\" is not valid for the low energy neutron model." <<G4endl;
122 G4cout << "Neutron HP package will be used." <<G4endl;
124 }
125
127 // Hadron Physics HP or LEND
128 if (HadrPhysVariant == "M") {
129 // The variant "M" has a special, dedicated energy transition region
130 // between the string model and cascade model, therefore the recommended
131 // values from G4HadronicParameters are intentionally not used.
132 hpc = new G4HadronPhysicsShielding("hInelastic Shielding", verbose,
133 9.5*CLHEP::GeV, 9.9*CLHEP::GeV);
134 } else {
135 hpc = new G4HadronPhysicsShielding("hInelastic Shielding", verbose,
136 G4HadronicParameters::Instance()->GetMinEnergyTransitionFTF_Cascade(),
137 G4HadronicParameters::Instance()->GetMaxEnergyTransitionFTF_Cascade());
138 }
139
140 if ( LEN_model == "LEND" ) {
141 delete hpc;
142 if (HadrPhysVariant == "M") {
143 // The variant "M" has a special, dedicated energy transition region
144 // between the string model and cascade model, therefore the recommended
145 // values from G4HadronicParameters are intentionally not used.
146 hpc = new G4HadronPhysicsShieldingLEND("hInelastic ShieldingLEND", verbose,
147 9.5*CLHEP::GeV, 9.9*CLHEP::GeV);
148 } else {
149 hpc = new G4HadronPhysicsShieldingLEND("hInelastic ShieldingLEND", verbose,
150 G4HadronicParameters::Instance()->GetMinEnergyTransitionFTF_Cascade(),
151 G4HadronicParameters::Instance()->GetMaxEnergyTransitionFTF_Cascade());
152 }
153 } else {
154 //G4cout << "Shielding Physics List: Warning." <<G4endl;
155 //G4cout << "Name of Low Energy Neutron model " << LEN_model
156 // << " is invalid." <<G4endl;
157 //G4cout << "Will use neutron HP package." <<G4endl;
158 }
159 RegisterPhysics( hpc );
160
161 if ( LEN_model == "HP" ) {
162 //Activate prodcuton of fission fragments in neutronHP
164 }
165
166 // Stopping Physics
167 RegisterPhysics( new G4StoppingPhysics(verbose) );
168
169 // Ion Physics
170 RegisterPhysics( new G4IonElasticPhysics(verbose) );
171 RegisterPhysics( new G4IonQMDPhysics(verbose) );
172}
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
void LENDGammaNuclear(G4bool val)
static G4HadronicParameters * Instance()
void SetProduceFissionFragments(G4bool val)
static G4ParticleHPManager * GetInstance()
void SetVerboseLevel(G4int value)
void RegisterPhysics(G4VPhysicsConstructor *)
void SetCutValue(G4double aCut, const G4String &pname)

◆ ~Shielding()

virtual Shielding::~Shielding ( )
virtualdefault

◆ Shielding() [2/2]

Shielding::Shielding ( const Shielding )
delete

Member Function Documentation

◆ operator=()

Shielding & Shielding::operator= ( const Shielding right)
delete

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