ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HadrontherapyAnalysisFileMessenger Class Reference

#include <geant4/tree/geant4-10.6-release/examples/advanced/hadrontherapy/include/HadrontherapyAnalysisFileMessenger.hh>

+ Inheritance diagram for HadrontherapyAnalysisFileMessenger:
+ Collaboration diagram for HadrontherapyAnalysisFileMessenger:

Public Member Functions

 HadrontherapyAnalysisFileMessenger (HadrontherapyAnalysis *)
 
 ~HadrontherapyAnalysisFileMessenger ()
 
void SetNewValue (G4UIcommand *command, G4String newValue)
 
- 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
 

Public Attributes

HadrontherapyAnalysisAnalysisManager
 handle to AnalysisManager
 

Private Attributes

G4UIcmdWithABoolLetCmd
 
G4UIcmdWithABoolsecondaryCmd
 
G4UIcmdWithAStringDoseMatrixCmd
 

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)
 
G4long StoL (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 >
TCreateCommand (const G4String &cname, const G4String &dsc)
 
- Protected Attributes inherited from G4UImessenger
G4UIdirectorybaseDir
 
G4String baseDirName
 
G4bool commandsShouldBeInMaster
 

Detailed Description

A messenger object of this class is created by the AnalysisManager. The point of a messenger is to connect the G4UI with the simulation functionality. The messenger needs to contain a command object and to have SetValue method that is called once a command is set.

See Also
HadrontherapyAnalysisManager

Definition at line 49 of file HadrontherapyAnalysisFileMessenger.hh.

View newest version in sPHENIX GitHub at line 49 of file HadrontherapyAnalysisFileMessenger.hh

Constructor & Destructor Documentation

HadrontherapyAnalysisFileMessenger::HadrontherapyAnalysisFileMessenger ( HadrontherapyAnalysis amgr)

Definition at line 39 of file HadrontherapyAnalysisFileMessenger.cc.

View newest version in sPHENIX GitHub at line 39 of file HadrontherapyAnalysisFileMessenger.cc

References DoseMatrixCmd, G4State_Idle, G4State_PreInit, LetCmd, secondaryCmd, G4UIcmdWithAString::SetDefaultValue(), G4UIcommand::SetGuidance(), and G4UIcmdWithAString::SetParameterName().

+ Here is the call graph for this function:

HadrontherapyAnalysisFileMessenger::~HadrontherapyAnalysisFileMessenger ( )

Definition at line 63 of file HadrontherapyAnalysisFileMessenger.cc.

View newest version in sPHENIX GitHub at line 63 of file HadrontherapyAnalysisFileMessenger.cc

References DoseMatrixCmd, LetCmd, and secondaryCmd.

Member Function Documentation

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

Called when new command given.

Parameters
commandis a pointer to the given command object
newValueholds the argument given as a G4String
Returns
is void

Reimplemented from G4UImessenger.

Definition at line 71 of file HadrontherapyAnalysisFileMessenger.cc.

View newest version in sPHENIX GitHub at line 71 of file HadrontherapyAnalysisFileMessenger.cc

References DoseMatrixCmd, HadrontherapyLet::GetInstance(), HadrontherapyMatrix::GetInstance(), LetCmd, and secondaryCmd.

+ Here is the call graph for this function:

Member Data Documentation

HadrontherapyAnalysis* HadrontherapyAnalysisFileMessenger::AnalysisManager

handle to AnalysisManager

Definition at line 62 of file HadrontherapyAnalysisFileMessenger.hh.

View newest version in sPHENIX GitHub at line 62 of file HadrontherapyAnalysisFileMessenger.hh

G4UIcmdWithAString* HadrontherapyAnalysisFileMessenger::DoseMatrixCmd
private

Definition at line 71 of file HadrontherapyAnalysisFileMessenger.hh.

View newest version in sPHENIX GitHub at line 71 of file HadrontherapyAnalysisFileMessenger.hh

Referenced by HadrontherapyAnalysisFileMessenger(), SetNewValue(), and ~HadrontherapyAnalysisFileMessenger().

G4UIcmdWithABool* HadrontherapyAnalysisFileMessenger::LetCmd
private

G4 user interface command (that takes a string argument) object Constructor requires command name and messenger class(this).

Definition at line 70 of file HadrontherapyAnalysisFileMessenger.hh.

View newest version in sPHENIX GitHub at line 70 of file HadrontherapyAnalysisFileMessenger.hh

Referenced by HadrontherapyAnalysisFileMessenger(), SetNewValue(), and ~HadrontherapyAnalysisFileMessenger().

G4UIcmdWithABool * HadrontherapyAnalysisFileMessenger::secondaryCmd
private

Definition at line 70 of file HadrontherapyAnalysisFileMessenger.hh.

View newest version in sPHENIX GitHub at line 70 of file HadrontherapyAnalysisFileMessenger.hh

Referenced by HadrontherapyAnalysisFileMessenger(), SetNewValue(), and ~HadrontherapyAnalysisFileMessenger().


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