#include <G4VModularPhysicsList.hh>
|
| G4VModularPhysicsList () |
|
virtual | ~G4VModularPhysicsList () |
|
virtual void | ConstructParticle () |
|
virtual void | ConstructProcess () |
|
void | RegisterPhysics (G4VPhysicsConstructor *) |
|
const G4VPhysicsConstructor * | GetPhysics (G4int index) const |
|
const G4VPhysicsConstructor * | GetPhysics (const G4String &name) const |
|
const G4VPhysicsConstructor * | GetPhysicsWithType (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 |
|
| G4VUserPhysicsList () |
|
virtual | ~G4VUserPhysicsList () |
|
| G4VUserPhysicsList (const G4VUserPhysicsList &) |
|
G4VUserPhysicsList & | operator= (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 G4String & | GetPhysicsTableDirectory () 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 () |
|
Definition at line 60 of file G4VModularPhysicsList.hh.
◆ G4PhysConstVector
◆ G4VModularPhysicsList() [1/2]
G4VModularPhysicsList::G4VModularPhysicsList |
( |
| ) |
|
Definition at line 40 of file G4VModularPhysicsList.cc.
43{
45}
G4PhysConstVector * physicsVector
std::vector< G4VPhysicsConstructor * > G4PhysConstVector
◆ ~G4VModularPhysicsList()
G4VModularPhysicsList::~G4VModularPhysicsList |
( |
| ) |
|
|
virtual |
◆ G4VModularPhysicsList() [2/2]
◆ ConstructParticle()
void G4VModularPhysicsList::ConstructParticle |
( |
| ) |
|
|
virtual |
◆ ConstructProcess()
void G4VModularPhysicsList::ConstructProcess |
( |
| ) |
|
|
virtual |
◆ GetPhysics() [1/2]
Definition at line 327 of file G4VModularPhysicsList.cc.
328{
329 G4PhysConstVector::iterator itr;
331 if ( name == (*itr)->GetPhysicsName()) break;
332 }
334 else return 0;
335}
◆ GetPhysics() [2/2]
◆ GetPhysicsWithType()
Definition at line 337 of file G4VModularPhysicsList.cc.
338{
339 G4PhysConstVector::iterator itr;
341 if ( pType == (*itr)->GetPhysicsType()) break;
342 }
344 else return 0;
345}
◆ GetVerboseLevel()
G4int G4VModularPhysicsList::GetVerboseLevel |
( |
| ) |
const |
|
inline |
◆ operator=()
Definition at line 63 of file G4VModularPhysicsList.cc.
64{
65 if (this != &right) {
77
79 G4PhysConstVector::iterator itr;
81 delete (*itr);
82 }
85 }
87 }
88 return *this;
89}
G4bool fIsPhysicsTableBuilt
G4bool fDisableCheckParticleList
G4bool fIsRestoredCutValues
G4String directoryPhysicsTable
G4bool fRetrievePhysicsTable
G4bool isSetDefaultCutValue
G4bool fIsCheckedForRetrievePhysicsTable
◆ RegisterPhysics()
Definition at line 113 of file G4VModularPhysicsList.cc.
114{
118 G4Exception(
"G4VModularPhysicsList::RegisterPhysics",
120 "Geant4 kernel is not PreInit state : Method ignored.");
121 return;
122 }
123
126
127
128
129 if (pType == 0) {
131#ifdef G4VERBOSE
133 G4cout <<
"G4VModularPhysicsList::RegisterPhysics: "
134 << pName << "with type : " << pType
135 << " is added"
137 }
138#endif
139 return;
140 }
141
142
143 G4PhysConstVector::iterator itr;
145 if ( pType == (*itr)->GetPhysicsType()) break;
146 }
148#ifdef G4VERBOSE
150 G4cout <<
"G4VModularPhysicsList::RegisterPhysics: "
151 << "a physics with given type already exists "
153 G4cout <<
" Type = " << pType <<
" : "
154 << " existing physics is " << (*itr)->GetPhysicsName()
157 }
158#endif
159 G4String comment =
"Duplicate type for ";
160 comment += pName;
161 G4Exception(
"G4VModularPhysicsList::RegisterPhysics",
163 return;
164 }
165
166
168
169}
G4DLLIMPORT std::ostream G4cout
G4ApplicationState GetCurrentState() const
static G4StateManager * GetStateManager()
const G4String & GetPhysicsName() const
G4int GetPhysicsType() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Referenced by QBBC::QBBC().
◆ RemovePhysics() [1/3]
void G4VModularPhysicsList::RemovePhysics |
( |
const G4String & |
name | ) |
|
Definition at line 288 of file G4VModularPhysicsList.cc.
289{
293 G4Exception(
"G4VModularPhysicsList::RemovePhysics",
295 "Geant4 kernel is not PreInit state : Method ignored.");
296 return;
297 }
298
299 for (G4PhysConstVector::iterator itr =
physicsVector->begin();
301 G4String pName = (*itr)->GetPhysicsName();
302 if ( name == pName) {
303#ifdef G4VERBOSE
305 G4cout <<
"G4VModularPhysicsList::RemovePhysics: "
306 << pName << " is removed"
308 }
309#endif
311 break;
312 } else {
313 itr++;
314 }
315 }
316}
◆ RemovePhysics() [2/3]
void G4VModularPhysicsList::RemovePhysics |
( |
G4int |
type | ) |
|
Definition at line 229 of file G4VModularPhysicsList.cc.
230{
234 G4Exception(
"G4VModularPhysicsList::RemovePhysics",
236 "Geant4 kernel is not PreInit state : Method ignored.");
237 return;
238 }
239
240 for (G4PhysConstVector::iterator itr =
physicsVector->begin();
242 if ( pType == (*itr)->GetPhysicsType()) {
243 G4String pName = (*itr)->GetPhysicsName();
244#ifdef G4VERBOSE
246 G4cout <<
"G4VModularPhysicsList::RemovePhysics: "
247 << pName << " is removed"
249 }
250#endif
252 break;
253 } else {
254 itr++;
255 }
256 }
257}
◆ RemovePhysics() [3/3]
Definition at line 259 of file G4VModularPhysicsList.cc.
260{
264 G4Exception(
"G4VModularPhysicsList::RemovePhysics",
266 "Geant4 kernel is not PreInit state : Method ignored.");
267 return;
268 }
269
270 for (G4PhysConstVector::iterator itr =
physicsVector->begin();
272 if ( fPhysics == (*itr)) {
273 G4String pName = (*itr)->GetPhysicsName();
274#ifdef G4VERBOSE
276 G4cout <<
"G4VModularPhysicsList::RemovePhysics: "
277 << pName << " is removed"
279 }
280#endif
282 break;
283 } else {
284 itr++;
285 }
286 }
287}
◆ ReplacePhysics()
Definition at line 171 of file G4VModularPhysicsList.cc.
172{
176 G4Exception(
"G4VModularPhysicsList::ReplacePhysics",
178 "Geant4 kernel is not PreInit state : Method ignored.");
179 return;
180 }
181
184
185
186
187 if (pType == 0) {
188
190#ifdef G4VERBOSE
192 G4cout <<
"G4VModularPhysicsList::ReplacePhysics: "
193 << pName << "with type : " << pType
194 << " is added"
196 }
197#endif
198 return;
199 }
200
201
204 if ( pType == (*itr)->GetPhysicsType()) break;
205 }
207
209 } else {
210#ifdef G4VERBOSE
212 G4cout <<
"G4VModularPhysicsList::ReplacePhysics: "
213 << (*itr)->GetPhysicsName() << "with type : " << pType
214 << " is replaces with " << pName
216 }
217#endif
218
219
220 delete (*itr);
221
222 (*itr) = fPhysics;
223
224 }
225
226 return;
227}
Referenced by G4PhysListFactory::GetReferencePhysList().
◆ SetVerboseLevel()
void G4VModularPhysicsList::SetVerboseLevel |
( |
G4int |
value | ) |
|
◆ physicsVector
Definition at line 115 of file G4VModularPhysicsList.hh.
Referenced by ConstructParticle(), ConstructProcess(), G4VModularPhysicsList(), GetPhysics(), GetPhysicsWithType(), operator=(), RegisterPhysics(), RemovePhysics(), ReplacePhysics(), SetVerboseLevel(), and ~G4VModularPhysicsList().
◆ verboseLevel
G4int G4VModularPhysicsList::verboseLevel |
|
protected |
The documentation for this class was generated from the following files: