CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Public Attributes
GenericPlotter Class Reference

#include <GenericPlotter.h>

Public Member Functions

 GenericPlotter (const edm::ParameterSet &)
 
double hist_maximum (TH1 *) const
 
double hist_minimum (TH1 *) const
 
TLegend make_legend (const std::vector< std::string > &, const std::vector< TH1 * > &) const
 
TLegend * make_legend2D (const std::string, TH1 *) const
 
void normalize (std::vector< TH1 * > &) const
 
void plot1D (std::string, std::vector< std::string > &, std::vector< TH1 * > &, int reference=-1) const
 
void plot2D (std::string, std::vector< std::string > &, std::vector< TH1 * > &) const
 
void plot_all (std::vector< Book * > &, int reference=-1) const
 
void plotDocumentAdd (const TCanvas &) const
 
void plotDocumentClose () const
 
void plotDocumentOpen () const
 
void plotRatio (bool, std::vector< std::string > &, std::vector< TH1 * > &, int reference, TCanvas &c) const
 
void printFile (const std::string &, const TCanvas &) const
 
void setBounds (std::vector< TH1 * > &, bool, bool) const
 
void setLabels (std::vector< TH1 * > &) const
 

Static Public Member Functions

static void make_rebinned_ratios (std::vector< TH1 * > &ratios, const std::vector< TH1 * > &hist, int reference, double maxUncertainty, const std::string &refName, const std::string postfix="_ratio")
 
static double ratioError2 (double numerator, double numeratorError2, double denominator, double denominatorError2)
 

Public Attributes

const unsigned canvasHeight_
 
const unsigned canvasWidth_
 
const std::string drawOption2D_
 
const double fixRatioYAxis_
 
const bool legend_
 
const double maxRatioUncertainty_
 
const bool normalize_
 
const std::string plotDocument_
 
const std::string printSuffix_
 
const std::vector< std::string > replace_text_
 

Detailed Description

Definition at line 12 of file GenericPlotter.h.

Constructor & Destructor Documentation

◆ GenericPlotter()

GenericPlotter::GenericPlotter ( const edm::ParameterSet )

Member Function Documentation

◆ hist_maximum()

double GenericPlotter::hist_maximum ( TH1 *  ) const

◆ hist_minimum()

double GenericPlotter::hist_minimum ( TH1 *  ) const

◆ make_legend()

TLegend GenericPlotter::make_legend ( const std::vector< std::string > &  ,
const std::vector< TH1 * > &   
) const

◆ make_legend2D()

TLegend* GenericPlotter::make_legend2D ( const std::string  ,
TH1 *   
) const

◆ make_rebinned_ratios()

static void GenericPlotter::make_rebinned_ratios ( std::vector< TH1 * > &  ratios,
const std::vector< TH1 * > &  hist,
int  reference,
double  maxUncertainty,
const std::string &  refName,
const std::string  postfix = "_ratio" 
)
static

◆ normalize()

void GenericPlotter::normalize ( std::vector< TH1 * > &  ) const

◆ plot1D()

void GenericPlotter::plot1D ( std::string  ,
std::vector< std::string > &  ,
std::vector< TH1 * > &  ,
int  reference = -1 
) const

◆ plot2D()

void GenericPlotter::plot2D ( std::string  ,
std::vector< std::string > &  ,
std::vector< TH1 * > &   
) const

◆ plot_all()

void GenericPlotter::plot_all ( std::vector< Book * > &  ,
int  reference = -1 
) const

◆ plotDocumentAdd()

void GenericPlotter::plotDocumentAdd ( const TCanvas &  ) const

◆ plotDocumentClose()

void GenericPlotter::plotDocumentClose ( ) const

◆ plotDocumentOpen()

void GenericPlotter::plotDocumentOpen ( ) const

◆ plotRatio()

void GenericPlotter::plotRatio ( bool  ,
std::vector< std::string > &  ,
std::vector< TH1 * > &  ,
int  reference,
TCanvas &  c 
) const

◆ printFile()

void GenericPlotter::printFile ( const std::string &  ,
const TCanvas &   
) const

◆ ratioError2()

static double GenericPlotter::ratioError2 ( double  numerator,
double  numeratorError2,
double  denominator,
double  denominatorError2 
)
static

◆ setBounds()

void GenericPlotter::setBounds ( std::vector< TH1 * > &  ,
bool  ,
bool   
) const

◆ setLabels()

void GenericPlotter::setLabels ( std::vector< TH1 * > &  ) const

Member Data Documentation

◆ canvasHeight_

const unsigned GenericPlotter::canvasHeight_

Definition at line 17 of file GenericPlotter.h.

◆ canvasWidth_

const unsigned GenericPlotter::canvasWidth_

Definition at line 17 of file GenericPlotter.h.

◆ drawOption2D_

const std::string GenericPlotter::drawOption2D_

Definition at line 15 of file GenericPlotter.h.

◆ fixRatioYAxis_

const double GenericPlotter::fixRatioYAxis_

Definition at line 20 of file GenericPlotter.h.

◆ legend_

const bool GenericPlotter::legend_

Definition at line 16 of file GenericPlotter.h.

◆ maxRatioUncertainty_

const double GenericPlotter::maxRatioUncertainty_

Definition at line 19 of file GenericPlotter.h.

◆ normalize_

const bool GenericPlotter::normalize_

Definition at line 16 of file GenericPlotter.h.

◆ plotDocument_

const std::string GenericPlotter::plotDocument_

Definition at line 15 of file GenericPlotter.h.

◆ printSuffix_

const std::string GenericPlotter::printSuffix_

Definition at line 15 of file GenericPlotter.h.

◆ replace_text_

const std::vector<std::string> GenericPlotter::replace_text_

Definition at line 18 of file GenericPlotter.h.