Geant4-11
G4H3Messenger.cc
Go to the documentation of this file.
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26
27// Author: Ivana Hrivnacova, 24/07/2014 (ivana@ipno.in2p3.fr)
28
29#include "G4H3Messenger.hh"
30#include "G4VAnalysisManager.hh"
31
32#include "G4UIdirectory.hh"
33#include "G4UIcommand.hh"
34#include "G4UIparameter.hh"
35
36using namespace G4Analysis;
37
38//_____________________________________________________________________________
40 : G4UImessenger(),
41 fManager(manager)
42{
43 fHelper = std::make_unique<G4AnalysisMessengerHelper>("h3");
44
45 fDirectory = fHelper->CreateHnDirectory();
46
48
49 SetH3Cmd();
50 fSetH3XCmd = fHelper->CreateSetBinsCommand("x", this);
51 fSetH3YCmd = fHelper->CreateSetBinsCommand("y", this);
52
53 fSetH3TitleCmd = fHelper->CreateSetTitleCommand(this);
54 fSetH3XAxisCmd = fHelper->CreateSetAxisCommand("x", this);
55 fSetH3YAxisCmd = fHelper->CreateSetAxisCommand("y", this);
56 fSetH3ZAxisCmd = fHelper->CreateSetAxisCommand("z", this);
57 fSetH3XAxisLogCmd = fHelper->CreateSetAxisLogCommand("x", this);
58 fSetH3YAxisLogCmd = fHelper->CreateSetAxisLogCommand("y", this);
59 fSetH3ZAxisLogCmd = fHelper->CreateSetAxisLogCommand("z", this);
60}
61
62//_____________________________________________________________________________
64
65//
66// private functions
67//
68
69//_____________________________________________________________________________
71{
72 auto h3Name = new G4UIparameter("name", 's', false);
73 h3Name->SetGuidance("Histogram name (label)");
74
75 auto h3Title = new G4UIparameter("title", 's', false);
76 h3Title->SetGuidance("Histogram title");
77
78 auto h3xNbins0 = new G4UIparameter("xnbins0", 'i', true);
79 h3xNbins0->SetGuidance("Number of x-bins (default = 100)");
80 h3xNbins0->SetGuidance("Can be reset with /analysis/h3/set command");
81 h3xNbins0->SetDefaultValue(100);
82
83 auto h3xValMin0 = new G4UIparameter("xvalMin0", 'd', true);
84 h3xValMin0->SetGuidance("Minimum x-value, expressed in unit (default = 0.)");
85 h3xValMin0->SetGuidance("Can be reset with /analysis/h3/set command");
86 h3xValMin0->SetDefaultValue(0.);
87
88 auto h3xValMax0 = new G4UIparameter("xvalMax0", 'd', true);
89 h3xValMax0->SetGuidance("Maximum x-value, expressed in unit (default = 1.)");
90 h3xValMax0->SetGuidance("Can be reset with /analysis/h3/set command");
91 h3xValMax0->SetDefaultValue(1.);
92
93 auto h3xValUnit0 = new G4UIparameter("xvalUnit0", 's', true);
94 h3xValUnit0->SetGuidance("The unit applied to filled x-values and xvalMin0, xvalMax0");
95 h3xValUnit0->SetDefaultValue("none");
96
97 auto h3xValFcn0 = new G4UIparameter("xvalFcn0", 's', true);
98 G4String fcnxGuidance = "The function applied to filled x-values (log, log10, exp, none).";
99 h3xValFcn0->SetGuidance(fcnxGuidance);
100 h3xValFcn0->SetParameterCandidates("log log10 exp none");
101 h3xValFcn0->SetDefaultValue("none");
102
103 auto h3xValBinScheme0 = new G4UIparameter("xvalBinScheme0", 's', true);
104 G4String xbinSchemeGuidance = "The binning scheme (linear, log).";
105 h3xValBinScheme0->SetParameterCandidates("linear log");
106 h3xValBinScheme0->SetGuidance(xbinSchemeGuidance);
107 h3xValBinScheme0->SetDefaultValue("linear");
108
109 auto h3yNbins0 = new G4UIparameter("ynbins0", 'i', true);
110 h3yNbins0->SetGuidance("Number of y-bins (default = 100)");
111 h3yNbins0->SetGuidance("Can be reset with /analysis/h3/set command");
112 h3yNbins0->SetDefaultValue(100);
113
114 auto h3yValMin0 = new G4UIparameter("yvalMin0", 'd', true);
115 h3yValMin0->SetGuidance("Minimum y-value, expressed in unit (default = 0.)");
116 h3yValMin0->SetGuidance("Can be reset with /analysis/h3/set command");
117 h3yValMin0->SetDefaultValue(0.);
118
119 auto h3yValMax0 = new G4UIparameter("yvalMax0", 'd', true);
120 h3yValMax0->SetGuidance("Maximum y-value, expressed in unit (default = 1.)");
121 h3yValMax0->SetGuidance("Can be reset with /analysis/h3/set command");
122 h3yValMax0->SetDefaultValue(1.);
123
124 auto h3yValUnit0 = new G4UIparameter("yvalUnit0", 's', true);
125 h3yValUnit0->SetGuidance("The unit applied to filled y-values and yvalMin0, yvalMax0");
126 h3yValUnit0->SetDefaultValue("none");
127
128 auto h3yValFcn0 = new G4UIparameter("yvalFcn0", 's', true);
129 G4String fcnyGuidance = "The function applied to filled y-values (log, log10, exp, none).";
130 h3yValFcn0->SetGuidance(fcnyGuidance);
131 h3yValFcn0->SetParameterCandidates("log log10 exp none");
132 h3yValFcn0->SetDefaultValue("none");
133
134 auto h3yValBinScheme0 = new G4UIparameter("yvalBinScheme0", 's', true);
135 G4String ybinSchemeGuidance = "The binning scheme (linear, log).";
136 h3yValBinScheme0->SetParameterCandidates("linear log");
137 h3yValBinScheme0->SetGuidance(ybinSchemeGuidance);
138 h3yValBinScheme0->SetDefaultValue("linear");
139
140 auto h3zNbins0 = new G4UIparameter("znbins0", 'i', true);
141 h3zNbins0->SetGuidance("Number of z-bins (default = 100)");
142 h3zNbins0->SetGuidance("Can be reset with /analysis/h3/set command");
143 h3zNbins0->SetDefaultValue(100);
144
145 auto h3zValMin0 = new G4UIparameter("zvalMin0", 'd', true);
146 h3zValMin0->SetGuidance("Minimum z-value, expressed in unit (default = 0.)");
147 h3zValMin0->SetGuidance("Can be reset with /analysis/h3/set command");
148 h3zValMin0->SetDefaultValue(0.);
149
150 auto h3zValMax0 = new G4UIparameter("zvalMax0", 'd', true);
151 h3zValMax0->SetGuidance("Maximum z-value, expressed in unit (default = 1.)");
152 h3zValMax0->SetGuidance("Can be reset with /analysis/h3/set command");
153 h3zValMax0->SetDefaultValue(1.);
154
155 auto h3zValUnit0 = new G4UIparameter("zvalUnit0", 's', true);
156 h3zValUnit0->SetGuidance("The unit applied to filled z-values and zvalMin0, zvalMax0");
157 h3zValUnit0->SetDefaultValue("none");
158
159 auto h3zValFcn0 = new G4UIparameter("zvalFcn0", 's', true);
160 G4String fcnzGuidance = "The function applied to filled z-values (log, log10, exp, none).";
161 h3zValFcn0->SetGuidance(fcnzGuidance);
162 h3zValFcn0->SetParameterCandidates("log log10 exp none");
163 h3zValFcn0->SetDefaultValue("none");
164
165 auto h3zValBinScheme0 = new G4UIparameter("zvalBinScheme0", 's', true);
166 G4String zbinSchemeGuidance = "The binning scheme (linear, log).";
167 h3zValBinScheme0->SetParameterCandidates("linear log");
168 h3zValBinScheme0->SetGuidance(zbinSchemeGuidance);
169 h3zValBinScheme0->SetDefaultValue("linear");
170
171 fCreateH3Cmd = std::make_unique<G4UIcommand>("/analysis/h3/create", this);
172 fCreateH3Cmd->SetGuidance("Create 3D histogram");
173 fCreateH3Cmd->SetParameter(h3Name);
174 fCreateH3Cmd->SetParameter(h3Title);
175 fCreateH3Cmd->SetParameter(h3xNbins0);
176 fCreateH3Cmd->SetParameter(h3xValMin0);
177 fCreateH3Cmd->SetParameter(h3xValMax0);
178 fCreateH3Cmd->SetParameter(h3xValUnit0);
179 fCreateH3Cmd->SetParameter(h3xValFcn0);
180 fCreateH3Cmd->SetParameter(h3xValBinScheme0);
181 fCreateH3Cmd->SetParameter(h3yNbins0);
182 fCreateH3Cmd->SetParameter(h3yValMin0);
183 fCreateH3Cmd->SetParameter(h3yValMax0);
184 fCreateH3Cmd->SetParameter(h3yValUnit0);
185 fCreateH3Cmd->SetParameter(h3yValFcn0);
186 fCreateH3Cmd->SetParameter(h3yValBinScheme0);
187 fCreateH3Cmd->SetParameter(h3zNbins0);
188 fCreateH3Cmd->SetParameter(h3zValMin0);
189 fCreateH3Cmd->SetParameter(h3zValMax0);
190 fCreateH3Cmd->SetParameter(h3zValUnit0);
191 fCreateH3Cmd->SetParameter(h3zValFcn0);
192 fCreateH3Cmd->SetParameter(h3zValBinScheme0);
193 fCreateH3Cmd->AvailableForStates(G4State_PreInit, G4State_Idle);
194}
195
196
197//_____________________________________________________________________________
199{
200 auto h3Id = new G4UIparameter("id", 'i', false);
201 h3Id->SetGuidance("Histogram id");
202 h3Id->SetParameterRange("id>=0");
203
204 auto h3xNbins = new G4UIparameter("xnbins", 'i', false);
205 h3xNbins->SetGuidance("Number of x-bins");
206
207 auto h3xValMin = new G4UIparameter("xvalMin", 'd', false);
208 h3xValMin->SetGuidance("Minimum x-value, expressed in unit");
209
210 auto h3xValMax = new G4UIparameter("xvalMax", 'd', false);
211 h3xValMax->SetGuidance("Maximum x-value, expressed in unit");
212
213 auto h3xValUnit = new G4UIparameter("xvalUnit", 's', false);
214 h3xValUnit->SetGuidance("The unit applied to filled x-values and xvalMin0, xvalMax0");
215 h3xValUnit->SetDefaultValue("none");
216
217 auto h3xValFcn = new G4UIparameter("xvalFcn", 's', false);
218 h3xValFcn->SetParameterCandidates("log log10 exp none");
219 G4String fcnxGuidance = "The function applied to filled x-values (log, log10, exp, none).";
220 h3xValFcn->SetGuidance(fcnxGuidance);
221 h3xValFcn->SetDefaultValue("none");
222
223 auto h3xValBinScheme = new G4UIparameter("xvalBinScheme", 's', true);
224 G4String xbinSchemeGuidance = "The binning scheme (linear, log).";
225 h3xValBinScheme->SetParameterCandidates("linear log");
226 h3xValBinScheme->SetGuidance(xbinSchemeGuidance);
227 h3xValBinScheme->SetDefaultValue("linear");
228
229 auto h3yNbins = new G4UIparameter("nybins", 'i', false);
230 h3yNbins->SetGuidance("Number of y-bins");
231
232 auto h3yValMin = new G4UIparameter("yvalMin", 'd', false);
233 h3yValMin->SetGuidance("Minimum y-value, expressed in unit");
234
235 auto h3yValMax = new G4UIparameter("yvalMax", 'd', false);
236 h3yValMax->SetGuidance("Maximum y-value, expressed in unit");
237
238 auto h3yValUnit = new G4UIparameter("yvalUnit", 's', true);
239 h3yValUnit->SetGuidance("The unit applied to filled y-values and yvalMin0, yvalMax0");
240 h3yValUnit->SetDefaultValue("none");
241
242 auto h3yValFcn = new G4UIparameter("yvalFcn", 's', false);
243 h3yValFcn->SetParameterCandidates("log log10 exp none");
244 G4String fcnyGuidance = "The function applied to filled y-values (log, log10, exp, none).";
245 h3yValFcn->SetGuidance(fcnyGuidance);
246 h3yValFcn->SetDefaultValue("none");
247
248 auto h3yValBinScheme = new G4UIparameter("yvalBinScheme", 's', true);
249 G4String ybinSchemeGuidance = "The binning scheme (linear, log).";
250 h3yValBinScheme->SetParameterCandidates("linear log");
251 h3yValBinScheme->SetGuidance(ybinSchemeGuidance);
252 h3yValBinScheme->SetDefaultValue("linear");
253
254 auto h3zNbins = new G4UIparameter("nzbins", 'i', false);
255 h3zNbins->SetGuidance("Number of z-bins");
256
257 auto h3zValMin = new G4UIparameter("zvalMin", 'd', false);
258 h3zValMin->SetGuidance("Minimum z-value, expressed in unit");
259
260 auto h3zValMax = new G4UIparameter("zvalMax", 'd', false);
261 h3zValMax->SetGuidance("Maximum z-value, expressed in unit");
262
263 auto h3zValUnit = new G4UIparameter("zvalUnit", 's', true);
264 h3zValUnit->SetGuidance("The unit applied to filled z-values and zvalMin0, zvalMax0");
265 h3zValUnit->SetDefaultValue("none");
266
267 auto h3zValFcn = new G4UIparameter("zvalFcn", 's', false);
268 h3zValFcn->SetParameterCandidates("log log10 exp none");
269 G4String fcnzGuidance = "The function applied to filled z-values (log, log10, exp, none).";
270 h3zValFcn->SetGuidance(fcnzGuidance);
271 h3zValFcn->SetDefaultValue("none");
272
273 auto h3zValBinScheme = new G4UIparameter("zvalBinScheme", 's', true);
274 G4String zbinSchemeGuidance = "The binning scheme (linear, log).";
275 h3zValBinScheme->SetParameterCandidates("linear log");
276 h3zValBinScheme->SetGuidance(zbinSchemeGuidance);
277 h3zValBinScheme->SetDefaultValue("linear");
278
279 fSetH3Cmd = std::make_unique<G4UIcommand>("/analysis/h3/set", this);
280 fSetH3Cmd->SetGuidance("Set parameters for the 3D histogram of given id:");
281 fSetH3Cmd->SetGuidance(" nxbins; xvalMin; xvalMax; xunit; xfunction; xbinScheme");
282 fSetH3Cmd->SetGuidance(" nybins; yvalMin; yvalMax; yunit; yfunction; ybinScheme");
283 fSetH3Cmd->SetGuidance(" nzbins; zvalMin; zvalMax; zunit; zfunction; zbinScheme");
284 fSetH3Cmd->SetParameter(h3Id);
285 fSetH3Cmd->SetParameter(h3xNbins);
286 fSetH3Cmd->SetParameter(h3xValMin);
287 fSetH3Cmd->SetParameter(h3xValMax);
288 fSetH3Cmd->SetParameter(h3xValUnit);
289 fSetH3Cmd->SetParameter(h3xValFcn);
290 fSetH3Cmd->SetParameter(h3xValBinScheme);
291 fSetH3Cmd->SetParameter(h3yNbins);
292 fSetH3Cmd->SetParameter(h3yValMin);
293 fSetH3Cmd->SetParameter(h3yValMax);
294 fSetH3Cmd->SetParameter(h3yValUnit);
295 fSetH3Cmd->SetParameter(h3yValFcn);
296 fSetH3Cmd->SetParameter(h3yValBinScheme);
297 fSetH3Cmd->SetParameter(h3zNbins);
298 fSetH3Cmd->SetParameter(h3zValMin);
299 fSetH3Cmd->SetParameter(h3zValMax);
300 fSetH3Cmd->SetParameter(h3zValUnit);
301 fSetH3Cmd->SetParameter(h3zValFcn);
302 fSetH3Cmd->SetParameter(h3zValBinScheme);
303 fSetH3Cmd->AvailableForStates(G4State_PreInit, G4State_Idle);
304}
305
306
307//
308// public functions
309//
310
311//_____________________________________________________________________________
313{
314 // tokenize parameters in a vector
315 std::vector<G4String> parameters;
316 G4Analysis::Tokenize(newValues, parameters);
317 // check consistency
318 if ( parameters.size() != command->GetParameterEntries() ) {
319 // Should never happen but let's check anyway for consistency
320 fHelper->WarnAboutParameters(command, parameters.size());
321 return;
322 }
323
324 if ( command == fCreateH3Cmd.get() ) {
325 auto counter = 0;
326 auto name = parameters[counter++];
327 auto title = parameters[counter++];
329 fHelper->GetBinData(xdata, parameters, counter);
330 auto xunit = GetUnitValue(xdata.fSunit);
332 fHelper->GetBinData(ydata, parameters, counter);
333 auto yunit = GetUnitValue(ydata.fSunit);
335 fHelper->GetBinData(zdata, parameters, counter);
336 auto zunit = GetUnitValue(zdata.fSunit);
337 fManager->CreateH3(name, title,
338 xdata.fNbins, xdata.fVmin*xunit, xdata.fVmax*xunit,
339 ydata.fNbins, ydata.fVmin*yunit, ydata.fVmax*yunit,
340 zdata.fNbins, zdata.fVmin*zunit, zdata.fVmax*zunit,
341 xdata.fSunit, ydata.fSunit, zdata.fSunit,
342 xdata.fSfcn, ydata.fSfcn, zdata.fSfcn,
343 xdata.fSbinScheme, ydata.fSbinScheme, zdata.fSbinScheme);
344 }
345 else if ( command == fSetH3Cmd.get() ) {
346 auto counter = 0;
347 auto id = G4UIcommand::ConvertToInt(parameters[counter++]);
349 fHelper->GetBinData(xdata, parameters, counter);
350 auto xunit = GetUnitValue(xdata.fSunit);
352 fHelper->GetBinData(ydata, parameters, counter);
353 auto yunit = GetUnitValue(ydata.fSunit);
355 fHelper->GetBinData(zdata, parameters, counter);
356 auto zunit = GetUnitValue(zdata.fSunit);
357 fManager->SetH3(id,
358 xdata.fNbins, xdata.fVmin*xunit, xdata.fVmax*xunit,
359 ydata.fNbins, ydata.fVmin*yunit, ydata.fVmax*yunit,
360 zdata.fNbins, zdata.fVmin*zunit, zdata.fVmax*zunit,
361 xdata.fSunit, ydata.fSunit, zdata.fSunit,
362 xdata.fSfcn, ydata.fSfcn, zdata.fSfcn,
363 xdata.fSbinScheme, ydata.fSbinScheme, zdata.fSbinScheme);
364 }
365 else if ( command == fSetH3XCmd.get() ) {
366 // Only save values
367 auto counter = 0;
368 fXId = G4UIcommand::ConvertToInt(parameters[counter++]);
369 fHelper->GetBinData(fXData, parameters, counter);
370 }
371 else if ( command == fSetH3YCmd.get() ) {
372 // Only save values
373 auto counter = 0;
374 fYId = G4UIcommand::ConvertToInt(parameters[counter++]);
375 fHelper->GetBinData(fYData, parameters, counter);
376 }
377 else if ( command == fSetH3ZCmd.get() ) {
378 auto counter = 0;
379 auto id = G4UIcommand::ConvertToInt(parameters[counter++]);
380 // Check if setX and setY command was called
381 if ( fXId == -1 || fXId != id ||
382 fYId == -1 || fYId != id ) {
383 fHelper->WarnAboutSetCommands();
384 return;
385 }
386 auto xunit = GetUnitValue(fXData.fSunit);
387 auto yunit = GetUnitValue(fYData.fSunit);
389 fHelper->GetBinData(zdata, parameters, counter);
390 auto zunit = GetUnitValue(zdata.fSunit);
391 fManager->SetH3(id,
392 fXData.fNbins, fXData.fVmin*xunit, fXData.fVmax*xunit,
393 fYData.fNbins, fYData.fVmin*yunit, fYData.fVmax*yunit,
394 zdata.fNbins, zdata.fVmin*zunit, zdata.fVmax*zunit,
396 fXData.fSfcn, fYData.fSfcn, zdata.fSfcn,
398 fXId = -1;
399 fYId = -1;
400 }
401 else if ( command == fSetH3TitleCmd.get() ) {
402 auto counter = 0;
403 auto id = G4UIcommand::ConvertToInt(parameters[counter++]);
404 auto title = parameters[counter++];
405 fManager->SetH3Title(id, title);
406 }
407 else if ( command == fSetH3XAxisCmd.get() ) {
408 auto counter = 0;
409 auto id = G4UIcommand::ConvertToInt(parameters[counter++]);
410 auto xaxis = parameters[counter++];
411 fManager->SetH3XAxisTitle(id, xaxis);
412 }
413 else if ( command == fSetH3YAxisCmd.get() ) {
414 auto counter = 0;
415 auto id = G4UIcommand::ConvertToInt(parameters[counter++]);
416 auto yaxis = parameters[counter++];
417 fManager->SetH3YAxisTitle(id, yaxis);
418 }
419 else if ( command == fSetH3ZAxisCmd.get() ) {
420 auto counter = 0;
421 auto id = G4UIcommand::ConvertToInt(parameters[counter++]);
422 auto zaxis = parameters[counter++];
423 fManager->SetH3ZAxisTitle(id, zaxis);
424 }
425 else if ( command == fSetH3XAxisLogCmd.get() ) {
426 auto counter = 0;
427 auto id = G4UIcommand::ConvertToInt(parameters[counter++]);
428 auto xaxisLog = G4UIcommand::ConvertToBool(parameters[counter++]);
429 fManager->SetH3XAxisIsLog(id, xaxisLog);
430 }
431 else if ( command == fSetH3YAxisLogCmd.get() ) {
432 auto counter = 0;
433 auto id = G4UIcommand::ConvertToInt(parameters[counter++]);
434 auto yaxisLog = G4UIcommand::ConvertToBool(parameters[counter++]);
435 fManager->SetH3YAxisIsLog(id, yaxisLog);
436 }
437 else if ( command == fSetH3ZAxisLogCmd.get() ) {
438 auto counter = 0;
439 auto id = G4UIcommand::ConvertToInt(parameters[counter++]);
440 auto zaxisLog = G4UIcommand::ConvertToBool(parameters[counter++]);
441 fManager->SetH3ZAxisIsLog(id, zaxisLog);
442 }
443}
@ G4State_Idle
@ G4State_PreInit
G4AnalysisMessengerHelper::BinData fXData
std::unique_ptr< G4UIcommand > fSetH3XAxisCmd
std::unique_ptr< G4UIdirectory > fDirectory
std::unique_ptr< G4UIcommand > fSetH3ZAxisCmd
std::unique_ptr< G4UIcommand > fSetH3XCmd
virtual void SetNewValue(G4UIcommand *command, G4String value) final
std::unique_ptr< G4UIcommand > fSetH3YCmd
std::unique_ptr< G4UIcommand > fSetH3ZCmd
std::unique_ptr< G4UIcommand > fCreateH3Cmd
G4AnalysisMessengerHelper::BinData fYData
std::unique_ptr< G4UIcommand > fSetH3YAxisCmd
std::unique_ptr< G4UIcommand > fSetH3YAxisLogCmd
std::unique_ptr< G4UIcommand > fSetH3Cmd
std::unique_ptr< G4UIcommand > fSetH3XAxisLogCmd
G4VAnalysisManager * fManager
Associated class.
G4H3Messenger()=delete
std::unique_ptr< G4AnalysisMessengerHelper > fHelper
void CreateH3Cmd()
std::unique_ptr< G4UIcommand > fSetH3ZAxisLogCmd
std::unique_ptr< G4UIcommand > fSetH3TitleCmd
virtual ~G4H3Messenger()
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
G4bool SetH3Title(G4int id, const G4String &title)
G4bool SetH3(G4int id, G4int nxbins, G4double xmin, G4double xmax, G4int nzbins, G4double zmin, G4double zmax, G4int nybins, G4double ymin, G4double ymax, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &zunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none", const G4String &zfcnName="none", const G4String &xbinSchemeName="linear", const G4String &ybinSchemeName="linear", const G4String &zbinSchemeName="linear")
G4bool SetH3YAxisTitle(G4int id, const G4String &title)
G4int CreateH3(const G4String &name, const G4String &title, G4int nxbins, G4double xmin, G4double xmax, G4int nybins, G4double ymin, G4double ymax, G4int nzbins, G4double zmin, G4double zmax, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &zunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none", const G4String &zfcnName="none", const G4String &xbinSchemeName="linear", const G4String &ybinSchemeName="linear", const G4String &zbinSchemeName="linear")
G4bool SetH3XAxisIsLog(G4int id, G4bool isLog)
G4bool SetH3XAxisTitle(G4int id, const G4String &title)
G4bool SetH3YAxisIsLog(G4int id, G4bool isLog)
G4bool SetH3ZAxisIsLog(G4int id, G4bool isLog)
G4bool SetH3ZAxisTitle(G4int id, const G4String &title)
void Tokenize(const G4String &line, std::vector< G4String > &tokens)
G4double GetUnitValue(const G4String &unit)
const char * name(G4int ptype)