GGS(GenericGEANT4Simulation)Software  2.7.0
 All Data Structures Namespaces Files Functions Variables Typedefs Macros
Public Member Functions
GGSMCTruthMessenger Class Reference

A control messenger for GGSMCTruthAction. More...

#include <GGSMCTruthMessenger.h>

Inheritance diagram for GGSMCTruthMessenger:
Inheritance graph
[legend]
Collaboration diagram for GGSMCTruthMessenger:
Collaboration graph
[legend]

Public Member Functions

 GGSMCTruthMessenger (GGSMCTruthAction *action)
 Constructor.
 
 ~GGSMCTruthMessenger ()
 Destructor.
 
void SetNewValue (G4UIcommand *command, G4String newValue)
 Override of SetNewValue method. More...
 

Detailed Description

A control messenger for GGSMCTruthAction.

This messenger controls the GGSMCTruthAction action. The construction and destruction of this messenger is handled by GGSMCTruthAction itself, so messenger's commands will be available as the action is built. Currently, the available commands are:

/GGS/userActions/MCTruthAction/fileBase: sets the output file base name. /GGS/userActions/MCTruthAction/treeName: sets the output tree name.

See Also
GGSMCTruthAction

Definition at line 31 of file GGSMCTruthMessenger.h.

Member Function Documentation

void GGSMCTruthMessenger::SetNewValue ( G4UIcommand *  command,
G4String  newValue 
)

Override of SetNewValue method.

Parameters
commandThe UI command.
newValueThe new value to be set.

Definition at line 45 of file GGSMCTruthMessenger.cpp.

45  {
46 
47  if (command == _outBaseCmd)
48  _action->SetOutputFileBase(newValue);
49 
50  if (command == _outTreeCmd)
51  _action->SetOutputTreeName(newValue);
52 }
void SetOutputFileBase(const std::string &outFileBase)
Sets the output file base name.
void SetOutputTreeName(const std::string &outTreeName)
Sets the output tree name.

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