39 using namespace G4Analysis;
47 fSetHnAsciiCmd(nullptr),
48 fSetHnActivationCmd(nullptr),
49 fSetHnActivationAllCmd(nullptr),
50 fSetHnPlottingCmd(nullptr),
51 fSetHnPlottingAllCmd(nullptr)
55 fHelper = G4Analysis::make_unique<G4AnalysisMessengerHelper>(hnType);
76 = G4Analysis::make_unique<G4UIcmdWithAnInteger>(
fHelper->Update(
"/analysis/HNTYPE_/setAscii"),
this);
78 fHelper->Update(
"Print NDIM_D LOBJECT of given id on ascii file."));
89 hnId->SetGuidance(
fHelper->Update(
"OBJECT id"));
90 hnId->SetParameterRange(
"id>=0");
92 auto hnActivation =
new G4UIparameter(
"hnActivation",
's',
true);
93 hnActivation->SetGuidance(
fHelper->Update(
"OBJECT activation"));
94 hnActivation->SetDefaultValue(
"none");
97 = G4Analysis::make_unique<G4UIcommand>(
fHelper->Update(
"/analysis/HNTYPE_/setActivation"),
this);
99 fHelper->Update(
"Set activation for the NDIM_D LOBJECT of given id"));
109 = G4Analysis::make_unique<G4UIcmdWithABool>(
fHelper->Update(
"/analysis/HNTYPE_/setActivationToAll"),
this);
111 fHelper->Update(
"Set activation to all NDIM_D LOBJECTs"));
119 hnId->SetGuidance(
fHelper->Update(
"OBJECT id"));
120 hnId->SetParameterRange(
"id>=0");
122 auto hnPlotting =
new G4UIparameter(
"hnPlotting",
's',
true);
123 hnPlotting->SetGuidance(
fHelper->Update(
"(In)Activate OBJECT plotting"));
124 hnPlotting->SetDefaultValue(
"none");
127 = G4Analysis::make_unique<G4UIcommand>(
fHelper->Update(
"/analysis/HNTYPE_/setPlotting"),
this);
129 fHelper->Update(
"(In)Activate batch plotting of the NDIM_D LOBJECT of given id"));
139 = G4Analysis::make_unique<G4UIcmdWithABool>(
fHelper->Update(
"/analysis/HNTYPE_/setPlottingToAll"),
this);
141 fHelper->Update(
"(In)Activate batch plotting of all NDIM_D LOBJECTs"));
169 fHelper->WarnAboutParameters(command, parameters.size());
189 fHelper->WarnAboutParameters(command, parameters.size());