Geant4  10.02.p03
F01PhysicsListMessenger Class Reference

#include <F01PhysicsListMessenger.hh>

Inheritance diagram for F01PhysicsListMessenger:
Collaboration diagram for F01PhysicsListMessenger:

Public Member Functions

 F01PhysicsListMessenger (F01PhysicsList *)
 
virtual ~F01PhysicsListMessenger ()
 
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
 
G4bool CommandsShouldBeInMaster () const
 

Private Attributes

F01PhysicsListfF01List
 
G4UIcmdWithADoubleAndUnitfSetMaxStepCmd
 
G4UIcmdWithADoubleAndUnitfCutGCmd
 
G4UIcmdWithADoubleAndUnitfCutECmd
 

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 48 of file F01PhysicsListMessenger.hh.

Constructor & Destructor Documentation

◆ F01PhysicsListMessenger()

F01PhysicsListMessenger::F01PhysicsListMessenger ( F01PhysicsList List)

Definition at line 43 of file F01PhysicsListMessenger.cc.

44  : fF01List(List)
45 {
46  fCutGCmd = new G4UIcmdWithADoubleAndUnit("/calor/cutG",this);
47  fCutGCmd->SetGuidance("Set cut values by RANGE for Gamma.");
48  fCutGCmd->SetParameterName("range",true);
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);
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);
64 }
G4UIcmdWithADoubleAndUnit * fCutECmd
void SetGuidance(const char *aGuidance)
Definition: G4UIcommand.hh:161
G4UIcmdWithADoubleAndUnit * fCutGCmd
void AvailableForStates(G4ApplicationState s1)
Definition: G4UIcommand.cc:239
void SetDefaultUnit(const char *defUnit)
G4UIcmdWithADoubleAndUnit * fSetMaxStepCmd
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
Here is the call graph for this function:

◆ ~F01PhysicsListMessenger()

F01PhysicsListMessenger::~F01PhysicsListMessenger ( )
virtual

Definition at line 68 of file F01PhysicsListMessenger.cc.

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

Member Function Documentation

◆ SetNewValue()

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

Reimplemented from G4UImessenger.

Definition at line 77 of file F01PhysicsListMessenger.cc.

79 {
80  if(command == fCutGCmd)
82  if(command == fCutECmd)
84  if(command == fSetMaxStepCmd)
86 }
void SetElectronCut(G4double)
static G4double GetNewDoubleValue(const char *paramString)
G4UIcmdWithADoubleAndUnit * fCutECmd
void SetGammaCut(G4double)
G4UIcmdWithADoubleAndUnit * fCutGCmd
void SetMaxStep(G4double)
G4UIcmdWithADoubleAndUnit * fSetMaxStepCmd
Here is the call graph for this function:

Member Data Documentation

◆ fCutECmd

G4UIcmdWithADoubleAndUnit* F01PhysicsListMessenger::fCutECmd
private

Definition at line 62 of file F01PhysicsListMessenger.hh.

◆ fCutGCmd

G4UIcmdWithADoubleAndUnit* F01PhysicsListMessenger::fCutGCmd
private

Definition at line 61 of file F01PhysicsListMessenger.hh.

◆ fF01List

F01PhysicsList* F01PhysicsListMessenger::fF01List
private

Definition at line 57 of file F01PhysicsListMessenger.hh.

◆ fSetMaxStepCmd

G4UIcmdWithADoubleAndUnit* F01PhysicsListMessenger::fSetMaxStepCmd
private

Definition at line 59 of file F01PhysicsListMessenger.hh.


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