Geant4  10.02.p03
ExExChPhysicsListMessenger Class Reference

#include <ExExChPhysicsListMessenger.hh>

Inheritance diagram for ExExChPhysicsListMessenger:
Collaboration diagram for ExExChPhysicsListMessenger:

Public Member Functions

 ExExChPhysicsListMessenger (ExExChPhysicsList *mpga)
 
virtual ~ExExChPhysicsListMessenger ()
 
virtual void SetNewValue (G4UIcommand *command, G4String newValues)
 
virtual G4String GetCurrentValue (G4UIcommand *command)
 
- Public Member Functions inherited from G4UImessenger
 G4UImessenger ()
 
 G4UImessenger (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
virtual ~G4UImessenger ()
 
G4bool operator== (const G4UImessenger &messenger) const
 
G4bool CommandsShouldBeInMaster () const
 

Private Attributes

ExExChPhysicsListfTarget
 
G4UIcmdWithAStringfFilePotentialNameCmd
 
G4UIcmdWithADoubleAndUnitfTransverseVariationMaxCmd
 
G4UIcmdWithADoubleAndUnitfTimeStepMinCmd
 
G4UIdirectoryfMyDirectory
 

Additional Inherited Members

- Protected Member Functions inherited from G4UImessenger
G4String ItoS (G4int i)
 
G4String DtoS (G4double a)
 
G4String BtoS (G4bool b)
 
G4int StoI (G4String s)
 
G4double StoD (G4String s)
 
G4bool StoB (G4String s)
 
void AddUIcommand (G4UIcommand *newCommand)
 
void CreateDirectory (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
template<typename T >
T * CreateCommand (const G4String &cname, const G4String &dsc)
 
- Protected Attributes inherited from G4UImessenger
G4UIdirectorybaseDir
 
G4String baseDirName
 
G4bool commandsShouldBeInMaster
 

Detailed Description

Definition at line 39 of file ExExChPhysicsListMessenger.hh.

Constructor & Destructor Documentation

◆ ExExChPhysicsListMessenger()

ExExChPhysicsListMessenger::ExExChPhysicsListMessenger ( ExExChPhysicsList mpga)

Definition at line 35 of file ExExChPhysicsListMessenger.cc.

37 :fTarget (mpga){
38  fMyDirectory = new G4UIdirectory("/xtal/");
39 
40  fFilePotentialNameCmd = new G4UIcmdWithAString("/xtal/potfilename",this);
41  fFilePotentialNameCmd->SetGuidance("Filename for input potential vector.");
42  fFilePotentialNameCmd->SetParameterName("potfilename",true);
45  new G4UIcmdWithADoubleAndUnit("/xtal/setTransVarMax",this);
46  fTransverseVariationMaxCmd->SetGuidance("Integration - transverse variation max");
50  fTransverseVariationMaxCmd->SetRange("trvarmax>=0.0");
51 
52 
54  new G4UIcmdWithADoubleAndUnit("/xtal/setTimeStepMin",this);
55  fTimeStepMinCmd->SetGuidance("Integration - time step min");
56  fTimeStepMinCmd->SetParameterName("timestmin",true);
58  fTimeStepMinCmd->SetDefaultUnit("angstrom");
59  fTimeStepMinCmd->SetRange("timestmin>=0.0");}
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
G4UIcmdWithAString * fFilePotentialNameCmd
void SetRange(const char *rs)
Definition: G4UIcommand.hh:125
void SetGuidance(const char *aGuidance)
Definition: G4UIcommand.hh:161
G4UIcmdWithADoubleAndUnit * fTimeStepMinCmd
void SetDefaultValue(const char *defVal)
void SetDefaultUnit(const char *defUnit)
G4UIcmdWithADoubleAndUnit * fTransverseVariationMaxCmd
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
Here is the call graph for this function:

◆ ~ExExChPhysicsListMessenger()

ExExChPhysicsListMessenger::~ExExChPhysicsListMessenger ( )
virtual

Definition at line 63 of file ExExChPhysicsListMessenger.cc.

63  {
64  delete fFilePotentialNameCmd;
66  delete fTimeStepMinCmd;}
G4UIcmdWithAString * fFilePotentialNameCmd
G4UIcmdWithADoubleAndUnit * fTimeStepMinCmd
G4UIcmdWithADoubleAndUnit * fTransverseVariationMaxCmd

Member Function Documentation

◆ GetCurrentValue()

G4String ExExChPhysicsListMessenger::GetCurrentValue ( G4UIcommand command)
virtual

Reimplemented from G4UImessenger.

Definition at line 85 of file ExExChPhysicsListMessenger.cc.

86  {
87  G4String cv;
88  if( command==fFilePotentialNameCmd ){
90  }
91  if(command==fTransverseVariationMaxCmd ){
93  }
94  if(command==fTimeStepMinCmd ){
96  }
97  return cv;
98 }
G4String GetFilePotentialName()
static G4String ConvertToString(G4bool boolVal)
Definition: G4UIcommand.cc:371
G4UIcmdWithAString * fFilePotentialNameCmd
G4UIcmdWithADoubleAndUnit * fTimeStepMinCmd
G4UIcmdWithADoubleAndUnit * fTransverseVariationMaxCmd
G4double GetTransverseVariationMax()
Here is the call graph for this function:

◆ SetNewValue()

void ExExChPhysicsListMessenger::SetNewValue ( G4UIcommand command,
G4String  newValues 
)
virtual

Reimplemented from G4UImessenger.

Definition at line 70 of file ExExChPhysicsListMessenger.cc.

71  {
72  if( command==fFilePotentialNameCmd ){
73  fTarget->SetFilePotentialName(newValue);
74  }
75  if(command==fTransverseVariationMaxCmd ){
77  }
78  if(command==fTimeStepMinCmd ){
80  }
81 }
void SetTransverseVariationMax(G4double aDouble)
static G4double GetNewDoubleValue(const char *paramString)
G4UIcmdWithAString * fFilePotentialNameCmd
G4UIcmdWithADoubleAndUnit * fTimeStepMinCmd
void SetTimeStepMin(G4double aDouble)
void SetFilePotentialName(const G4String &)
G4UIcmdWithADoubleAndUnit * fTransverseVariationMaxCmd
Here is the call graph for this function:

Member Data Documentation

◆ fFilePotentialNameCmd

G4UIcmdWithAString* ExExChPhysicsListMessenger::fFilePotentialNameCmd
private

Definition at line 51 of file ExExChPhysicsListMessenger.hh.

◆ fMyDirectory

G4UIdirectory* ExExChPhysicsListMessenger::fMyDirectory
private

Definition at line 55 of file ExExChPhysicsListMessenger.hh.

◆ fTarget

ExExChPhysicsList* ExExChPhysicsListMessenger::fTarget
private

Definition at line 49 of file ExExChPhysicsListMessenger.hh.

◆ fTimeStepMinCmd

G4UIcmdWithADoubleAndUnit* ExExChPhysicsListMessenger::fTimeStepMinCmd
private

Definition at line 53 of file ExExChPhysicsListMessenger.hh.

◆ fTransverseVariationMaxCmd

G4UIcmdWithADoubleAndUnit* ExExChPhysicsListMessenger::fTransverseVariationMaxCmd
private

Definition at line 52 of file ExExChPhysicsListMessenger.hh.


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