mupp 1.1.0
Loading...
Searching...
No Matches
PmuppScript.cpp File Reference

Implementation of the mupp scripting interface for batch processing. More...

#include <cmath>
#include <iostream>
#include <QProcessEnvironment>
#include <QString>
#include <QFile>
#include <QTextStream>
#include <QDateTime>
#include <QProcess>
#include <QtGlobal>
#include "PmuppScript.h"
Include dependency graph for PmuppScript.cpp:

Go to the source code of this file.

Detailed Description

Implementation of the mupp scripting interface for batch processing.

This file implements the non-interactive scripting system for mupp, enabling automated batch processing of parameter data analysis and plotting tasks.

Key functionality implemented:

  • Script command parsing and execution
  • Path management with environment variable expansion
  • Data collection loading and selection
  • X-Y axis parameter configuration
  • Variable expression evaluation and storage
  • ROOT macro generation with full plot specification
  • Batch mode plot creation via ROOT subprocess
  • Label formatting for publication-quality plots

Script command processing: The executeScript() method processes commands sequentially, maintaining state throughout execution. Each command type (loadPath, load, select, x, y, var, norm, plot, macro) has a dedicated handler method.

ROOT macro generation: The macro() method creates complete ROOT C++ macros including:

  • Data array definitions
  • TGraphAsymmErrors objects for error bars
  • Canvas and styling setup
  • Axis labels and ranges
  • Marker and color configuration
  • Optional normalization

Variable system: Variables are mathematical expressions combining collection parameters. The var_cmd() method integrates with PVarHandler for expression parsing and evaluation, enabling derived quantity calculations.

Definition in file PmuppScript.cpp.