259 std::vector<G4String> parameters;
264 fHelper->WarnAboutParameters(command, parameters.size());
268 if ( command == fCreateH2Cmd.get() ) {
270 auto name = parameters[counter++];
271 auto title = parameters[counter++];
273 fHelper->GetBinData(xdata, parameters, counter);
276 fHelper->GetBinData(ydata, parameters, counter);
285 else if ( command == fSetH2Cmd.get() ) {
289 fHelper->GetBinData(xdata, parameters, counter);
292 fHelper->GetBinData(ydata, parameters, counter);
301 else if ( command == fSetH2XCmd.get() ) {
305 fHelper->GetBinData(fXData, parameters, counter);
307 else if ( command == fSetH2YCmd.get() ) {
311 if ( fXId == -1 || fXId !=
id ) {
312 fHelper->WarnAboutSetCommands();
317 fHelper->GetBinData(ydata, parameters, counter);
327 else if ( command == fSetH2TitleCmd.get() ) {
330 auto title = parameters[counter++];
333 else if ( command == fSetH2XAxisCmd.get() ) {
336 auto xaxis = parameters[counter++];
339 else if ( command == fSetH2YAxisCmd.get() ) {
342 auto yaxis = parameters[counter++];
345 else if ( command == fSetH2ZAxisCmd.get() ) {
348 auto zaxis = parameters[counter++];
G4bool SetH2YAxisTitle(G4int id, const G4String &title)
G4bool SetH2ZAxisTitle(G4int id, const G4String &title)
G4double GetUnitValue(const G4String &unit)
static G4int ConvertToInt(const char *st)
G4bool SetH2(G4int id, G4int nxbins, G4double xmin, G4double xmax, G4int nybins, G4double ymin, G4double ymax, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none", const G4String &xbinSchemeName="linear", const G4String &ybinSchemeName="linear")
G4bool SetH2Title(G4int id, const G4String &title)
void Tokenize(const G4String &line, std::vector< G4String > &tokens)
G4int GetParameterEntries() const
G4int CreateH2(const G4String &name, const G4String &title, G4int nxbins, G4double xmin, G4double xmax, G4int nybins, G4double ymin, G4double ymax, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none", const G4String &xbinSchemeName="linear", const G4String &ybinSchemeName="linear")
G4bool SetH2XAxisTitle(G4int id, const G4String &title)