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 ( const edm::ParameterSet )

Member Function Documentation

double GenericPlotter::hist_maximum ( TH1 *  ) const
double GenericPlotter::hist_minimum ( TH1 *  ) const
TLegend GenericPlotter::make_legend ( const std::vector< std::string > &  ,
const std::vector< TH1 * > &   
) const
TLegend* GenericPlotter::make_legend2D ( const std::string  ,
TH1 *   
) const
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
void GenericPlotter::normalize ( std::vector< TH1 * > &  ) const
void GenericPlotter::plot1D ( std::string  ,
std::vector< std::string > &  ,
std::vector< TH1 * > &  ,
int  reference = -1 
) const
void GenericPlotter::plot2D ( std::string  ,
std::vector< std::string > &  ,
std::vector< TH1 * > &   
) const
void GenericPlotter::plot_all ( std::vector< Book * > &  ,
int  reference = -1 
) const
void GenericPlotter::plotDocumentAdd ( const TCanvas &  ) const
void GenericPlotter::plotDocumentClose ( ) const
void GenericPlotter::plotDocumentOpen ( ) const
void GenericPlotter::plotRatio ( bool  ,
std::vector< std::string > &  ,
std::vector< TH1 * > &  ,
int  reference,
TCanvas &  c 
) const
void GenericPlotter::printFile ( const std::string &  ,
const TCanvas &   
) const
static double GenericPlotter::ratioError2 ( double  numerator,
double  numeratorError2,
double  denominator,
double  denominatorError2 
)
static
void GenericPlotter::setBounds ( std::vector< TH1 * > &  ,
bool  ,
bool   
) const
void GenericPlotter::setLabels ( std::vector< TH1 * > &  ) const

Member Data Documentation

const unsigned GenericPlotter::canvasHeight_

Definition at line 17 of file GenericPlotter.h.

const unsigned GenericPlotter::canvasWidth_

Definition at line 17 of file GenericPlotter.h.

const std::string GenericPlotter::drawOption2D_

Definition at line 15 of file GenericPlotter.h.

const double GenericPlotter::fixRatioYAxis_

Definition at line 20 of file GenericPlotter.h.

const bool GenericPlotter::legend_

Definition at line 16 of file GenericPlotter.h.

const double GenericPlotter::maxRatioUncertainty_

Definition at line 19 of file GenericPlotter.h.

const bool GenericPlotter::normalize_

Definition at line 16 of file GenericPlotter.h.

const std::string GenericPlotter::plotDocument_

Definition at line 15 of file GenericPlotter.h.

const std::string GenericPlotter::printSuffix_

Definition at line 15 of file GenericPlotter.h.

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

Definition at line 18 of file GenericPlotter.h.