Crombie Tools
crombie::Plotter Namespace Reference

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< SingleOutSingleFile (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...
 

Typedef Documentation

§ MergeFunc

The FileConfig::MergeFunc instantiation for this namespace.

Definition at line 261 of file src/include/crombie/Plotter.h.

§ MergeOut

The key is a combination of "selection_plotname".

Definition at line 257 of file src/include/crombie/Plotter.h.

§ SingleOut

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.

Function Documentation

§ Merge()

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().

§ SingleFile()

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.

Parameters
plotsA list of all the plots in a configuration file read by PlotConfig::read()
selectionsA global Selection::SelectonConfig object returned by Selection::read()
uncUncertainty info that can be empty or filled by the >> operator from a config file
unblindIf true, ignores the :b switch in the plots configuration
plotstodoIf 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.