Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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
 

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 42 of file ExExChPhysicsListMessenger.hh.

Constructor & Destructor Documentation

ExExChPhysicsListMessenger::ExExChPhysicsListMessenger ( ExExChPhysicsList mpga)

Definition at line 38 of file ExExChPhysicsListMessenger.cc.

40 :fTarget (mpga){
41  fMyDirectory = new G4UIdirectory("/xtal/");
42 
43  fFilePotentialNameCmd = new G4UIcmdWithAString("/xtal/potfilename",this);
44  fFilePotentialNameCmd->SetGuidance("Filename for input potential vector.");
45  fFilePotentialNameCmd->SetParameterName("potfilename",true);
46  fFilePotentialNameCmd->SetDefaultValue("");
47  fTransverseVariationMaxCmd =
48  new G4UIcmdWithADoubleAndUnit("/xtal/setTransVarMax",this);
49  fTransverseVariationMaxCmd->SetGuidance("Integration - transverse variation max");
50  fTransverseVariationMaxCmd->SetParameterName("trvarmax",true);
51  fTransverseVariationMaxCmd->SetDefaultValue(2.E-2);
52  fTransverseVariationMaxCmd->SetDefaultUnit("angstrom");
53  fTransverseVariationMaxCmd->SetRange("trvarmax>=0.0");
54 
55 
56  fTimeStepMinCmd =
57  new G4UIcmdWithADoubleAndUnit("/xtal/setTimeStepMin",this);
58  fTimeStepMinCmd->SetGuidance("Integration - time step min");
59  fTimeStepMinCmd->SetParameterName("timestmin",true);
60  fTimeStepMinCmd->SetDefaultValue(2.E0);
61  fTimeStepMinCmd->SetDefaultUnit("angstrom");
62  fTimeStepMinCmd->SetRange("timestmin>=0.0");}
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetRange(const char *rs)
Definition: G4UIcommand.hh:125
void SetGuidance(const char *aGuidance)
Definition: G4UIcommand.hh:161
void SetDefaultValue(const char *defVal)
void SetDefaultUnit(const char *defUnit)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)

Here is the call graph for this function:

ExExChPhysicsListMessenger::~ExExChPhysicsListMessenger ( )
virtual

Definition at line 66 of file ExExChPhysicsListMessenger.cc.

66  {
67  delete fFilePotentialNameCmd;
68  delete fTransverseVariationMaxCmd;
69  delete fTimeStepMinCmd;}

Member Function Documentation

G4String ExExChPhysicsListMessenger::GetCurrentValue ( G4UIcommand command)
virtual

Reimplemented from G4UImessenger.

Definition at line 88 of file ExExChPhysicsListMessenger.cc.

89  {
90  G4String cv;
91  if( command==fFilePotentialNameCmd ){
92  cv = fTarget->GetFilePotentialName();
93  }
94  if(command==fTransverseVariationMaxCmd ){
95  cv = fTransverseVariationMaxCmd->ConvertToString(fTarget->GetTransverseVariationMax());
96  }
97  if(command==fTimeStepMinCmd ){
98  cv = fTimeStepMinCmd->ConvertToString(fTarget->GetTimeStepMin());
99  }
100  return cv;
101 }
G4String GetFilePotentialName()
static G4String ConvertToString(G4bool boolVal)
Definition: G4UIcommand.cc:372
G4double GetTransverseVariationMax()

Here is the call graph for this function:

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

Reimplemented from G4UImessenger.

Definition at line 73 of file ExExChPhysicsListMessenger.cc.

74  {
75  if( command==fFilePotentialNameCmd ){
76  fTarget->SetFilePotentialName(newValue);
77  }
78  if(command==fTransverseVariationMaxCmd ){
79  fTarget->SetTransverseVariationMax(fTransverseVariationMaxCmd->GetNewDoubleValue(newValue));
80  }
81  if(command==fTimeStepMinCmd ){
82  fTarget->SetTimeStepMin(fTimeStepMinCmd->GetNewDoubleValue(newValue));
83  }
84 }
void SetTransverseVariationMax(G4double aDouble)
static G4double GetNewDoubleValue(const char *paramString)
void SetTimeStepMin(G4double aDouble)
void SetFilePotentialName(const G4String &)

Here is the call graph for this function:


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