Crombie Tools
|
Classes | |
class | Plot |
This class has everything needed to draw a plot. More... | |
Typedefs | |
using | MergeFunc = FileConfig::MergeFunc< MergeOut, SingleOut > |
The FileConfig::MergeFunc instantiation for this namespace. More... | |
using | MergeOut = Types::map< Plot > |
The key is a combination of "selection_plotname". More... | |
using | SingleOut = Types::map< std::vector< Hist::Hist >> |
This is the output running over a single file. More... | |
Functions | |
MergeFunc | Merge (const FileConfig::FileConfig &files) |
Gets a function that merges the output of the SingleFile functional. More... | |
FileConfig::MapFunc< SingleOut > | SingleFile (const FileConfig::FileConfig &files, const std::vector< PlotConfig::Plot > &plots, const Selection::SelectionConfig &selections, const Uncertainty::UncertaintyInfo &unc, const bool unblind=false, const std::vector< std::pair< std::string, std::string >> &plotstodo={}) |
Constructs a function that runs over a single file and produces all the necessary histograms. More... | |
using crombie::Plotter::MergeFunc = typedef FileConfig::MergeFunc<MergeOut, SingleOut> |
The FileConfig::MergeFunc instantiation for this namespace.
Definition at line 261 of file src/include/crombie/Plotter.h.
using crombie::Plotter::MergeOut = typedef Types::map<Plot> |
The key is a combination of "selection_plotname".
Definition at line 257 of file src/include/crombie/Plotter.h.
using crombie::Plotter::SingleOut = typedef Types::map<std::vector<Hist::Hist>> |
This is the output running over a single file.
The key corresponds to a "selection_plotname", and the different hists are different process cuts.
Definition at line 81 of file src/include/crombie/Plotter.h.
MergeFunc crombie::Plotter::Merge | ( | const FileConfig::FileConfig & | files | ) |
Gets a function that merges the output of the SingleFile functional.
Definition at line 267 of file src/include/crombie/Plotter.h.
References crombie_completion::dir, crombie::Misc::env(), crombie_completion::files, crombie::FileConfig::FileConfig::get_dirs(), and crombie::FileConfig::FileConfig::has_mc().
FileConfig::MapFunc<SingleOut> crombie::Plotter::SingleFile | ( | const FileConfig::FileConfig & | files, |
const std::vector< PlotConfig::Plot > & | plots, | ||
const Selection::SelectionConfig & | selections, | ||
const Uncertainty::UncertaintyInfo & | unc, | ||
const bool | unblind = false , |
||
const std::vector< std::pair< std::string, std::string >> & | plotstodo = {} |
||
) |
Constructs a function that runs over a single file and produces all the necessary histograms.
plots | A list of all the plots in a configuration file read by PlotConfig::read() |
selections | A global Selection::SelectonConfig object returned by Selection::read() |
unc | Uncertainty info that can be empty or filled by the >> operator from a config file |
unblind | If true, ignores the :b switch in the plots configuration |
plotstodo | If filled, can select a subset of plots to work through. First element is selection key. Second is the plot name. |
Definition at line 94 of file src/include/crombie/Plotter.h.
References CrombieTools.LoadConfig::cuts, crombie::FileConfig::Data, crombie::PlotConfig::Plot::data_var, crombie::Plotter::Plot::PlotInfo::hist, crombie::PlotConfig::Plot::mc_var, crombie::Selection::SelectionConfig::mchistname, crombie::FileConfig::DirectoryInfo::name, crombie::Selection::nminus1(), crombie::Selection::SelectionConfig::selections, submitlxbatch::sub, and crombie::FileConfig::DirectoryInfo::type.