Geant4  10.02.p03
WLSSteppingActionMessenger Class Reference

#include <WLSSteppingActionMessenger.hh>

Inheritance diagram for WLSSteppingActionMessenger:
Collaboration diagram for WLSSteppingActionMessenger:

Public Member Functions

 WLSSteppingActionMessenger (WLSSteppingAction *)
 
virtual ~WLSSteppingActionMessenger ()
 
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

WLSSteppingActionfSteppingAction
 
G4UIdirectoryfSteppingDir
 
G4UIcmdWithAnIntegerfSetBounceLimitCmd
 

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 45 of file WLSSteppingActionMessenger.hh.

Constructor & Destructor Documentation

◆ WLSSteppingActionMessenger()

WLSSteppingActionMessenger::WLSSteppingActionMessenger ( WLSSteppingAction steppingaction)

Definition at line 42 of file WLSSteppingActionMessenger.cc.

43  : fSteppingAction (steppingaction)
44 {
45  fSteppingDir = new G4UIdirectory("/stepping/");
46  fSteppingDir->SetGuidance("stepping control");
47 
49  new G4UIcmdWithAnInteger("/stepping/setBounceLimit", this);
51  SetGuidance("Select the maximum number of allowed bounce");
53  SetGuidance("Set this number to zero if you don't want to limit");
54  fSetBounceLimitCmd->SetParameterName("limit",false);
55  fSetBounceLimitCmd->SetRange("limit>=0");
57 }
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
G4UIcmdWithAnInteger * fSetBounceLimitCmd
void SetRange(const char *rs)
Definition: G4UIcommand.hh:125
void SetGuidance(const char *aGuidance)
Definition: G4UIcommand.hh:161
void AvailableForStates(G4ApplicationState s1)
Definition: G4UIcommand.cc:239
Here is the call graph for this function:

◆ ~WLSSteppingActionMessenger()

WLSSteppingActionMessenger::~WLSSteppingActionMessenger ( )
virtual

Definition at line 61 of file WLSSteppingActionMessenger.cc.

62 {
63  delete fSteppingDir;
64  delete fSetBounceLimitCmd;
65 }
G4UIcmdWithAnInteger * fSetBounceLimitCmd

Member Function Documentation

◆ SetNewValue()

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

Reimplemented from G4UImessenger.

Definition at line 69 of file WLSSteppingActionMessenger.cc.

71 {
72  if ( command == fSetBounceLimitCmd ) {
73 
75  SetBounceLimit(G4UIcmdWithAnInteger::GetNewIntValue(newValue));
76  }
77 }
static G4int GetNewIntValue(const char *paramString)
G4UIcmdWithAnInteger * fSetBounceLimitCmd
Here is the call graph for this function:

Member Data Documentation

◆ fSetBounceLimitCmd

G4UIcmdWithAnInteger* WLSSteppingActionMessenger::fSetBounceLimitCmd
private

Definition at line 60 of file WLSSteppingActionMessenger.hh.

◆ fSteppingAction

WLSSteppingAction* WLSSteppingActionMessenger::fSteppingAction
private

Definition at line 56 of file WLSSteppingActionMessenger.hh.

◆ fSteppingDir

G4UIdirectory* WLSSteppingActionMessenger::fSteppingDir
private

Definition at line 58 of file WLSSteppingActionMessenger.hh.


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