Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4GenericAnalysisMessenger Class Reference

#include <G4GenericAnalysisMessenger.hh>

+ Inheritance diagram for G4GenericAnalysisMessenger:

Public Member Functions

 G4GenericAnalysisMessenger (G4GenericAnalysisManager *manager)
 
 G4GenericAnalysisMessenger ()=delete
 
 ~G4GenericAnalysisMessenger () override
 
void SetNewValue (G4UIcommand *command, G4String value) final
 
- Public Member Functions inherited from G4UImessenger
 G4UImessenger ()=default
 
 G4UImessenger (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
virtual ~G4UImessenger ()
 
virtual G4String GetCurrentValue (G4UIcommand *command)
 
virtual void SetNewValue (G4UIcommand *command, G4String newValue)
 
G4bool operator== (const G4UImessenger &messenger) const
 
G4bool operator!= (const G4UImessenger &messenger) const
 
G4bool CommandsShouldBeInMaster () const
 

Additional Inherited Members

- Protected Member Functions inherited from G4UImessenger
G4String ItoS (G4int i)
 
G4String DtoS (G4double a)
 
G4String BtoS (G4bool b)
 
G4int StoI (const G4String &s)
 
G4long StoL (const G4String &s)
 
G4double StoD (const 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 = nullptr
 
G4String baseDirName = ""
 
G4bool commandsShouldBeInMaster = false
 

Detailed Description

Definition at line 44 of file G4GenericAnalysisMessenger.hh.

Constructor & Destructor Documentation

◆ G4GenericAnalysisMessenger() [1/2]

G4GenericAnalysisMessenger::G4GenericAnalysisMessenger ( G4GenericAnalysisManager manager)
explicit

Definition at line 35 of file G4GenericAnalysisMessenger.cc.

36 : fManager(manager)
37{
38 fSetDefaultFileTypeCmd = CreateCommand<G4UIcmdWithAString>(
39 "setDefaultFileType", "Set default output file type", "DefaultFileType", false);
40#ifdef TOOLS_USE_HDF5
41 fSetDefaultFileTypeCmd->SetCandidates("csv hdf5 root xml");
42#else
43 fSetDefaultFileTypeCmd->SetCandidates("csv root xml");
44#endif
45}

◆ G4GenericAnalysisMessenger() [2/2]

G4GenericAnalysisMessenger::G4GenericAnalysisMessenger ( )
delete

◆ ~G4GenericAnalysisMessenger()

G4GenericAnalysisMessenger::~G4GenericAnalysisMessenger ( )
overridedefault

Member Function Documentation

◆ SetNewValue()

void G4GenericAnalysisMessenger::SetNewValue ( G4UIcommand command,
G4String  value 
)
finalvirtual

Reimplemented from G4UImessenger.

Definition at line 56 of file G4GenericAnalysisMessenger.cc.

57{
58 if ( command == fSetDefaultFileTypeCmd.get() ) {
59 fManager->SetDefaultFileType(newValues);
60 return;
61 }
62}
void SetDefaultFileType(const G4String &value)

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