332{
333
334 std::vector<G4String> parameters;
336
338
339 fHelper->WarnAboutParameters(command, parameters.size());
340 return;
341 }
342
343 if ( command == fCreateH3Cmd.get() ) {
344 auto counter = 0;
345 auto name = parameters[counter++];
346 auto title = parameters[counter++];
348 fHelper->GetBinData(xdata, parameters, counter);
351 fHelper->GetBinData(ydata, parameters, counter);
354 fHelper->GetBinData(zdata, parameters, counter);
363 }
364 else if ( command == fSetH3Cmd.get() ) {
365 auto counter = 0;
368 fHelper->GetBinData(xdata, parameters, counter);
371 fHelper->GetBinData(ydata, parameters, counter);
374 fHelper->GetBinData(zdata, parameters, counter);
383 }
384 else if ( command == fSetH3XCmd.get() ) {
385
386 auto counter = 0;
388 fHelper->GetBinData(fXData, parameters, counter);
389 }
390 else if ( command == fSetH3YCmd.get() ) {
391
392 auto counter = 0;
394 fHelper->GetBinData(fYData, parameters, counter);
395 }
396 else if ( command == fSetH3ZCmd.get() ) {
397 auto counter = 0;
399
400 if ( fXId == -1 || fXId != id ||
401 fYId == -1 || fYId != id ) {
402 fHelper->WarnAboutSetCommands();
403 return;
404 }
408 fHelper->GetBinData(zdata, parameters, counter);
417 fXId = -1;
418 fYId = -1;
419 }
420 else if ( command == fSetH3TitleCmd.get() ) {
421 auto counter = 0;
423 auto title = parameters[counter++];
425 }
426 else if ( command == fSetH3XAxisCmd.get() ) {
427 auto counter = 0;
429 auto xaxis = parameters[counter++];
431 }
432 else if ( command == fSetH3YAxisCmd.get() ) {
433 auto counter = 0;
435 auto yaxis = parameters[counter++];
437 }
438 else if ( command == fSetH3ZAxisCmd.get() ) {
439 auto counter = 0;
441 auto zaxis = parameters[counter++];
443 }
444 else if ( command == fSetH3XAxisLogCmd.get() ) {
445 auto counter = 0;
449 }
450 else if ( command == fSetH3YAxisLogCmd.get() ) {
451 auto counter = 0;
455 }
456 else if ( command == fSetH3ZAxisLogCmd.get() ) {
457 auto counter = 0;
461 }
462}
std::size_t GetParameterEntries() const
static G4int ConvertToInt(const char *st)
static G4bool ConvertToBool(const char *st)
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)