40 std::string(std::getenv(
"MACH3")) +
41 "/plotting/universalTranslator.yaml";
45 std::string(std::getenv(
"MACH3")) +
46 "/plotting/StyleConfig.yaml";
50 std::string(std::getenv(
"MACH3")) +
51 "/plotting/PlottingConfig.yaml";
81 std::vector<char *> charVec;
83 for(
const std::string &arg : argv )
85 charVec.push_back(
const_cast<char *
>(arg.c_str()) );
105 void parseFileLabels(std::string labelString, std::vector<std::string> &labelVec);
115 void setExec(
const std::string& execName);
169 std::string
_configFileName = std::string(std::getenv(
"MACH3")) +
"/plotting/PlottingConfig.yaml";
Defines the custom exception class used throughout MaCh3.
MaCh3 Logging utilities built on top of SPDLOG.
Utility functions for handling YAML nodes.
The main class to be used in plotting scripts.
void setExec(const std::string &execName)
Internally set the name of the executable that manager is being used in.
void initialise()
initalise this PlottingManager.
std::vector< std::string > _fileNames
YAML::Node _plottingConfig
const std::string getOutputName()
Get the straight up output file name with no bells or whistles, just the file extension.
std::vector< std::string > _defaultFileLabels
bool getPlotRatios() const
const InputManager & input() const
Get the InputManager contained within this PlottingManager, for doing input related things.
const std::string DEFAULT_PLOTTING_CONFIG
const std::string DEFAULT_TRANSLATION_CONFIG
const std::vector< std::string > getFileNames() const
std::string getUserOption(const std::string &option)
Retrieve a command line option you specified using addOption.
T getOption(const std::string &option)
Get a specific option from the config for this executable.
YAML::Node getOption(const std::string &option) const
const std::string getFileLabel(int i) const
PlottingManager()
Construct a new PlottingManager using default plottingConfig config.
void addUserOption()
Describe an option you want to add to the PlottingManager which can be read in from the command line ...
bool getSplitBySample() const
const std::string getFileName(int i) const
const StyleManager & style() const
Get the StyleManager contained within this PlottingManager, for doing style related things.
const std::string DEFAULT_STYLE_CONFIG
const std::vector< std::string > getFileLabels() const
std::unique_ptr< InputManager > _inputMan
std::vector< std::string > _fileLabels
std::string _configFileName
std::string _extraDrawOptions
void parseInputs(int argc, char *const *argv)
Parse command line arguments.
void parseFileLabels(std::string labelString, std::vector< std::string > &labelVec)
Parse string of labels into a vector of strings.
void setOutFileName(const std::string &fileName)
Parse and set the output file name, if extension specified, check its one root supports,...
void usage() const
Print a usage message for the current executable.
std::unique_ptr< StyleManager > _styleMan
void parseInputsVec(const std::vector< std::string > &argv)
Parse vector of command line arguments.
const std::string getDrawOptions() const
EW: provides centralized styling utilities for plots, including name prettification and style applica...
Main namespace for MaCh3 software.