244 std::vector<G4String> parameters;
249 fHelper->WarnAboutParameters(command, parameters.size());
253 if ( command == fCreateP1Cmd.get() ) {
255 auto name = parameters[counter++];
256 auto title = parameters[counter++];
258 fHelper->GetBinData(xdata, parameters, counter);
261 fHelper->GetValueData(ydata, parameters, counter);
270 else if ( command == fSetP1Cmd.get() ) {
274 fHelper->GetBinData(xdata, parameters, counter);
277 fHelper->GetValueData(ydata, parameters, counter);
286 else if ( command == fSetP1XCmd.get() ) {
290 fHelper->GetBinData(fXData, parameters, counter);
294 fManager->
SetP1(fXId,
298 fXData.
fSfcn,
"none",
301 else if ( command == fSetP1YCmd.get() ) {
305 if ( fXId == -1 || fXId !=
id ) {
306 fHelper->WarnAboutSetCommands();
311 fHelper->GetValueData(ydata, parameters, counter);
321 else if ( command == fSetP1TitleCmd.get() ) {
324 auto title = parameters[counter++];
327 else if ( command == fSetP1XAxisCmd.get() ) {
330 auto xaxis = parameters[counter++];
333 else if ( command == fSetP1YAxisCmd.get() ) {
336 auto yaxis = parameters[counter++];
G4int CreateP1(const G4String &name, const G4String &title, G4int nbins, G4double xmin, G4double xmax, G4double ymin=0, G4double ymax=0, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none", const G4String &xbinSchemeName="linear")
G4bool SetP1YAxisTitle(G4int id, const G4String &title)
G4bool SetP1(G4int id, G4int nbins, G4double xmin, G4double xmax, G4double ymin=0, G4double ymax=0, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none", const G4String &xbinSchemeName="linear")
G4double GetUnitValue(const G4String &unit)
static G4int ConvertToInt(const char *st)
G4bool SetP1XAxisTitle(G4int id, const G4String &title)
void Tokenize(const G4String &line, std::vector< G4String > &tokens)
G4bool SetP1Title(G4int id, const G4String &title)
G4int GetParameterEntries() const