37 std::string(std::getenv(
"MACH3")) +
38 "/plotting/universalTranslator.yaml";
42 std::string(std::getenv(
"MACH3")) +
43 "/plotting/StyleConfig.yaml";
47 std::string(std::getenv(
"MACH3")) +
48 "/plotting/PlottingConfig.yaml";
78 std::vector<char *> charVec;
80 for(
const std::string &arg : argv )
82 charVec.push_back(
const_cast<char *
>(arg.c_str()) );
102 void parseFileLabels(std::string labelString, std::vector<std::string> &labelVec);
112 void setExec(std::string execName);
166 std::string
_configFileName = std::string(std::getenv(
"MACH3")) +
"/plotting/PlottingConfig.yaml";
KS: Based on this https://github.com/gabime/spdlog/blob/a2b4262090fd3f005c2315dcb5be2f0f1774a005/incl...
Utility functions for handling YAML nodes.
The main class to be used in plotting scripts.
const std::string getOutputName()
Get the straight up output file name with no bells or whistles, just the file extension.
YAML::Node getOption(std::string option)
const std::string DEFAULT_PLOTTING_CONFIG
void initialise()
initalise this PlottingManager.
const std::string DEFAULT_STYLE_CONFIG
std::string _configFileName
void parseInputsVec(std::vector< std::string > argv)
Parse vector of command line arguments.
std::vector< std::string > _defaultFileLabels
void setExec(std::string execName)
Internally set the name of the executable that manager is being used in.
const std::vector< std::string > getFileNames()
std::vector< std::string > _fileLabels
const std::string DEFAULT_TRANSLATION_CONFIG
std::vector< std::string > _fileNames
std::unique_ptr< InputManager > _inputMan
void parseInputs(int argc, char *const *argv)
Parse command line arguments.
void usage()
Print a usage message for the current executable.
const std::string getFileName(int i)
std::string _extraDrawOptions
const std::vector< std::string > getFileLabels()
PlottingManager()
Construct a new PlottingManager using default plottingConfig config.
YAML::Node _plottingConfig
const std::string getDrawOptions()
const std::string getFileLabel(int i)
void parseFileLabels(std::string labelString, std::vector< std::string > &labelVec)
Parse string of labels into a vector of strings.
void setOutFileName(std::string fileName)
Parse and set the output file name, if extension specified, check its one root supports,...
const StyleManager & style()
Get the StyleManager contained within this PlottingManager, for doing style related things.
std::unique_ptr< StyleManager > _styleMan
void addUserOption()
Describe an option you want to add to the PlottingManager which can be read in from the command line ...
std::string getUserOption(std::string option)
Retrieve a command line option you specified using addOption.
T getOption(std::string option)
Get a specific option from the config for this executable.
const InputManager & input()
Get the InputManager contained within this PlottingManager, for doing input related things.
EW: provides centralized styling utilities for plots, including name prettification and style applica...