Geant4-11
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes
G4HnMessenger Class Reference

#include <G4HnMessenger.hh>

Inheritance diagram for G4HnMessenger:
G4UImessenger

Public Member Functions

G4bool CommandsShouldBeInMaster () const
 
 G4HnMessenger ()=delete
 
 G4HnMessenger (G4HnManager &manager)
 
virtual G4String GetCurrentValue (G4UIcommand *command)
 
G4bool operator!= (const G4UImessenger &messenger) const
 
G4bool operator== (const G4UImessenger &messenger) const
 
virtual void SetNewValue (G4UIcommand *command, G4String value) final
 
virtual ~G4HnMessenger ()
 

Protected Member Functions

void AddUIcommand (G4UIcommand *newCommand)
 
G4String BtoS (G4bool b)
 
template<typename T >
T * CreateCommand (const G4String &cname, const G4String &dsc)
 
void CreateDirectory (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
G4String DtoS (G4double a)
 
G4String ItoS (G4int i)
 
G4bool StoB (G4String s)
 
G4double StoD (G4String s)
 
G4int StoI (G4String s)
 
G4long StoL (G4String s)
 

Protected Attributes

G4UIdirectorybaseDir = nullptr
 
G4String baseDirName = ""
 
G4bool commandsShouldBeInMaster = false
 

Private Member Functions

void SetHnActivationCmd ()
 
void SetHnActivationToAllCmd ()
 
void SetHnAsciiCmd ()
 
void SetHnFileNameCmd ()
 
void SetHnFileNameToAllCmd ()
 
void SetHnPlottingCmd ()
 
void SetHnPlottingToAllCmd ()
 

Private Attributes

std::unique_ptr< G4AnalysisMessengerHelperfHelper
 
G4HnManagerfManager
 Associated class. More...
 
std::unique_ptr< G4UIcmdWithABoolfSetHnActivationAllCmd
 
std::unique_ptr< G4UIcommandfSetHnActivationCmd
 
std::unique_ptr< G4UIcmdWithAnIntegerfSetHnAsciiCmd
 
std::unique_ptr< G4UIcmdWithAStringfSetHnFileNameAllCmd
 
std::unique_ptr< G4UIcommandfSetHnFileNameCmd
 
std::unique_ptr< G4UIcmdWithABoolfSetHnPlottingAllCmd
 
std::unique_ptr< G4UIcommandfSetHnPlottingCmd
 

Detailed Description

Definition at line 47 of file G4HnMessenger.hh.

Constructor & Destructor Documentation

◆ G4HnMessenger() [1/2]

G4HnMessenger::G4HnMessenger ( G4HnManager manager)
explicit

Definition at line 42 of file G4HnMessenger.cc.

43 : G4UImessenger(),
44 fManager(manager)
45{
47 fHelper = std::make_unique<G4AnalysisMessengerHelper>(hnType);
48
56}
G4String GetHnType() const
Definition: G4HnManager.hh:147
G4HnManager & fManager
Associated class.
void SetHnPlottingCmd()
std::unique_ptr< G4AnalysisMessengerHelper > fHelper
void SetHnActivationToAllCmd()
void SetHnFileNameCmd()
void SetHnActivationCmd()
void SetHnPlottingToAllCmd()
void SetHnAsciiCmd()
void SetHnFileNameToAllCmd()
G4String to_lower_copy(G4String str)
Return lowercased copy of string.

References fHelper, fManager, G4HnManager::GetHnType(), SetHnActivationCmd(), SetHnActivationToAllCmd(), SetHnAsciiCmd(), SetHnFileNameCmd(), SetHnFileNameToAllCmd(), SetHnPlottingCmd(), SetHnPlottingToAllCmd(), and G4StrUtil::to_lower_copy().

◆ G4HnMessenger() [2/2]

G4HnMessenger::G4HnMessenger ( )
delete

◆ ~G4HnMessenger()

G4HnMessenger::~G4HnMessenger ( )
virtualdefault

Member Function Documentation

◆ AddUIcommand()

void G4UImessenger::AddUIcommand ( G4UIcommand newCommand)
protectedinherited

Definition at line 149 of file G4UImessenger.cc.

150{
151 G4cerr << "Warning : Old style definition of G4UIcommand <"
152 << newCommand->GetCommandPath() << ">." << G4endl;
153}
G4GLOB_DLL std::ostream G4cerr
#define G4endl
Definition: G4ios.hh:57
const G4String & GetCommandPath() const
Definition: G4UIcommand.hh:136

References G4cerr, G4endl, and G4UIcommand::GetCommandPath().

◆ BtoS()

G4String G4UImessenger::BtoS ( G4bool  b)
protectedinherited

Definition at line 98 of file G4UImessenger.cc.

99{
100 G4String vl = "0";
101 if(b)
102 vl = "true";
103 return vl;
104}

◆ CommandsShouldBeInMaster()

G4bool G4UImessenger::CommandsShouldBeInMaster ( ) const
inlineinherited

Definition at line 77 of file G4UImessenger.hh.

78 {
80 }
G4bool commandsShouldBeInMaster

References G4UImessenger::commandsShouldBeInMaster.

Referenced by G4UIcommand::G4UIcommandCommonConstructorCode().

◆ CreateCommand()

template<typename T >
T * G4UImessenger::CreateCommand ( const G4String cname,
const G4String dsc 
)
protectedinherited

Definition at line 110 of file G4UImessenger.hh.

111{
112 G4String path;
113 if(cname[0] != '/')
114 {
115 path = baseDirName + cname;
116 if(path[0] != '/')
117 path = "/" + path;
118 }
119
120 T* command = new T(path.c_str(), this);
121 command->SetGuidance(dsc.c_str());
122
123 return command;
124}
G4String baseDirName

References G4UImessenger::baseDirName.

◆ CreateDirectory()

void G4UImessenger::CreateDirectory ( const G4String path,
const G4String dsc,
G4bool  commandsToBeBroadcasted = true 
)
protectedinherited

Definition at line 156 of file G4UImessenger.cc.

158{
160
161 G4String fullpath = path;
162 if(fullpath.back() != '/')
163 fullpath.append("/");
164
165 G4UIcommandTree* tree = ui->GetTree()->FindCommandTree(fullpath.c_str());
166 if(tree != nullptr)
167 {
168 baseDirName = tree->GetPathName();
169 }
170 else
171 {
172 baseDir = new G4UIdirectory(fullpath.c_str(), commandsToBeBroadcasted);
173 baseDirName = fullpath;
174 baseDir->SetGuidance(dsc.c_str());
175 }
176}
const G4String & GetPathName() const
G4UIcommandTree * FindCommandTree(const char *commandPath)
void SetGuidance(const char *aGuidance)
Definition: G4UIcommand.hh:156
G4UIcommandTree * GetTree() const
Definition: G4UImanager.hh:186
static G4UImanager * GetUIpointer()
Definition: G4UImanager.cc:77
G4UIdirectory * baseDir

References G4UImessenger::baseDir, G4UImessenger::baseDirName, G4UIcommandTree::FindCommandTree(), G4UIcommandTree::GetPathName(), G4UImanager::GetTree(), G4UImanager::GetUIpointer(), and G4UIcommand::SetGuidance().

Referenced by G4MoleculeShootMessenger::G4MoleculeShootMessenger(), and G4UImessenger::G4UImessenger().

◆ DtoS()

G4String G4UImessenger::DtoS ( G4double  a)
protectedinherited

Definition at line 90 of file G4UImessenger.cc.

91{
92 std::ostringstream os;
93 os << a;
94 return G4String(os.str());
95}

Referenced by G4ScoreQuantityMessenger::FilterCommands(), and G4UIcontrolMessenger::SetNewValue().

◆ GetCurrentValue()

G4String G4UImessenger::GetCurrentValue ( G4UIcommand command)
virtualinherited

Reimplemented in G4ScoreQuantityMessenger, G4VisCommandModelCreate< Factory >, G4VisCommandListManagerList< Manager >, G4VisCommandListManagerSelect< Manager >, G4VisCommandManagerMode< Manager >, G4ToolsAnalysisMessenger, G4ScoringMessenger, G4EvManMessenger, G4GeneralParticleSourceMessenger, G4ParticleGunMessenger, G4GeometryMessenger, G4GenericMessenger, G4UIcontrolMessenger, GFlashShowerModelMessenger, G4DecayTableMessenger, G4ParticleMessenger, G4ParticlePropertyMessenger, G4tgrMessenger, G4PersistencyCenterMessenger, G4ProductionCutsTableMessenger, G4SchedulerMessenger, G4VITSteppingVerbose, G4MoleculeShootMessenger, G4MoleculeGunMessenger, G4ProcessManagerMessenger, G4ProcessTableMessenger, G4MatScanMessenger, G4RunMessenger, G4UserPhysicsListMessenger, G4TrackingMessenger, G4GMocrenMessenger, G4HepRepMessenger, G4VisCommandAbortReviewKeptEvents, G4VisCommandDrawOnlyToBeKeptEvents, G4VisCommandEnable, G4VisCommandList, G4VisCommandReviewKeptEvents, G4VisCommandVerbose, G4VisCommandGeometryList, G4VisCommandGeometryRestore, G4VisCommandGeometrySetColour, G4VisCommandGeometrySetDaughtersInvisible, G4VisCommandGeometrySetForceAuxEdgeVisible, G4VisCommandGeometrySetForceCloud, G4VisCommandGeometrySetForceSolid, G4VisCommandGeometrySetForceLineSegmentsPerCircle, G4VisCommandGeometrySetForceWireframe, G4VisCommandGeometrySetLineStyle, G4VisCommandGeometrySetLineWidth, G4VisCommandGeometrySetVisibility, G4VisCommandSceneActivateModel, G4VisCommandSceneCreate, G4VisCommandSceneEndOfEventAction, G4VisCommandSceneEndOfRunAction, G4VisCommandSceneList, G4VisCommandSceneNotifyHandlers, G4VisCommandSceneRemoveModel, G4VisCommandSceneSelect, G4VisCommandSceneShowExtents, G4VisCommandSceneAddArrow, G4VisCommandSceneAddArrow2D, G4VisCommandSceneAddAxes, G4VisCommandSceneAddDate, G4VisCommandSceneAddDigis, G4VisCommandSceneAddEventID, G4VisCommandSceneAddExtent, G4VisCommandSceneAddElectricField, G4VisCommandSceneAddFrame, G4VisCommandSceneAddGPS, G4VisCommandSceneAddGhosts, G4VisCommandSceneAddHits, G4VisCommandSceneAddLine, G4VisCommandSceneAddLine2D, G4VisCommandSceneAddLocalAxes, G4VisCommandSceneAddLogicalVolume, G4VisCommandSceneAddLogo, G4VisCommandSceneAddLogo2D, G4VisCommandSceneAddMagneticField, G4VisCommandSceneAddPSHits, G4VisCommandSceneAddScale, G4VisCommandSceneAddText, G4VisCommandSceneAddText2D, G4VisCommandSceneAddTrajectories, G4VisCommandSceneAddUserAction, G4VisCommandSceneAddVolume, G4VisCommandSceneAddPlotter, G4VisCommandSceneHandlerAttach, G4VisCommandSceneHandlerCreate, G4VisCommandSceneHandlerList, G4VisCommandSceneHandlerSelect, G4VisCommandSetArrow3DLineSegmentsPerCircle, G4VisCommandSetColour, G4VisCommandSetExtentForField, G4VisCommandSetLineWidth, G4VisCommandSetTextColour, G4VisCommandSetTextLayout, G4VisCommandSetTextSize, G4VisCommandSetTouchable, G4VisCommandSetVolumeForField, G4VisCommandsTouchable, G4VisCommandsTouchableSet, G4VisCommandViewerAddCutawayPlane, G4VisCommandViewerCentreOn, G4VisCommandViewerChangeCutawayPlane, G4VisCommandViewerClear, G4VisCommandViewerClearCutawayPlanes, G4VisCommandViewerClearTransients, G4VisCommandViewerClearVisAttributesModifiers, G4VisCommandViewerClone, G4VisCommandViewerColourByDensity, G4VisCommandViewerCopyViewFrom, G4VisCommandViewerCreate, G4VisCommandViewerDolly, G4VisCommandViewerFlush, G4VisCommandViewerInterpolate, G4VisCommandViewerList, G4VisCommandViewerPan, G4VisCommandViewerReset, G4VisCommandViewerRefresh, G4VisCommandViewerRebuild, G4VisCommandViewerSave, G4VisCommandViewerScale, G4VisCommandViewerSelect, G4VisCommandViewerUpdate, G4VisCommandViewerZoom, G4VisCommandViewerDefaultHiddenEdge, G4VisCommandViewerDefaultStyle, G4VisCommandsViewerSet, G4VModelCommand< T >, G4VModelCommand< M >, G4RTMessenger, G4ASCIITreeMessenger, G4VtkMessenger, G4PolarizationMessenger, and G4DNAChemistryManager.

Definition at line 58 of file G4UImessenger.cc.

59{
60 G4String nullString;
61 return nullString;
62}

Referenced by G4UIcommand::DoIt(), and G4UIcommand::GetCurrentValue().

◆ ItoS()

G4String G4UImessenger::ItoS ( G4int  i)
protectedinherited

Definition at line 82 of file G4UImessenger.cc.

83{
84 std::ostringstream os;
85 os << i;
86 return G4String(os.str());
87}

Referenced by G4GenericMessenger::DeclareMethod(), and G4ParticleGunMessenger::GetCurrentValue().

◆ operator!=()

G4bool G4UImessenger::operator!= ( const G4UImessenger messenger) const
inherited

Definition at line 76 of file G4UImessenger.cc.

77{
78 return this != &messenger;
79}

◆ operator==()

G4bool G4UImessenger::operator== ( const G4UImessenger messenger) const
inherited

Definition at line 70 of file G4UImessenger.cc.

71{
72 return this == &messenger;
73}

◆ SetHnActivationCmd()

void G4HnMessenger::SetHnActivationCmd ( )
private

Definition at line 79 of file G4HnMessenger.cc.

80{
81 auto hnId = new G4UIparameter("id", 'i', false);
82 hnId->SetGuidance(fHelper->Update("OBJECT id"));
83 hnId->SetParameterRange("id>=0");
84
85 auto hnActivation = new G4UIparameter("hnActivation", 's', true);
86 hnActivation->SetGuidance(fHelper->Update("OBJECT activation"));
87 hnActivation->SetDefaultValue("none");
88
90 = std::make_unique<G4UIcommand>(fHelper->Update("/analysis/HNTYPE_/setActivation"), this);
91 fSetHnActivationCmd->SetGuidance(
92 fHelper->Update("Set activation for the NDIM_D LOBJECT of given id"));
93 fSetHnActivationCmd->SetParameter(hnId);
94 fSetHnActivationCmd->SetParameter(hnActivation);
96}
@ G4State_Idle
@ G4State_PreInit
std::unique_ptr< G4UIcommand > fSetHnActivationCmd

References fHelper, fSetHnActivationCmd, G4State_Idle, and G4State_PreInit.

Referenced by G4HnMessenger().

◆ SetHnActivationToAllCmd()

void G4HnMessenger::SetHnActivationToAllCmd ( )
private

Definition at line 99 of file G4HnMessenger.cc.

100{
102 = std::make_unique<G4UIcmdWithABool>(fHelper->Update("/analysis/HNTYPE_/setActivationToAll"), this);
103 fSetHnActivationAllCmd->SetGuidance(
104 fHelper->Update("Set activation to all NDIM_D LOBJECTs"));
105 fSetHnActivationAllCmd->SetParameterName("Activation",false);
106}
std::unique_ptr< G4UIcmdWithABool > fSetHnActivationAllCmd

References fHelper, and fSetHnActivationAllCmd.

Referenced by G4HnMessenger().

◆ SetHnAsciiCmd()

void G4HnMessenger::SetHnAsciiCmd ( )
private

Definition at line 66 of file G4HnMessenger.cc.

67{
69 = std::make_unique<G4UIcmdWithAnInteger>(fHelper->Update("/analysis/HNTYPE_/setAscii"), this);
70 fSetHnAsciiCmd->SetGuidance(
71 fHelper->Update("Print NDIM_D LOBJECT of given id on ascii file."));
72
73 fSetHnAsciiCmd->SetParameterName("id",false);
74 fSetHnAsciiCmd->SetRange("id>=0");
75 fSetHnAsciiCmd->AvailableForStates(G4State_PreInit, G4State_Idle);
76}
std::unique_ptr< G4UIcmdWithAnInteger > fSetHnAsciiCmd

References fHelper, fSetHnAsciiCmd, G4State_Idle, and G4State_PreInit.

Referenced by G4HnMessenger().

◆ SetHnFileNameCmd()

void G4HnMessenger::SetHnFileNameCmd ( )
private

Definition at line 139 of file G4HnMessenger.cc.

140{
141 auto hnId = new G4UIparameter("id", 'i', false);
142 hnId->SetGuidance(fHelper->Update("OBJECT id"));
143 hnId->SetParameterRange("id>=0");
144
145 auto hnFileName = new G4UIparameter("hnFileName", 's', true);
146 hnFileName->SetGuidance(fHelper->Update("OBJECT output file name"));
147 hnFileName->SetDefaultValue("none");
148
150 = std::make_unique<G4UIcommand>(fHelper->Update("/analysis/HNTYPE_/setFileName"), this);
151 fSetHnFileNameCmd->SetGuidance(
152 fHelper->Update("Set the NDIM_D LOBJECT of given id output file name"));
153 fSetHnFileNameCmd->SetParameter(hnId);
154 fSetHnFileNameCmd->SetParameter(hnFileName);
155 fSetHnFileNameCmd->AvailableForStates(G4State_PreInit, G4State_Idle);
156}
std::unique_ptr< G4UIcommand > fSetHnFileNameCmd

References fHelper, fSetHnFileNameCmd, G4State_Idle, and G4State_PreInit.

Referenced by G4HnMessenger().

◆ SetHnFileNameToAllCmd()

void G4HnMessenger::SetHnFileNameToAllCmd ( )
private

Definition at line 159 of file G4HnMessenger.cc.

160{
162 = std::make_unique<G4UIcmdWithAString>(fHelper->Update("/analysis/HNTYPE_/setFileNameToAll"), this);
163 fSetHnFileNameAllCmd->SetGuidance(
164 fHelper->Update("Set output file name for all NDIM_D LOBJECTs"));
165 fSetHnFileNameAllCmd->SetParameterName("FileName",false);
166}
std::unique_ptr< G4UIcmdWithAString > fSetHnFileNameAllCmd

References fHelper, and fSetHnFileNameAllCmd.

Referenced by G4HnMessenger().

◆ SetHnPlottingCmd()

void G4HnMessenger::SetHnPlottingCmd ( )
private

Definition at line 109 of file G4HnMessenger.cc.

110{
111 auto hnId = new G4UIparameter("id", 'i', false);
112 hnId->SetGuidance(fHelper->Update("OBJECT id"));
113 hnId->SetParameterRange("id>=0");
114
115 auto hnPlotting = new G4UIparameter("hnPlotting", 's', true);
116 hnPlotting->SetGuidance(fHelper->Update("(In)Activate OBJECT plotting"));
117 hnPlotting->SetDefaultValue("none");
118
120 = std::make_unique<G4UIcommand>(fHelper->Update("/analysis/HNTYPE_/setPlotting"), this);
121 fSetHnPlottingCmd->SetGuidance(
122 fHelper->Update("(In)Activate batch plotting of the NDIM_D LOBJECT of given id"));
123 fSetHnPlottingCmd->SetParameter(hnId);
124 fSetHnPlottingCmd->SetParameter(hnPlotting);
125 fSetHnPlottingCmd->AvailableForStates(G4State_PreInit, G4State_Idle);
126}
std::unique_ptr< G4UIcommand > fSetHnPlottingCmd

References fHelper, fSetHnPlottingCmd, G4State_Idle, and G4State_PreInit.

Referenced by G4HnMessenger().

◆ SetHnPlottingToAllCmd()

void G4HnMessenger::SetHnPlottingToAllCmd ( )
private

Definition at line 129 of file G4HnMessenger.cc.

130{
132 = std::make_unique<G4UIcmdWithABool>(fHelper->Update("/analysis/HNTYPE_/setPlottingToAll"), this);
133 fSetHnPlottingAllCmd->SetGuidance(
134 fHelper->Update("(In)Activate batch plotting of all NDIM_D LOBJECTs"));
135 fSetHnPlottingAllCmd->SetParameterName("Plotting",false);
136}
std::unique_ptr< G4UIcmdWithABool > fSetHnPlottingAllCmd

References fHelper, and fSetHnPlottingAllCmd.

Referenced by G4HnMessenger().

◆ SetNewValue()

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

Reimplemented from G4UImessenger.

Definition at line 173 of file G4HnMessenger.cc.

174{
175 if ( command == fSetHnAsciiCmd.get() ) {
176 auto id = fSetHnAsciiCmd->GetNewIntValue(newValues);
177 fManager.SetAscii(id, true);
178 }
179 else if ( command == fSetHnActivationCmd.get() ) {
180 // tokenize parameters in a vector
181 std::vector<G4String> parameters;
182 G4Analysis::Tokenize(newValues, parameters);
183 // check consistency
184 if ( parameters.size() == command->GetParameterEntries() ) {
185 auto counter = 0;
186 auto id = G4UIcommand::ConvertToInt(parameters[counter++]);
187 auto activation = G4UIcommand::ConvertToBool(parameters[counter++]);
188 fManager.SetActivation(id, activation);
189 }
190 else {
191 // Should never happen but let's check anyway for consistency
192 fHelper->WarnAboutParameters(command, parameters.size());
193 }
194 }
195 else if ( command == fSetHnActivationAllCmd.get() ) {
196 auto activation = fSetHnActivationAllCmd->GetNewBoolValue(newValues);
197 fManager.SetActivation(activation);
198 }
199 else if ( command == fSetHnPlottingCmd.get() ) {
200 // tokenize parameters in a vector
201 std::vector<G4String> parameters;
202 G4Analysis::Tokenize(newValues, parameters);
203 // check consistency
204 if ( parameters.size() == command->GetParameterEntries() ) {
205 auto counter = 0;
206 auto id = G4UIcommand::ConvertToInt(parameters[counter++]);
207 auto activation = G4UIcommand::ConvertToBool(parameters[counter++]);
208 fManager.SetPlotting(id, activation);
209 }
210 else {
211 // Should never happen but let's check anyway for consistency
212 fHelper->WarnAboutParameters(command, parameters.size());
213 }
214 }
215 else if ( command == fSetHnPlottingAllCmd.get() ) {
216 auto activation = fSetHnPlottingAllCmd->GetNewBoolValue(newValues);
217 fManager.SetPlotting(activation);
218 }
219 else if ( command == fSetHnFileNameCmd.get() ) {
220 // tokenize parameters in a vector
221 std::vector<G4String> parameters;
222 G4Analysis::Tokenize(newValues, parameters);
223 // check consistency
224 if ( parameters.size() == command->GetParameterEntries() ) {
225 auto counter = 0;
226 auto id = G4UIcommand::ConvertToInt(parameters[counter++]);
227 auto fileName = parameters[counter++];
228 fManager.SetFileName(id, fileName);
229 }
230 else {
231 // Should never happen but let's check anyway for consistency
232 fHelper->WarnAboutParameters(command, parameters.size());
233 }
234 }
235 else if ( command == fSetHnFileNameAllCmd.get() ) {
236 auto fileName = newValues;
237 fManager.SetFileName(fileName);
238 }
239}
void SetActivation(G4bool activation)
Definition: G4HnManager.cc:196
void SetFileName(G4int id, const G4String &fileName)
Definition: G4HnManager.cc:248
void SetAscii(G4int id, G4bool ascii)
Definition: G4HnManager.cc:210
void SetPlotting(G4int id, G4bool plotting)
Definition: G4HnManager.cc:228
std::size_t GetParameterEntries() const
Definition: G4UIcommand.hh:138
static G4int ConvertToInt(const char *st)
Definition: G4UIcommand.cc:557
static G4bool ConvertToBool(const char *st)
Definition: G4UIcommand.cc:545
void Tokenize(const G4String &line, std::vector< G4String > &tokens)

References G4UIcommand::ConvertToBool(), G4UIcommand::ConvertToInt(), fHelper, fManager, fSetHnActivationAllCmd, fSetHnActivationCmd, fSetHnAsciiCmd, fSetHnFileNameAllCmd, fSetHnFileNameCmd, fSetHnPlottingAllCmd, fSetHnPlottingCmd, G4UIcommand::GetParameterEntries(), G4HnManager::SetActivation(), G4HnManager::SetAscii(), G4HnManager::SetFileName(), G4HnManager::SetPlotting(), and G4Analysis::Tokenize().

◆ StoB()

G4bool G4UImessenger::StoB ( G4String  s)
protectedinherited

Definition at line 137 of file G4UImessenger.cc.

138{
140 G4bool vl = false;
141 if(v == "Y" || v == "YES" || v == "1" || v == "T" || v == "TRUE")
142 {
143 vl = true;
144 }
145 return vl;
146}
bool G4bool
Definition: G4Types.hh:86
G4String to_upper_copy(G4String str)
Return uppercase copy of string.

References G4StrUtil::to_upper_copy().

Referenced by G4LocalThreadCoutMessenger::SetNewValue(), G4CascadeParamMessenger::SetNewValue(), G4ScoreQuantityMessenger::SetNewValue(), and G4ScoringMessenger::SetNewValue().

◆ StoD()

G4double G4UImessenger::StoD ( G4String  s)
protectedinherited

◆ StoI()

G4int G4UImessenger::StoI ( G4String  s)
protectedinherited

◆ StoL()

G4long G4UImessenger::StoL ( G4String  s)
protectedinherited

Definition at line 117 of file G4UImessenger.cc.

118{
119 G4long vl;
120 const char* t = str;
121 std::istringstream is(t);
122 is >> vl;
123 return vl;
124}
long G4long
Definition: G4Types.hh:87

Referenced by G4RunMessenger::SetNewValue().

Field Documentation

◆ baseDir

G4UIdirectory* G4UImessenger::baseDir = nullptr
protectedinherited

◆ baseDirName

G4String G4UImessenger::baseDirName = ""
protectedinherited

◆ commandsShouldBeInMaster

G4bool G4UImessenger::commandsShouldBeInMaster = false
protectedinherited

◆ fHelper

std::unique_ptr<G4AnalysisMessengerHelper> G4HnMessenger::fHelper
private

◆ fManager

G4HnManager& G4HnMessenger::fManager
private

Associated class.

Definition at line 66 of file G4HnMessenger.hh.

Referenced by G4HnMessenger(), and SetNewValue().

◆ fSetHnActivationAllCmd

std::unique_ptr<G4UIcmdWithABool> G4HnMessenger::fSetHnActivationAllCmd
private

Definition at line 71 of file G4HnMessenger.hh.

Referenced by SetHnActivationToAllCmd(), and SetNewValue().

◆ fSetHnActivationCmd

std::unique_ptr<G4UIcommand> G4HnMessenger::fSetHnActivationCmd
private

Definition at line 70 of file G4HnMessenger.hh.

Referenced by SetHnActivationCmd(), and SetNewValue().

◆ fSetHnAsciiCmd

std::unique_ptr<G4UIcmdWithAnInteger> G4HnMessenger::fSetHnAsciiCmd
private

Definition at line 69 of file G4HnMessenger.hh.

Referenced by SetHnAsciiCmd(), and SetNewValue().

◆ fSetHnFileNameAllCmd

std::unique_ptr<G4UIcmdWithAString> G4HnMessenger::fSetHnFileNameAllCmd
private

Definition at line 75 of file G4HnMessenger.hh.

Referenced by SetHnFileNameToAllCmd(), and SetNewValue().

◆ fSetHnFileNameCmd

std::unique_ptr<G4UIcommand> G4HnMessenger::fSetHnFileNameCmd
private

Definition at line 74 of file G4HnMessenger.hh.

Referenced by SetHnFileNameCmd(), and SetNewValue().

◆ fSetHnPlottingAllCmd

std::unique_ptr<G4UIcmdWithABool> G4HnMessenger::fSetHnPlottingAllCmd
private

Definition at line 73 of file G4HnMessenger.hh.

Referenced by SetHnPlottingToAllCmd(), and SetNewValue().

◆ fSetHnPlottingCmd

std::unique_ptr<G4UIcommand> G4HnMessenger::fSetHnPlottingCmd
private

Definition at line 72 of file G4HnMessenger.hh.

Referenced by SetHnPlottingCmd(), and SetNewValue().


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