47 fHelper = std::make_unique<G4AnalysisMessengerHelper>(hnType);
69 = std::make_unique<G4UIcmdWithAnInteger>(
fHelper->Update(
"/analysis/HNTYPE_/setAscii"),
this);
71 fHelper->Update(
"Print NDIM_D LOBJECT of given id on ascii file."));
82 hnId->SetGuidance(
fHelper->Update(
"OBJECT id"));
83 hnId->SetParameterRange(
"id>=0");
85 auto hnActivation =
new G4UIparameter(
"hnActivation",
's',
true);
86 hnActivation->SetGuidance(
fHelper->Update(
"OBJECT activation"));
87 hnActivation->SetDefaultValue(
"none");
90 = std::make_unique<G4UIcommand>(
fHelper->Update(
"/analysis/HNTYPE_/setActivation"),
this);
92 fHelper->Update(
"Set activation for the NDIM_D LOBJECT of given id"));
102 = std::make_unique<G4UIcmdWithABool>(
fHelper->Update(
"/analysis/HNTYPE_/setActivationToAll"),
this);
104 fHelper->Update(
"Set activation to all NDIM_D LOBJECTs"));
112 hnId->SetGuidance(
fHelper->Update(
"OBJECT id"));
113 hnId->SetParameterRange(
"id>=0");
115 auto hnPlotting =
new G4UIparameter(
"hnPlotting",
's',
true);
116 hnPlotting->SetGuidance(
fHelper->Update(
"(In)Activate OBJECT plotting"));
117 hnPlotting->SetDefaultValue(
"none");
120 = std::make_unique<G4UIcommand>(
fHelper->Update(
"/analysis/HNTYPE_/setPlotting"),
this);
122 fHelper->Update(
"(In)Activate batch plotting of the NDIM_D LOBJECT of given id"));
132 = std::make_unique<G4UIcmdWithABool>(
fHelper->Update(
"/analysis/HNTYPE_/setPlottingToAll"),
this);
134 fHelper->Update(
"(In)Activate batch plotting of all NDIM_D LOBJECTs"));
142 hnId->SetGuidance(
fHelper->Update(
"OBJECT id"));
143 hnId->SetParameterRange(
"id>=0");
145 auto hnFileName =
new G4UIparameter(
"hnFileName",
's',
true);
146 hnFileName->SetGuidance(
fHelper->Update(
"OBJECT output file name"));
147 hnFileName->SetDefaultValue(
"none");
150 = std::make_unique<G4UIcommand>(
fHelper->Update(
"/analysis/HNTYPE_/setFileName"),
this);
152 fHelper->Update(
"Set the NDIM_D LOBJECT of given id output file name"));
162 = std::make_unique<G4UIcmdWithAString>(
fHelper->Update(
"/analysis/HNTYPE_/setFileNameToAll"),
this);
164 fHelper->Update(
"Set output file name for all NDIM_D LOBJECTs"));
181 std::vector<G4String> parameters;
192 fHelper->WarnAboutParameters(command, parameters.size());
201 std::vector<G4String> parameters;
212 fHelper->WarnAboutParameters(command, parameters.size());
221 std::vector<G4String> parameters;
227 auto fileName = parameters[counter++];
232 fHelper->WarnAboutParameters(command, parameters.size());
236 auto fileName = newValues;
void SetActivation(G4bool activation)
void SetFileName(G4int id, const G4String &fileName)
void SetAscii(G4int id, G4bool ascii)
G4String GetHnType() const
void SetPlotting(G4int id, G4bool plotting)
std::unique_ptr< G4UIcmdWithAString > fSetHnFileNameAllCmd
std::unique_ptr< G4UIcmdWithABool > fSetHnActivationAllCmd
G4HnManager & fManager
Associated class.
std::unique_ptr< G4UIcommand > fSetHnPlottingCmd
std::unique_ptr< G4UIcmdWithABool > fSetHnPlottingAllCmd
std::unique_ptr< G4AnalysisMessengerHelper > fHelper
std::unique_ptr< G4UIcommand > fSetHnActivationCmd
void SetHnActivationToAllCmd()
std::unique_ptr< G4UIcmdWithAnInteger > fSetHnAsciiCmd
void SetHnActivationCmd()
std::unique_ptr< G4UIcommand > fSetHnFileNameCmd
void SetHnPlottingToAllCmd()
virtual void SetNewValue(G4UIcommand *command, G4String value) final
void SetHnFileNameToAllCmd()
std::size_t GetParameterEntries() const
static G4int ConvertToInt(const char *st)
static G4bool ConvertToBool(const char *st)
void Tokenize(const G4String &line, std::vector< G4String > &tokens)
G4String to_lower_copy(G4String str)
Return lowercased copy of string.