306{
307
308 std::vector<G4String> parameters;
310
312
313 fHelper->WarnAboutParameters(command, parameters.size());
314 return;
315 }
316
317 if ( command == fCreateP2Cmd.get() ) {
318 auto counter = 0;
319 auto name = parameters[counter++];
320 auto title = parameters[counter++];
322 fHelper->GetBinData(xdata, parameters, counter);
325 fHelper->GetBinData(ydata, parameters, counter);
328 fHelper->GetValueData(zdata, parameters, counter);
337 }
338 else if ( command == fSetP2Cmd.get() ) {
339 auto counter = 0;
342 fHelper->GetBinData(xdata, parameters, counter);
345 fHelper->GetBinData(ydata, parameters, counter);
348 fHelper->GetValueData(zdata, parameters, counter);
357 }
358 else if ( command == fSetP2XCmd.get() ) {
359
360 auto counter = 0;
362 fHelper->GetBinData(fXData, parameters, counter);
363 }
364 else if ( command == fSetP2YCmd.get() ) {
365
366 auto counter = 0;
368
369 if ( fXId == -1 || fXId != fYId ) {
370 fHelper->WarnAboutSetCommands();
371 return;
372 }
373 fHelper->GetBinData(fYData, parameters, counter);
374
375
378 fManager->
SetP2(fYId,
381 0., 0.,
385 }
386 else if ( command == fSetP2ZCmd.get() ) {
387 auto counter = 0;
389
390 if ( fXId == -1 || fXId != id ||
391 fYId == -1 || fYId != id ) {
392 fHelper->WarnAboutSetCommands();
393 return;
394 }
398 fHelper->GetValueData(zdata, parameters, counter);
407 fXId = -1;
408 fYId = -1;
409 }
410 else if ( command == fSetP2TitleCmd.get() ) {
411 auto counter = 0;
413 auto title = parameters[counter++];
415 }
416 else if ( command == fSetP2XAxisCmd.get() ) {
417 auto counter = 0;
419 auto xaxis = parameters[counter++];
421 }
422 else if ( command == fSetP2YAxisCmd.get() ) {
423 auto counter = 0;
425 auto yaxis = parameters[counter++];
427 }
428 else if ( command == fSetP2ZAxisCmd.get() ) {
429 auto counter = 0;
431 auto zaxis = parameters[counter++];
433 }
434 else if ( command == fSetP2XAxisLogCmd.get() ) {
435 auto counter = 0;
439 }
440 else if ( command == fSetP2YAxisLogCmd.get() ) {
441 auto counter = 0;
445 }
446 else if ( command == fSetP2ZAxisLogCmd.get() ) {
447 auto counter = 0;
451 }
452}
std::size_t GetParameterEntries() const
static G4int ConvertToInt(const char *st)
static G4bool ConvertToBool(const char *st)
G4bool SetP2YAxisTitle(G4int id, const G4String &title)
G4int CreateP2(const G4String &name, const G4String &title, G4int nxbins, G4double xmin, G4double xmax, G4int nybins, G4double ymin, G4double ymax, G4double zmin=0, G4double zmax=0, 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")
G4bool SetP2ZAxisIsLog(G4int id, G4bool isLog)
G4bool SetP2(G4int id, G4int nxbins, G4double xmin, G4double xmax, G4int nybins, G4double ymin, G4double ymax, G4double zmin=0, G4double zmax=0, 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")
G4bool SetP2Title(G4int id, const G4String &title)
G4bool SetP2ZAxisTitle(G4int id, const G4String &title)
G4bool SetP2YAxisIsLog(G4int id, G4bool isLog)
G4bool SetP2XAxisIsLog(G4int id, G4bool isLog)
G4bool SetP2XAxisTitle(G4int id, const G4String &title)
void Tokenize(const G4String &line, std::vector< G4String > &tokens)
G4double GetUnitValue(const G4String &unit)
const char * name(G4int ptype)