259{
260
261 std::vector<G4String> parameters;
263
265
266 fHelper->WarnAboutParameters(command, parameters.size());
267 return;
268 }
269
270 if ( command == fCreateH2Cmd.get() ) {
271 auto counter = 0;
272 auto name = parameters[counter++];
273 auto title = parameters[counter++];
275 fHelper->GetBinData(xdata, parameters, counter);
278 fHelper->GetBinData(ydata, parameters, counter);
286 }
287 else if ( command == fSetH2Cmd.get() ) {
288 auto counter = 0;
291 fHelper->GetBinData(xdata, parameters, counter);
294 fHelper->GetBinData(ydata, parameters, counter);
302 }
303 else if ( command == fSetH2XCmd.get() ) {
304
305 auto counter = 0;
307 fHelper->GetBinData(fXData, parameters, counter);
308 }
309 else if ( command == fSetH2YCmd.get() ) {
310
311 auto counter = 0;
313 if ( fXId == -1 || fXId != id ) {
314 fHelper->WarnAboutSetCommands();
315 return;
316 }
319 fHelper->GetBinData(ydata, parameters, counter);
327 fXId = -1;
328 }
329 else if ( command == fSetH2TitleCmd.get() ) {
330 auto counter = 0;
332 auto title = parameters[counter++];
334 }
335 else if ( command == fSetH2XAxisCmd.get() ) {
336 auto counter = 0;
338 auto xaxis = parameters[counter++];
340 }
341 else if ( command == fSetH2YAxisCmd.get() ) {
342 auto counter = 0;
344 auto yaxis = parameters[counter++];
346 }
347 else if ( command == fSetH2ZAxisCmd.get() ) {
348 auto counter = 0;
350 auto zaxis = parameters[counter++];
352 }
353 else if ( command == fSetH2XAxisLogCmd.get() ) {
354 auto counter = 0;
358 }
359 else if ( command == fSetH2YAxisLogCmd.get() ) {
360 auto counter = 0;
364 }
365 else if ( command == fSetH2ZAxisLogCmd.get() ) {
366 auto counter = 0;
370 }
371}
std::size_t GetParameterEntries() const
static G4int ConvertToInt(const char *st)
static G4bool ConvertToBool(const char *st)
G4bool SetH2XAxisIsLog(G4int id, G4bool isLog)
G4bool SetH2Title(G4int id, const G4String &title)
G4bool SetH2YAxisIsLog(G4int id, G4bool isLog)
G4bool SetH2XAxisTitle(G4int id, const G4String &title)
G4bool SetH2YAxisTitle(G4int id, const G4String &title)
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 SetH2ZAxisIsLog(G4int id, G4bool isLog)
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 SetH2ZAxisTitle(G4int id, const G4String &title)
void Tokenize(const G4String &line, std::vector< G4String > &tokens)
G4double GetUnitValue(const G4String &unit)
const char * name(G4int ptype)