48 fSetHnAsciiCmd(nullptr),
49 fSetHnActivationCmd(nullptr),
50 fSetHnActivationAllCmd(nullptr),
51 fSetHnPlottingCmd(nullptr),
52 fSetHnPlottingAllCmd(nullptr)
56 fHelper = G4Analysis::make_unique<G4AnalysisMessengerHelper>(hnType);
77 = G4Analysis::make_unique<G4UIcmdWithAnInteger>(
fHelper->Update(
"/analysis/HNTYPE_/setAscii"),
this);
79 fHelper->Update(
"Print NDIM_D LOBJECT of given id on ascii file."));
90 hnId->SetGuidance(
fHelper->Update(
"OBJECT id"));
91 hnId->SetParameterRange(
"id>=0");
93 auto hnActivation =
new G4UIparameter(
"hnActivation",
's',
true);
94 hnActivation->SetGuidance(
fHelper->Update(
"OBJECT activation"));
95 hnActivation->SetDefaultValue(
"none");
98 = G4Analysis::make_unique<G4UIcommand>(
fHelper->Update(
"/analysis/HNTYPE_/setActivation"),
this);
100 fHelper->Update(
"Set activation for the NDIM_D LOBJECT of given id"));
110 = G4Analysis::make_unique<G4UIcmdWithABool>(
fHelper->Update(
"/analysis/HNTYPE_/setActivationToAll"),
this);
112 fHelper->Update(
"Set activation to all NDIM_D LOBJECTs"));
120 hnId->SetGuidance(
fHelper->Update(
"OBJECT id"));
121 hnId->SetParameterRange(
"id>=0");
123 auto hnPlotting =
new G4UIparameter(
"hnPlotting",
's',
true);
124 hnPlotting->SetGuidance(
fHelper->Update(
"(In)Activate OBJECT plotting"));
125 hnPlotting->SetDefaultValue(
"none");
128 = G4Analysis::make_unique<G4UIcommand>(
fHelper->Update(
"/analysis/HNTYPE_/setPlotting"),
this);
130 fHelper->Update(
"(In)Activate batch plotting of the NDIM_D LOBJECT of given id"));
140 = G4Analysis::make_unique<G4UIcmdWithABool>(
fHelper->Update(
"/analysis/HNTYPE_/setPlottingToAll"),
this);
142 fHelper->Update(
"(In)Activate batch plotting of all NDIM_D LOBJECTs"));
159 std::vector<G4String> parameters;
170 fHelper->WarnAboutParameters(command, parameters.size());
179 std::vector<G4String> parameters;
190 fHelper->WarnAboutParameters(command, parameters.size());
std::unique_ptr< G4UIcmdWithABool > fSetHnActivationAllCmd
void SetHnPlottingToAllCmd()
G4HnManager & fManager
Associated class.
G4String GetHnType() const
virtual void SetNewValue(G4UIcommand *command, G4String value) final
std::unique_ptr< G4AnalysisMessengerHelper > fHelper
std::unique_ptr< G4UIcommand > fSetHnPlottingCmd
void SetPlotting(G4bool plotting)
static G4bool ConvertToBool(const char *st)
std::unique_ptr< G4UIcmdWithAnInteger > fSetHnAsciiCmd
void SetAscii(G4int id, G4bool ascii)
static G4int ConvertToInt(const char *st)
G4HnMessenger(G4HnManager &manager)
std::unique_ptr< G4UIcommand > fSetHnActivationCmd
void Tokenize(const G4String &line, std::vector< G4String > &tokens)
void SetHnActivationCmd()
std::unique_ptr< G4UIcmdWithABool > fSetHnPlottingAllCmd
G4int GetParameterEntries() const
void SetActivation(G4bool activation)
void SetHnActivationToAllCmd()