Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
F02PhysicsListMessenger Class Reference

#include <F02PhysicsListMessenger.hh>

Inheritance diagram for F02PhysicsListMessenger:
G4UImessenger

Public Member Functions

 F02PhysicsListMessenger (F02PhysicsList *)
 
virtual ~F02PhysicsListMessenger ()
 
virtual void SetNewValue (G4UIcommand *, G4String)
 
- Public Member Functions inherited from G4UImessenger
 G4UImessenger ()
 
 G4UImessenger (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
virtual ~G4UImessenger ()
 
virtual G4String GetCurrentValue (G4UIcommand *command)
 
G4bool operator== (const G4UImessenger &messenger) 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
 

Detailed Description

Definition at line 48 of file F02PhysicsListMessenger.hh.

Constructor & Destructor Documentation

F02PhysicsListMessenger::F02PhysicsListMessenger ( F02PhysicsList List)

Definition at line 43 of file F02PhysicsListMessenger.cc.

References G4UIcommand::AvailableForStates(), G4State_Idle, G4UIcmdWithADoubleAndUnit::SetDefaultUnit(), G4UIcmdWithADoubleAndUnit::SetDefaultValue(), G4UIcommand::SetGuidance(), and G4UIcmdWithADoubleAndUnit::SetParameterName().

44  : fF02List(List)
45 {
46  fCutGCmd = new G4UIcmdWithADoubleAndUnit("/calor/cutG",this);
47  fCutGCmd->SetGuidance("Set cut values by RANGE for Gamma.");
48  fCutGCmd->SetParameterName("range",true);
49  fCutGCmd->SetDefaultValue(1.);
50  fCutGCmd->SetDefaultUnit("mm");
52 
53  fCutECmd = new G4UIcmdWithADoubleAndUnit("/calor/cutE",this);
54  fCutECmd->SetGuidance("Set cut values by RANGE for e- e+.");
55  fCutECmd->SetParameterName("range",true);
56  fCutECmd->SetDefaultValue(1.);
57  fCutECmd->SetDefaultUnit("mm");
59 
60  fSetMaxStepCmd = new G4UIcmdWithADoubleAndUnit("/step/setMaxStep",this);
61  fSetMaxStepCmd->SetGuidance("Set max. step length in the detector");
62  fSetMaxStepCmd->SetParameterName("mxStep",true);
63  fSetMaxStepCmd->SetDefaultUnit("mm");
64 }
void SetGuidance(const char *aGuidance)
Definition: G4UIcommand.hh:161
void AvailableForStates(G4ApplicationState s1)
Definition: G4UIcommand.cc:225
void SetDefaultUnit(const char *defUnit)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
F02PhysicsListMessenger::~F02PhysicsListMessenger ( )
virtual

Definition at line 68 of file F02PhysicsListMessenger.cc.

69 {
70  delete fSetMaxStepCmd;
71  delete fCutGCmd;
72  delete fCutECmd;
73 }

Member Function Documentation

void F02PhysicsListMessenger::SetNewValue ( G4UIcommand command,
G4String  newValue 
)
virtual

Reimplemented from G4UImessenger.

Definition at line 77 of file F02PhysicsListMessenger.cc.

References G4UIcmdWithADoubleAndUnit::GetNewDoubleValue(), F02PhysicsList::SetElectronCut(), F02PhysicsList::SetGammaCut(), and F02PhysicsList::SetMaxStep().

79 {
80  if(command == fCutGCmd)
81  {fF02List->SetGammaCut(fCutGCmd->GetNewDoubleValue(newValue));}
82  if(command == fCutECmd)
83  {fF02List->SetElectronCut(fCutECmd->GetNewDoubleValue(newValue));}
84  if(command == fSetMaxStepCmd)
85  {fF02List->SetMaxStep(fSetMaxStepCmd->GetNewDoubleValue(newValue));}
86 }
void SetGammaCut(G4double)
static G4double GetNewDoubleValue(const char *paramString)
void SetElectronCut(G4double)
void SetMaxStep(G4double)

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