40 using namespace G4Analysis;
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< G4UIcommand > fSetHnPlottingCmd
void SetPlotting(G4bool plotting)
std::unique_ptr< G4UIcmdWithAnInteger > fSetHnAsciiCmd
G4HnMessenger(G4HnManager &manager)
static G4bool ConvertToBool(const char *st)
void SetHnActivationToAllCmd()
static G4int ConvertToInt(const char *st)
void SetActivation(G4bool activation)
void Tokenize(const G4String &line, std::vector< G4String > &tokens)
void SetAscii(G4int id, G4bool ascii)
std::unique_ptr< G4UIcommand > fSetHnActivationCmd
G4HnManager & fManager
Associated class.
std::unique_ptr< G4AnalysisMessengerHelper > fHelper
G4String GetHnType() const
void SetHnActivationCmd()
G4int GetParameterEntries() const
void SetHnPlottingToAllCmd()
virtual void SetNewValue(G4UIcommand *command, G4String value) final
std::unique_ptr< G4UIcmdWithABool > fSetHnPlottingAllCmd
std::unique_ptr< G4UIcmdWithABool > fSetHnActivationAllCmd