Crombie Tools
crombie::PlotConfig::Plot Class Reference

All of the information needed to make a plot. More...

#include <PlotConfig.h>

Public Member Functions

 Plot (const std::string &name, const unsigned nbins, const double low, const double max, const std::string &label, const std::string &data_var="", const std::string &mc_var="")
 
Hist::Hist get_hist () const
 Get a histogram that's properly formatted for this plot. More...
 

Public Attributes

const std::string data_var
 
const std::string mc_var
 
const std::string name
 

Private Attributes

const std::string label
 
const double low
 
const double max
 
const unsigned nbins
 

Detailed Description

All of the information needed to make a plot.

Definition at line 16 of file PlotConfig.h.

Constructor & Destructor Documentation

§ Plot()

crombie::PlotConfig::Plot::Plot ( const std::string &  name,
const unsigned  nbins,
const double  low,
const double  max,
const std::string &  label,
const std::string &  data_var = "",
const std::string &  mc_var = "" 
)
inline

Definition at line 18 of file PlotConfig.h.

References data_var, Debug::Debug(), label, low, max, mc_var, name, and nbins.

Member Function Documentation

§ get_hist()

Hist::Hist crombie::PlotConfig::Plot::get_hist ( ) const

Get a histogram that's properly formatted for this plot.

Definition at line 56 of file PlotConfig.h.

References label, low, max, and nbins.

Member Data Documentation

§ data_var

const std::string crombie::PlotConfig::Plot::data_var

Definition at line 32 of file PlotConfig.h.

Referenced by Plot(), and crombie::Plotter::SingleFile().

§ label

const std::string crombie::PlotConfig::Plot::label
private

Definition at line 30 of file PlotConfig.h.

Referenced by get_hist(), and Plot().

§ low

const double crombie::PlotConfig::Plot::low
private

Definition at line 28 of file PlotConfig.h.

Referenced by get_hist(), and Plot().

§ max

const double crombie::PlotConfig::Plot::max
private

Definition at line 29 of file PlotConfig.h.

Referenced by get_hist(), and Plot().

§ mc_var

const std::string crombie::PlotConfig::Plot::mc_var

Definition at line 33 of file PlotConfig.h.

Referenced by Plot(), and crombie::Plotter::SingleFile().

§ name

const std::string crombie::PlotConfig::Plot::name

Definition at line 23 of file PlotConfig.h.

Referenced by Plot().

§ nbins

const unsigned crombie::PlotConfig::Plot::nbins
private

Definition at line 27 of file PlotConfig.h.

Referenced by get_hist(), and Plot().


The documentation for this class was generated from the following file: