50 : thePhysicsList(pParticleList)
78 new G4UIcommand(
"/run/setCutForAGivenParticle",
this);
80 "Set a cut value to a specific particle ");
82 "Usage: /run/setCutForAGivenParticle gamma 1. mm");
99 "Get a cut value to a specific particle ");
101 "Usage: /run/getCutForAGivenParticle gamma ");
163 "Switch on/off ascii mode in store/retrieve Physics Table");
174 " Some EM processes which do not have infrared divergence");
176 "may generate gamma, e- and/or e+ with kinetic energies");
178 "below the production threshold. By setting this flag,");
180 "such secondaries below threshold are eliminated and");
182 "kinetic energies of such secondaries are accumulated");
185 " Note that 'applyCuts' makes sense only for gamma,");
187 "e- and e+. If this command is issued for other particle,");
189 "a warning message is displayed and the command is");
192 " If particle name is 'all', this command affects on");
206 "Dump a list of production threshold values in range and energy");
209 "Dumping a list takes place when you issue 'beamOn' and");
211 "actual conversion tables from range to energy are available.");
213 "If you want a list 'immediately', use '/run/dumpRegion' for threshold");
215 "list given in range only. Also, '/run/dumpCouples' gives you the");
217 "current list if you have already issued 'run/beamOn' at least once.");
267 std::istringstream str(newValue);
268 str >> particleName >> cut >> unit;
277 std::istringstream is(newValue);
281 is >> regName >> cVal >> uniName;
284 ed <<
"illegal arguments : " << newValue;
309 if(particle ==
nullptr)
311 ed <<
" Particle is not found : " << newValue;
317 ed <<
" Particle is not initialized : " << newValue;
327 if(particle ==
nullptr)
329 ed <<
" Particle is not found : " << newValue;
342 if((newValue ==
"OFF") || (newValue ==
"off"))
368 G4bool flag = (temp ==
"true" || temp ==
"TRUE");
std::ostringstream G4ExceptionDescription
static constexpr double mm
G4GLOB_DLL std::ostream G4cout
G4ProcessManager * GetProcessManager() const
const G4String & GetParticleName() const
G4PTblDicIterator * GetIterator() const
static G4ParticleTable * GetParticleTable()
static G4PhysicsListHelper * GetPhysicsListHelper()
void DumpOrdingParameterTable(G4int subType=-1) const
void SetDefaultValue(G4double defVal)
void SetDefaultUnit(const char *defUnit)
static G4double GetNewDoubleValue(const char *paramString)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetCandidates(const char *candidateList)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetDefaultValue(const char *defVal)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
static G4int GetNewIntValue(const char *paramString)
void SetDefaultValue(G4int defVal)
void SetToBeBroadcasted(G4bool val)
static G4String CategoryOf(const char *unitName)
static G4double ValueOf(const char *unitName)
static G4String ConvertToString(G4bool boolVal)
void SetParameter(G4UIparameter *const newParameter)
void SetGuidance(const char *aGuidance)
void CommandFailed(G4int errCode, G4ExceptionDescription &ed)
static G4String UnitsList(const char *unitCategory)
void SetRange(const char *rs)
void AvailableForStates(G4ApplicationState s1)
void SetDefaultValue(const char *theDefaultValue)
void SetParameterRange(const char *theRange)
void SetParameterCandidates(const char *theString)
void SetDefaultUnit(const char *theDefaultUnit)
G4UIcmdWithAString * dumpCutValuesCmd
G4UIcmdWithAString * buildPTCmd
G4UIcmdWithAnInteger * dumpOrdParamCmd
G4UIcmdWithAString * getCutForAGivenParticleCmd
G4UIcommand * setCutForAGivenParticleCmd
G4UIcmdWithAString * retrieveCmd
virtual G4String GetCurrentValue(G4UIcommand *command)
G4UIdirectory * theDirectory
G4UIcmdWithoutParameter * dumpListCmd
G4UIcmdWithAString * addProcManCmd
G4UserPhysicsListMessenger()
virtual void SetNewValue(G4UIcommand *command, G4String newValues)
G4VUserPhysicsList * thePhysicsList
G4UIcmdWithAnInteger * verboseCmd
G4UIcmdWithAString * storeCmd
G4UIcmdWithAnInteger * asciiCmd
G4UIcmdWithADoubleAndUnit * setCutCmd
virtual ~G4UserPhysicsListMessenger()
G4UIcommand * applyCutsCmd
G4double GetCutValue(const G4String &pname) const
void SetDefaultCutValue(G4double newCutValue)
void SetPhysicsTableRetrieved(const G4String &directory="")
void PreparePhysicsTable(G4ParticleDefinition *)
void SetCutValue(G4double aCut, const G4String &pname)
G4bool IsStoredInAscii() const
void ResetStoredInAscii()
void SetCutsForRegion(G4double aCut, const G4String &rname)
void AddProcessManager(G4ParticleDefinition *newParticle, G4ProcessManager *newManager=nullptr)
G4bool StorePhysicsTable(const G4String &directory=".")
void SetVerboseLevel(G4int value)
G4int GetVerboseLevel() const
void SetApplyCuts(G4bool value, const G4String &name)
const G4String & GetPhysicsTableDirectory() const
G4bool IsPhysicsTableRetrieved() const
void DumpCutValuesTable(G4int flag=1)
void ResetPhysicsTableRetrieved()
G4double GetDefaultCutValue() const
const char * name(G4int ptype)