244{
245
246 std::vector<G4String> parameters;
248
250
251 fHelper->WarnAboutParameters(command, parameters.size());
252 return;
253 }
254
255 if ( command == fCreateP1Cmd.get() ) {
256 auto counter = 0;
257 auto name = parameters[counter++];
258 auto title = parameters[counter++];
260 fHelper->GetBinData(xdata, parameters, counter);
263 fHelper->GetValueData(ydata, parameters, counter);
271 }
272 else if ( command == fSetP1Cmd.get() ) {
273 auto counter = 0;
276 fHelper->GetBinData(xdata, parameters, counter);
279 fHelper->GetValueData(ydata, parameters, counter);
287 }
288 else if ( command == fSetP1XCmd.get() ) {
289
290 auto counter = 0;
292 fHelper->GetBinData(fXData, parameters, counter);
293
294
296 fManager->
SetP1(fXId,
298 0., 0.,
300 fXData.
fSfcn,
"none",
302 }
303 else if ( command == fSetP1YCmd.get() ) {
304
305 auto counter = 0;
307 if ( fXId == -1 || fXId != id ) {
308 fHelper->WarnAboutSetCommands();
309 return;
310 }
313 fHelper->GetValueData(ydata, parameters, counter);
321 fXId = -1;
322 }
323 else if ( command == fSetP1TitleCmd.get() ) {
324 auto counter = 0;
326 auto title = parameters[counter++];
328 }
329 else if ( command == fSetP1XAxisCmd.get() ) {
330 auto counter = 0;
332 auto xaxis = parameters[counter++];
334 }
335 else if ( command == fSetP1YAxisCmd.get() ) {
336 auto counter = 0;
338 auto yaxis = parameters[counter++];
340 }
341 else if ( command == fSetP1XAxisLogCmd.get() ) {
342 auto counter = 0;
346 }
347 else if ( command == fSetP1YAxisLogCmd.get() ) {
348 auto counter = 0;
352 }
353}
std::size_t GetParameterEntries() const
static G4int ConvertToInt(const char *st)
static G4bool ConvertToBool(const char *st)
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 SetP1XAxisTitle(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")
G4bool SetP1YAxisIsLog(G4int id, G4bool isLog)
G4bool SetP1YAxisTitle(G4int id, const G4String &title)
G4bool SetP1XAxisIsLog(G4int id, G4bool isLog)
G4bool SetP1Title(G4int id, const G4String &title)
void Tokenize(const G4String &line, std::vector< G4String > &tokens)
G4double GetUnitValue(const G4String &unit)
const char * name(G4int ptype)