CMS 3D CMS Logo

PlotCompareUtility Class Reference

#include <Validation/RecoParticleFlow/bin/include/PlotCompareUtility.h>

List of all members.

Public Types

enum  Axis { axisX, axisY }

Public Member Functions

HistoDataaddHistoData (std::string Name, int PlotType)
HistoDataaddHistoData (std::string NewName, std::string RefName, int PlotType)
HistoDataaddProjectionXData (HistoData *Parent, std::string Name, int PlotType, int Bin, TH1 *NewHisto, TH1 *RefHisto)
HistoDataaddProjectionYData (HistoData *Parent, std::string Name, int PlotType, int Bin, TH1 *NewHisto, TH1 *RefHisto)
void clearHistos ()
void clearProjectionsX (HistoData *Parent)
void clearProjectionsY (HistoData *Parent)
bool compare (HistoData *)
void dump ()
double getChi2Threshold () const
bool getFinalResult () const
std::vector< HistoData > * getHistos ()
double getKSThreshold () const
int getNumHistos () const
int getPlotsBottomMargin () const
int getPlotsHeight () const
int getPlotsLeftMargin () const
int getPlotsRightMargin () const
int getPlotsTopMargin () const
int getPlotsWidth () const
int getProjectionsBarsThickness () const
int getProjectionsBottomMargin () const
int getProjectionsHeight () const
int getProjectionsLeftMargin () const
int getProjectionsRightMargin () const
int getProjectionsTopMargin () const
int getProjectionsWidth () const
std::vector< HistoData > * getProjectionsX (HistoData *HD)
std::vector< HistoData > * getProjectionsY (HistoData *HD)
int getSummaryBarsThickness () const
int getSummaryBottomMargin () const
int getSummaryHeight () const
int getSummaryLeftMargin () const
int getSummaryRightMargin () const
int getSummaryTopMargin () const
int getSummaryWidth () const
double getThreshold () const
bool isValid () const
void makeDefaultPlots ()
void makeHTML (HistoData *)
void makePlots (HistoData *)
void makeSummary (std::string Name)
void makeSummaryHTML (std::string Name)
void makeSummaryPlot (std::string Name)
 PlotCompareUtility (std::string Reference, std::string New, std::string NewBasePath, std::string NewPrefix="", std::string RefBasePath="", std::string RefPrefix="")
void setChi2Threshold (double Threshold)
void setKSThreshold (double Threshold)
void setPlotsBottomMargin (int Pixels)
void setPlotsHeight (int Pixels)
void setPlotsLeftMargin (int Pixels)
void setPlotsRightMargin (int Pixels)
void setPlotsTopMargin (int Pixels)
void setPlotsWidth (int Pixels)
void setProjectionsBarsThickness (int Pixels)
void setProjectionsBottomMargin (int Pixels)
void setProjectionsHeight (int Pixels)
void setProjectionsiWidth (int Pixels)
void setProjectionsLeftMargin (int Pixels)
void setProjectionsRightMargin (int Pixels)
void setProjectionsTopMargin (int Pixels)
void setSummaryBarsThickness (int Pixels)
void setSummaryBottomMargin (int Pixels)
void setSummaryHeight (int Pixels)
void setSummaryLeftMargin (int Pixels)
void setSummaryRightMargin (int Pixels)
void setSummaryTopMargin (int Pixels)
void setSummaryWidth (int Pixels)
virtual ~PlotCompareUtility ()

Private Member Functions

void centerRebin (TH1 *, TH1 *)
template<int PlotType>
bool compare (HistoData *)
template<int PlotType>
void makeHTML (HistoData *)
template<int PlotType>
void makePlots (HistoData *)
void renormalize (TH1 *, TH1 *)

Private Attributes

double chi2Threshold
bool finalResult
std::vector< HistoDatahistos
double ksThreshold
std::string newBasePath
TFile * newFile
std::string newPrefix
int plotsBottomMargin
int plotsHeight
int plotsLeftMargin
int plotsRightMargin
int plotsTopMargin
int plotsWidth
int projectionsBarsThickness
int projectionsBottomMargin
int projectionsHeight
int projectionsLeftMargin
int projectionsRightMargin
int projectionsTopMargin
int projectionsWidth
std::map< HistoData *,
std::vector< HistoData > > 
projectionsX
std::map< HistoData *,
std::vector< HistoData > > 
projectionsY
std::string refBasePath
TFile * refFile
std::string refPrefix
int summaryBarsThickness
int summaryBottomMargin
int summaryHeight
int summaryLeftMargin
int summaryRightMargin
int summaryTopMargin
int summaryWidth


Detailed Description

Definition at line 17 of file PlotCompareUtility.h.


Member Enumeration Documentation

enum PlotCompareUtility::Axis

Enumerator:
axisX 
axisY 

Definition at line 27 of file PlotCompareUtility.h.

00027 { axisX, axisY /*, axisZ -- maybe later? */ };


Constructor & Destructor Documentation

PlotCompareUtility::PlotCompareUtility ( std::string  Reference,
std::string  New,
std::string  NewBasePath,
std::string  NewPrefix = "",
std::string  RefBasePath = "",
std::string  RefPrefix = "" 
)

virtual PlotCompareUtility::~PlotCompareUtility (  )  [virtual]


Member Function Documentation

HistoData* PlotCompareUtility::addHistoData ( std::string  Name,
int  PlotType 
) [inline]

Definition at line 93 of file PlotCompareUtility.h.

References addHistoData().

00093 { return addHistoData(Name,Name,PlotType); }

HistoData* PlotCompareUtility::addHistoData ( std::string  NewName,
std::string  RefName,
int  PlotType 
)

Referenced by addHistoData().

HistoData* PlotCompareUtility::addProjectionXData ( HistoData Parent,
std::string  Name,
int  PlotType,
int  Bin,
TH1 *  NewHisto,
TH1 *  RefHisto 
)

HistoData* PlotCompareUtility::addProjectionYData ( HistoData Parent,
std::string  Name,
int  PlotType,
int  Bin,
TH1 *  NewHisto,
TH1 *  RefHisto 
)

void PlotCompareUtility::centerRebin ( TH1 *  ,
TH1 *   
) [private]

void PlotCompareUtility::clearHistos (  )  [inline]

Definition at line 96 of file PlotCompareUtility.h.

References histos.

00096 { histos.clear(); }

void PlotCompareUtility::clearProjectionsX ( HistoData Parent  )  [inline]

Definition at line 97 of file PlotCompareUtility.h.

References projectionsX.

00097 { projectionsX[Parent].clear(); }

void PlotCompareUtility::clearProjectionsY ( HistoData Parent  )  [inline]

Definition at line 98 of file PlotCompareUtility.h.

References projectionsY.

00098 { projectionsY[Parent].clear(); }

template<int PlotType>
bool PlotCompareUtility::compare ( HistoData  )  [inline, private]

bool PlotCompareUtility::compare< Plot2D > ( HistoData HD  )  [inline]

void PlotCompareUtility::dump (  ) 

double PlotCompareUtility::getChi2Threshold (  )  const [inline]

Definition at line 39 of file PlotCompareUtility.h.

References chi2Threshold.

00039 { return chi2Threshold; }

bool PlotCompareUtility::getFinalResult (  )  const [inline]

Definition at line 41 of file PlotCompareUtility.h.

References finalResult.

00041 { return finalResult; }

std::vector<HistoData>* PlotCompareUtility::getHistos (  )  [inline]

Definition at line 30 of file PlotCompareUtility.h.

References histos.

00030 { return &histos; }

double PlotCompareUtility::getKSThreshold (  )  const [inline]

Definition at line 38 of file PlotCompareUtility.h.

References ksThreshold.

00038 { return ksThreshold; }

int PlotCompareUtility::getNumHistos (  )  const [inline]

Definition at line 33 of file PlotCompareUtility.h.

References histos.

00033 { return histos.size(); } 

int PlotCompareUtility::getPlotsBottomMargin (  )  const [inline]

Definition at line 63 of file PlotCompareUtility.h.

References plotsBottomMargin.

00063 { return plotsBottomMargin; }

int PlotCompareUtility::getPlotsHeight (  )  const [inline]

Definition at line 58 of file PlotCompareUtility.h.

References plotsHeight.

00058 { return plotsHeight; }

int PlotCompareUtility::getPlotsLeftMargin (  )  const [inline]

Definition at line 61 of file PlotCompareUtility.h.

References plotsLeftMargin.

00061 { return plotsLeftMargin; }

int PlotCompareUtility::getPlotsRightMargin (  )  const [inline]

Definition at line 62 of file PlotCompareUtility.h.

References plotsRightMargin.

00062 { return plotsRightMargin; }

int PlotCompareUtility::getPlotsTopMargin (  )  const [inline]

Definition at line 60 of file PlotCompareUtility.h.

References plotsTopMargin.

00060 { return plotsTopMargin; }

int PlotCompareUtility::getPlotsWidth (  )  const [inline]

Definition at line 59 of file PlotCompareUtility.h.

References plotsWidth.

00059 { return plotsWidth; }

int PlotCompareUtility::getProjectionsBarsThickness (  )  const [inline]

Definition at line 53 of file PlotCompareUtility.h.

References projectionsBarsThickness.

00053 { return projectionsBarsThickness; }

int PlotCompareUtility::getProjectionsBottomMargin (  )  const [inline]

Definition at line 57 of file PlotCompareUtility.h.

References projectionsBottomMargin.

00057 { return projectionsBottomMargin; }

int PlotCompareUtility::getProjectionsHeight (  )  const [inline]

Definition at line 51 of file PlotCompareUtility.h.

References projectionsHeight.

00051 { return projectionsHeight; }

int PlotCompareUtility::getProjectionsLeftMargin (  )  const [inline]

Definition at line 55 of file PlotCompareUtility.h.

References projectionsLeftMargin.

00055 { return projectionsLeftMargin; }

int PlotCompareUtility::getProjectionsRightMargin (  )  const [inline]

Definition at line 56 of file PlotCompareUtility.h.

References projectionsRightMargin.

00056 { return projectionsRightMargin; }

int PlotCompareUtility::getProjectionsTopMargin (  )  const [inline]

Definition at line 54 of file PlotCompareUtility.h.

References projectionsTopMargin.

00054 { return projectionsTopMargin; }

int PlotCompareUtility::getProjectionsWidth (  )  const [inline]

Definition at line 52 of file PlotCompareUtility.h.

References projectionsWidth.

00052 { return projectionsWidth; }

std::vector<HistoData>* PlotCompareUtility::getProjectionsX ( HistoData HD  )  [inline]

Definition at line 31 of file PlotCompareUtility.h.

References projectionsX.

00031 { return &projectionsX[HD]; }

std::vector<HistoData>* PlotCompareUtility::getProjectionsY ( HistoData HD  )  [inline]

Definition at line 32 of file PlotCompareUtility.h.

References projectionsY.

00032 { return &projectionsY[HD]; }

int PlotCompareUtility::getSummaryBarsThickness (  )  const [inline]

Definition at line 46 of file PlotCompareUtility.h.

References summaryBarsThickness.

00046 { return summaryBarsThickness; }

int PlotCompareUtility::getSummaryBottomMargin (  )  const [inline]

Definition at line 50 of file PlotCompareUtility.h.

References summaryBottomMargin.

00050 { return summaryBottomMargin; }

int PlotCompareUtility::getSummaryHeight (  )  const [inline]

Definition at line 45 of file PlotCompareUtility.h.

References summaryHeight.

00045 { return summaryHeight; }

int PlotCompareUtility::getSummaryLeftMargin (  )  const [inline]

Definition at line 48 of file PlotCompareUtility.h.

References summaryLeftMargin.

00048 { return summaryLeftMargin; }

int PlotCompareUtility::getSummaryRightMargin (  )  const [inline]

Definition at line 49 of file PlotCompareUtility.h.

References summaryRightMargin.

00049 { return summaryRightMargin; }

int PlotCompareUtility::getSummaryTopMargin (  )  const [inline]

Definition at line 47 of file PlotCompareUtility.h.

References summaryTopMargin.

00047 { return summaryTopMargin; }

int PlotCompareUtility::getSummaryWidth (  )  const [inline]

Definition at line 44 of file PlotCompareUtility.h.

References summaryWidth.

00044 { return summaryWidth; }

double PlotCompareUtility::getThreshold (  )  const

bool PlotCompareUtility::isValid (  )  const

void PlotCompareUtility::makeDefaultPlots (  ) 

template<int PlotType>
void PlotCompareUtility::makeHTML ( HistoData  )  [inline, private]

void PlotCompareUtility::makeHTML< Plot2D > ( HistoData HD  )  [inline]

template<int PlotType>
void PlotCompareUtility::makePlots ( HistoData  )  [inline, private]

void PlotCompareUtility::makePlots< Plot2D > ( HistoData HD  )  [inline]

void PlotCompareUtility::makeSummary ( std::string  Name  ) 

void PlotCompareUtility::makeSummaryHTML ( std::string  Name  ) 

void PlotCompareUtility::makeSummaryPlot ( std::string  Name  ) 

void PlotCompareUtility::renormalize ( TH1 *  ,
TH1 *   
) [private]

void PlotCompareUtility::setChi2Threshold ( double  Threshold  )  [inline]

Definition at line 67 of file PlotCompareUtility.h.

References chi2Threshold.

00067 { chi2Threshold = Threshold; }

void PlotCompareUtility::setKSThreshold ( double  Threshold  )  [inline]

Definition at line 66 of file PlotCompareUtility.h.

References ksThreshold.

00066 { ksThreshold = Threshold; }

void PlotCompareUtility::setPlotsBottomMargin ( int  Pixels  )  [inline]

Definition at line 89 of file PlotCompareUtility.h.

References plotsBottomMargin.

00089 { plotsBottomMargin = Pixels; }

void PlotCompareUtility::setPlotsHeight ( int  Pixels  )  [inline]

Definition at line 84 of file PlotCompareUtility.h.

References plotsHeight.

00084 { plotsHeight = Pixels; }

void PlotCompareUtility::setPlotsLeftMargin ( int  Pixels  )  [inline]

Definition at line 87 of file PlotCompareUtility.h.

References plotsLeftMargin.

00087 { plotsLeftMargin = Pixels; }

void PlotCompareUtility::setPlotsRightMargin ( int  Pixels  )  [inline]

Definition at line 88 of file PlotCompareUtility.h.

References plotsRightMargin.

00088 { plotsRightMargin = Pixels; }

void PlotCompareUtility::setPlotsTopMargin ( int  Pixels  )  [inline]

Definition at line 86 of file PlotCompareUtility.h.

References plotsTopMargin.

00086 { plotsTopMargin = Pixels; }

void PlotCompareUtility::setPlotsWidth ( int  Pixels  )  [inline]

Definition at line 85 of file PlotCompareUtility.h.

References plotsWidth.

00085 { plotsWidth = Pixels; }

void PlotCompareUtility::setProjectionsBarsThickness ( int  Pixels  )  [inline]

Definition at line 79 of file PlotCompareUtility.h.

References projectionsBarsThickness.

00079 { projectionsBarsThickness = Pixels; }

void PlotCompareUtility::setProjectionsBottomMargin ( int  Pixels  )  [inline]

Definition at line 83 of file PlotCompareUtility.h.

References projectionsBottomMargin.

00083 { projectionsBottomMargin = Pixels; }

void PlotCompareUtility::setProjectionsHeight ( int  Pixels  )  [inline]

Definition at line 78 of file PlotCompareUtility.h.

References projectionsHeight.

00078 { projectionsHeight = Pixels; }

void PlotCompareUtility::setProjectionsiWidth ( int  Pixels  )  [inline]

Definition at line 77 of file PlotCompareUtility.h.

References projectionsWidth.

00077 { projectionsWidth = Pixels; }

void PlotCompareUtility::setProjectionsLeftMargin ( int  Pixels  )  [inline]

Definition at line 81 of file PlotCompareUtility.h.

References projectionsLeftMargin.

00081 { projectionsLeftMargin = Pixels; }

void PlotCompareUtility::setProjectionsRightMargin ( int  Pixels  )  [inline]

Definition at line 82 of file PlotCompareUtility.h.

References projectionsRightMargin.

00082 { projectionsRightMargin = Pixels; }

void PlotCompareUtility::setProjectionsTopMargin ( int  Pixels  )  [inline]

Definition at line 80 of file PlotCompareUtility.h.

References projectionsTopMargin.

00080 { projectionsTopMargin = Pixels; }

void PlotCompareUtility::setSummaryBarsThickness ( int  Pixels  )  [inline]

Definition at line 72 of file PlotCompareUtility.h.

References summaryBarsThickness.

00072 { summaryBarsThickness = Pixels; }

void PlotCompareUtility::setSummaryBottomMargin ( int  Pixels  )  [inline]

Definition at line 76 of file PlotCompareUtility.h.

References summaryBottomMargin.

00076 { summaryBottomMargin = Pixels; }

void PlotCompareUtility::setSummaryHeight ( int  Pixels  )  [inline]

Definition at line 71 of file PlotCompareUtility.h.

References summaryHeight.

00071 { summaryHeight = Pixels; }

void PlotCompareUtility::setSummaryLeftMargin ( int  Pixels  )  [inline]

Definition at line 74 of file PlotCompareUtility.h.

References summaryLeftMargin.

00074 { summaryLeftMargin = Pixels; }

void PlotCompareUtility::setSummaryRightMargin ( int  Pixels  )  [inline]

Definition at line 75 of file PlotCompareUtility.h.

References summaryRightMargin.

00075 { summaryRightMargin = Pixels; }

void PlotCompareUtility::setSummaryTopMargin ( int  Pixels  )  [inline]

Definition at line 73 of file PlotCompareUtility.h.

References summaryTopMargin.

00073 { summaryTopMargin = Pixels; }

void PlotCompareUtility::setSummaryWidth ( int  Pixels  )  [inline]

Definition at line 70 of file PlotCompareUtility.h.

References summaryWidth.

00070 { summaryWidth = Pixels; }


Member Data Documentation

double PlotCompareUtility::chi2Threshold [private]

Definition at line 131 of file PlotCompareUtility.h.

Referenced by getChi2Threshold(), and setChi2Threshold().

bool PlotCompareUtility::finalResult [private]

Definition at line 167 of file PlotCompareUtility.h.

Referenced by getFinalResult().

std::vector<HistoData> PlotCompareUtility::histos [private]

Definition at line 117 of file PlotCompareUtility.h.

Referenced by clearHistos(), getHistos(), and getNumHistos().

double PlotCompareUtility::ksThreshold [private]

Definition at line 130 of file PlotCompareUtility.h.

Referenced by getKSThreshold(), and setKSThreshold().

std::string PlotCompareUtility::newBasePath [private]

Definition at line 124 of file PlotCompareUtility.h.

TFile* PlotCompareUtility::newFile [private]

Definition at line 123 of file PlotCompareUtility.h.

std::string PlotCompareUtility::newPrefix [private]

Definition at line 125 of file PlotCompareUtility.h.

int PlotCompareUtility::plotsBottomMargin [private]

Definition at line 164 of file PlotCompareUtility.h.

Referenced by getPlotsBottomMargin(), and setPlotsBottomMargin().

int PlotCompareUtility::plotsHeight [private]

Definition at line 160 of file PlotCompareUtility.h.

Referenced by getPlotsHeight(), and setPlotsHeight().

int PlotCompareUtility::plotsLeftMargin [private]

Definition at line 162 of file PlotCompareUtility.h.

Referenced by getPlotsLeftMargin(), and setPlotsLeftMargin().

int PlotCompareUtility::plotsRightMargin [private]

Definition at line 163 of file PlotCompareUtility.h.

Referenced by getPlotsRightMargin(), and setPlotsRightMargin().

int PlotCompareUtility::plotsTopMargin [private]

Definition at line 161 of file PlotCompareUtility.h.

Referenced by getPlotsTopMargin(), and setPlotsTopMargin().

int PlotCompareUtility::plotsWidth [private]

Definition at line 159 of file PlotCompareUtility.h.

Referenced by getPlotsWidth(), and setPlotsWidth().

int PlotCompareUtility::projectionsBarsThickness [private]

Definition at line 152 of file PlotCompareUtility.h.

Referenced by getProjectionsBarsThickness(), and setProjectionsBarsThickness().

int PlotCompareUtility::projectionsBottomMargin [private]

Definition at line 156 of file PlotCompareUtility.h.

Referenced by getProjectionsBottomMargin(), and setProjectionsBottomMargin().

int PlotCompareUtility::projectionsHeight [private]

Definition at line 151 of file PlotCompareUtility.h.

Referenced by getProjectionsHeight(), and setProjectionsHeight().

int PlotCompareUtility::projectionsLeftMargin [private]

Definition at line 154 of file PlotCompareUtility.h.

Referenced by getProjectionsLeftMargin(), and setProjectionsLeftMargin().

int PlotCompareUtility::projectionsRightMargin [private]

Definition at line 155 of file PlotCompareUtility.h.

Referenced by getProjectionsRightMargin(), and setProjectionsRightMargin().

int PlotCompareUtility::projectionsTopMargin [private]

Definition at line 153 of file PlotCompareUtility.h.

Referenced by getProjectionsTopMargin(), and setProjectionsTopMargin().

int PlotCompareUtility::projectionsWidth [private]

Definition at line 150 of file PlotCompareUtility.h.

Referenced by getProjectionsWidth(), and setProjectionsiWidth().

std::map<HistoData *,std::vector<HistoData> > PlotCompareUtility::projectionsX [private]

Definition at line 118 of file PlotCompareUtility.h.

Referenced by clearProjectionsX(), and getProjectionsX().

std::map<HistoData *,std::vector<HistoData> > PlotCompareUtility::projectionsY [private]

Definition at line 119 of file PlotCompareUtility.h.

Referenced by clearProjectionsY(), and getProjectionsY().

std::string PlotCompareUtility::refBasePath [private]

Definition at line 126 of file PlotCompareUtility.h.

TFile* PlotCompareUtility::refFile [private]

Definition at line 122 of file PlotCompareUtility.h.

std::string PlotCompareUtility::refPrefix [private]

Definition at line 127 of file PlotCompareUtility.h.

int PlotCompareUtility::summaryBarsThickness [private]

Definition at line 143 of file PlotCompareUtility.h.

Referenced by getSummaryBarsThickness(), and setSummaryBarsThickness().

int PlotCompareUtility::summaryBottomMargin [private]

Definition at line 147 of file PlotCompareUtility.h.

Referenced by getSummaryBottomMargin(), and setSummaryBottomMargin().

int PlotCompareUtility::summaryHeight [private]

Definition at line 142 of file PlotCompareUtility.h.

Referenced by getSummaryHeight(), and setSummaryHeight().

int PlotCompareUtility::summaryLeftMargin [private]

Definition at line 145 of file PlotCompareUtility.h.

Referenced by getSummaryLeftMargin(), and setSummaryLeftMargin().

int PlotCompareUtility::summaryRightMargin [private]

Definition at line 146 of file PlotCompareUtility.h.

Referenced by getSummaryRightMargin(), and setSummaryRightMargin().

int PlotCompareUtility::summaryTopMargin [private]

Definition at line 144 of file PlotCompareUtility.h.

Referenced by getSummaryTopMargin(), and setSummaryTopMargin().

int PlotCompareUtility::summaryWidth [private]

Definition at line 141 of file PlotCompareUtility.h.

Referenced by getSummaryWidth(), and setSummaryWidth().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:30:09 2009 for CMSSW by  doxygen 1.5.4