302 std::vector<G4String> parameters;
307 fHelper->WarnAboutParameters(command, parameters.size());
311 if ( command == fCreateP2Cmd.get() ) {
313 auto name = parameters[counter++];
314 auto title = parameters[counter++];
316 fHelper->GetBinData(xdata, parameters, counter);
319 fHelper->GetBinData(ydata, parameters, counter);
322 fHelper->GetValueData(zdata, parameters, counter);
332 else if ( command == fSetP2Cmd.get() ) {
336 fHelper->GetBinData(xdata, parameters, counter);
339 fHelper->GetBinData(ydata, parameters, counter);
342 fHelper->GetValueData(zdata, parameters, counter);
352 else if ( command == fSetP2XCmd.get() ) {
356 fHelper->GetBinData(fXData, parameters, counter);
358 else if ( command == fSetP2YCmd.get() ) {
363 if ( fXId == -1 || fXId != fYId ) {
364 fHelper->WarnAboutSetCommands();
367 fHelper->GetBinData(fYData, parameters, counter);
372 fManager->
SetP2(fYId,
380 else if ( command == fSetP2ZCmd.get() ) {
384 if ( fXId == -1 || fXId !=
id ||
385 fYId == -1 || fYId !=
id ) {
386 fHelper->WarnAboutSetCommands();
392 fHelper->GetValueData(zdata, parameters, counter);
404 else if ( command == fSetP2TitleCmd.get() ) {
407 auto title = parameters[counter++];
410 else if ( command == fSetP2XAxisCmd.get() ) {
413 auto xaxis = parameters[counter++];
416 else if ( command == fSetP2YAxisCmd.get() ) {
419 auto yaxis = parameters[counter++];
422 else if ( command == fSetP2ZAxisCmd.get() ) {
425 auto zaxis = parameters[counter++];
G4bool SetP2ZAxisTitle(G4int id, const G4String &title)
G4bool SetP2Title(G4int id, const G4String &title)
G4bool SetP2XAxisTitle(G4int id, const G4String &title)
G4double GetUnitValue(const G4String &unit)
static G4int ConvertToInt(const char *st)
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 SetP2YAxisTitle(G4int id, const G4String &title)
void Tokenize(const G4String &line, std::vector< G4String > &tokens)
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")
G4int GetParameterEntries() const