CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
PlotCompareUtility Class Reference

#include <PlotCompareUtility.h>

Public Types

enum  Axis { axisX, axisY }
 

Public Member Functions

HistoDataaddHistoData (std::string NewName, std::string RefName, int PlotType)
 
HistoDataaddHistoData (std::string Name, 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

Enumerator
axisX 
axisY 

Definition at line 27 of file PlotCompareUtility.h.

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  NewName,
std::string  RefName,
int  PlotType 
)
HistoData* PlotCompareUtility::addHistoData ( std::string  Name,
int  PlotType 
)
inline

Definition at line 93 of file PlotCompareUtility.h.

References addHistoData().

Referenced by addHistoData().

93 { return addHistoData(Name,Name,PlotType); }
PlotType
HistoData * addHistoData(std::string NewName, std::string RefName, int PlotType)
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.

96 { histos.clear(); }
std::vector< HistoData > histos
void PlotCompareUtility::clearProjectionsX ( HistoData Parent)
inline

Definition at line 97 of file PlotCompareUtility.h.

References projectionsX.

97 { projectionsX[Parent].clear(); }
std::map< HistoData *, std::vector< HistoData > > projectionsX
void PlotCompareUtility::clearProjectionsY ( HistoData Parent)
inline

Definition at line 98 of file PlotCompareUtility.h.

References projectionsY.

98 { projectionsY[Parent].clear(); }
std::map< HistoData *, std::vector< HistoData > > projectionsY
bool PlotCompareUtility::compare< Plot2D > ( HistoData HD)

Definition at line 18 of file Plot1D.h.

References ecal_dqm_sourceclient-live_cfg::cerr, and NULL.

18  {
19 
20  // get the reference and comparison histograms
21  TH1F *href = (TH1F *)HD->getRefHisto();
22  TH1F *hnew = (TH1F *)HD->getNewHisto();
23 
24  // do not run comparisons if either histogram is empty/broken
25  if (hnew == NULL || href == NULL || hnew->GetEntries() <= 1 || href->GetEntries() <= 1) {
26  //std::cerr << HD->getName() << " error: unable to retrieve histogram (or no entries)\n";
27  HD->setIsEmpty(true); return false;
28  }
29 
30  // rebin histograms and center on common range
31  if (HD->getDoAllow1DRebinning()) centerRebin(href,hnew);
32 
33  // run statistical comparisons
34  double ksScore = hnew->KolmogorovTest(href,"D");
35  double chi2Score = hnew->Chi2Test(href,"uup");
36 
37  // renormalize histograms for common display
38  renormalize(href,hnew);
39 
40  // set ks/chi2 and determine high/low scores
41  HD->setKSScore(ksScore); HD->setChi2Score(chi2Score);
42  if (ksThreshold > 0 && chi2Threshold > 0) {
43  HD->setLowScore(ksScore < chi2Score ? ksScore : chi2Score);
44  HD->setHighScore(ksScore > chi2Score ? ksScore : chi2Score);
45  }
46  else if (ksThreshold > 0) { HD->setLowScore(ksScore); HD->setHighScore(ksScore); }
47  else if (chi2Threshold > 0) { HD->setLowScore(chi2Score); HD->setHighScore(chi2Score); }
48  else std::cerr << "error: no test performed? chi2Threshold and ksThreshold <= 0\n";
49 
50  // check overall result
51  bool passed = (ksScore >= ksThreshold && chi2Score >= chi2Threshold);
52  HD->setResult(passed);
53 // if (!passed) std::cout << "NOTPASSED!!!!"; else std::cout << "YESPASSED!";
54  // returns true on test passed and false on test failed
55  HD->setIsEmpty(false);
56  return passed;
57 
58 }
void renormalize(TH1 *, TH1 *)
void setResult(bool Result)
#define NULL
Definition: scimark2.h:8
bool getDoAllow1DRebinning() const
Definition: HistoData.h:29
TH1 * getRefHisto() const
Definition: HistoData.h:23
void setIsEmpty(bool Toggle)
Definition: HistoData.h:80
void setKSScore(float Score)
Definition: HistoData.h:75
void setChi2Score(float Score)
Definition: HistoData.h:76
void setHighScore(float Score)
Definition: HistoData.h:78
TH1 * getNewHisto() const
Definition: HistoData.h:22
void centerRebin(TH1 *, TH1 *)
void setLowScore(float Score)
Definition: HistoData.h:77
template<int PlotType>
bool PlotCompareUtility::compare ( HistoData )
private
void PlotCompareUtility::dump ( )
double PlotCompareUtility::getChi2Threshold ( ) const
inline

Definition at line 39 of file PlotCompareUtility.h.

References chi2Threshold.

39 { return chi2Threshold; }
bool PlotCompareUtility::getFinalResult ( ) const
inline

Definition at line 41 of file PlotCompareUtility.h.

References finalResult.

41 { return finalResult; }
std::vector<HistoData>* PlotCompareUtility::getHistos ( void  )
inline

Definition at line 30 of file PlotCompareUtility.h.

References histos.

30 { return &histos; }
std::vector< HistoData > histos
double PlotCompareUtility::getKSThreshold ( ) const
inline

Definition at line 38 of file PlotCompareUtility.h.

References ksThreshold.

38 { return ksThreshold; }
int PlotCompareUtility::getNumHistos ( ) const
inline

Definition at line 33 of file PlotCompareUtility.h.

References histos.

33 { return histos.size(); }
std::vector< HistoData > histos
int PlotCompareUtility::getPlotsBottomMargin ( ) const
inline

Definition at line 63 of file PlotCompareUtility.h.

References plotsBottomMargin.

63 { return plotsBottomMargin; }
int PlotCompareUtility::getPlotsHeight ( ) const
inline

Definition at line 58 of file PlotCompareUtility.h.

References plotsHeight.

58 { return plotsHeight; }
int PlotCompareUtility::getPlotsLeftMargin ( ) const
inline

Definition at line 61 of file PlotCompareUtility.h.

References plotsLeftMargin.

61 { return plotsLeftMargin; }
int PlotCompareUtility::getPlotsRightMargin ( ) const
inline

Definition at line 62 of file PlotCompareUtility.h.

References plotsRightMargin.

62 { return plotsRightMargin; }
int PlotCompareUtility::getPlotsTopMargin ( ) const
inline

Definition at line 60 of file PlotCompareUtility.h.

References plotsTopMargin.

60 { return plotsTopMargin; }
int PlotCompareUtility::getPlotsWidth ( ) const
inline

Definition at line 59 of file PlotCompareUtility.h.

References plotsWidth.

59 { return plotsWidth; }
int PlotCompareUtility::getProjectionsBarsThickness ( ) const
inline

Definition at line 53 of file PlotCompareUtility.h.

References projectionsBarsThickness.

int PlotCompareUtility::getProjectionsBottomMargin ( ) const
inline

Definition at line 57 of file PlotCompareUtility.h.

References projectionsBottomMargin.

int PlotCompareUtility::getProjectionsHeight ( ) const
inline

Definition at line 51 of file PlotCompareUtility.h.

References projectionsHeight.

51 { return projectionsHeight; }
int PlotCompareUtility::getProjectionsLeftMargin ( ) const
inline

Definition at line 55 of file PlotCompareUtility.h.

References projectionsLeftMargin.

int PlotCompareUtility::getProjectionsRightMargin ( ) const
inline

Definition at line 56 of file PlotCompareUtility.h.

References projectionsRightMargin.

int PlotCompareUtility::getProjectionsTopMargin ( ) const
inline

Definition at line 54 of file PlotCompareUtility.h.

References projectionsTopMargin.

int PlotCompareUtility::getProjectionsWidth ( ) const
inline

Definition at line 52 of file PlotCompareUtility.h.

References projectionsWidth.

52 { return projectionsWidth; }
std::vector<HistoData>* PlotCompareUtility::getProjectionsX ( HistoData HD)
inline

Definition at line 31 of file PlotCompareUtility.h.

References projectionsX.

31 { return &projectionsX[HD]; }
std::map< HistoData *, std::vector< HistoData > > projectionsX
std::vector<HistoData>* PlotCompareUtility::getProjectionsY ( HistoData HD)
inline

Definition at line 32 of file PlotCompareUtility.h.

References projectionsY.

32 { return &projectionsY[HD]; }
std::map< HistoData *, std::vector< HistoData > > projectionsY
int PlotCompareUtility::getSummaryBarsThickness ( ) const
inline

Definition at line 46 of file PlotCompareUtility.h.

References summaryBarsThickness.

int PlotCompareUtility::getSummaryBottomMargin ( ) const
inline

Definition at line 50 of file PlotCompareUtility.h.

References summaryBottomMargin.

int PlotCompareUtility::getSummaryHeight ( ) const
inline

Definition at line 45 of file PlotCompareUtility.h.

References summaryHeight.

45 { return summaryHeight; }
int PlotCompareUtility::getSummaryLeftMargin ( ) const
inline

Definition at line 48 of file PlotCompareUtility.h.

References summaryLeftMargin.

48 { return summaryLeftMargin; }
int PlotCompareUtility::getSummaryRightMargin ( ) const
inline

Definition at line 49 of file PlotCompareUtility.h.

References summaryRightMargin.

int PlotCompareUtility::getSummaryTopMargin ( ) const
inline

Definition at line 47 of file PlotCompareUtility.h.

References summaryTopMargin.

47 { return summaryTopMargin; }
int PlotCompareUtility::getSummaryWidth ( ) const
inline

Definition at line 44 of file PlotCompareUtility.h.

References summaryWidth.

44 { return summaryWidth; }
double PlotCompareUtility::getThreshold ( ) const
bool PlotCompareUtility::isValid ( ) const
void PlotCompareUtility::makeDefaultPlots ( )
void PlotCompareUtility::makeHTML< Plot2D > ( HistoData HD)

Definition at line 135 of file Plot1D.h.

135  {
136 
137  /* HTML is not presently required for 1D histograms -- do nothing
138 
139  // create HTML support code for this HistoData
140  std::string Name = hd->getName();
141  std::string gifName = Name + "_Results.gif";
142  std::string html = Name + "_Results.html";
143  ofstream fout(html.c_str());
144 
145  // simply link to the appropriate image overlay
146  fout << "<html><body><img src=\"" << gifName << "\"></body></html>" << endl;
147 
148  // close the file
149  fout.close();
150 
151  */
152 
153 }
template<int PlotType>
void PlotCompareUtility::makeHTML ( HistoData )
private
void PlotCompareUtility::makePlots< Plot2D > ( HistoData HD)

Definition at line 61 of file Plot1D.h.

References ecal_dqm_sourceclient-live_cfg::cerr, WDecay::kNone, AlCaHLTBitMon_QueryRunRegistry::string, and indexGen::title.

61  {
62 
63  std::cerr << HD->getName() << "makePlots<Plot1D>\n";
64 
65  // do not make any new plot if empty
66  if (HD->getIsEmpty()) {
67  HD->setResultImage("NoData_Results.gif");
68  HD->setResultTarget("NoData_Results.gif");
69  return;
70  }
71 
72  // get the reference and comparison histograms
73  TH1F *href = (TH1F *)HD->getRefHisto();
74  TH1F *hnew = (TH1F *)HD->getNewHisto();
75 
76  // set drawing options on the reference histogram
77  href->SetStats(0);
78  href->SetLineWidth(2);
79  href->SetLineColor(14);
80  href->SetMarkerColor(14);
81  href->SetFillColor(18);
82 
83  // set drawing options on the new histogram
84  hnew->SetStats(0);
85  hnew->SetLineWidth(2);
86  hnew->SetLineColor(HD->getShadedLineColor());
87  hnew->SetFillStyle(HD->getShadedFillStyle());
88  hnew->SetFillColor(HD->getShadedFillColor());
89 
90  // place the test results as the title
91  TString title = HD->getName();
92  if (ksThreshold > 0) title += " KS Score = "; title += HD->getKSScore();
93  if (chi2Threshold > 0) title += " Chi^2 Score = "; title += HD->getChi2Score();
94 
95  // the canvas is rescaled during gif conversion, so add padding to Canvas dimensions
96  int plotsCanvasWidth = plotsWidth + 4;
97  int plotsCanvasHeight = plotsHeight + 28;
98 
99  // setup canvas for displaying the compared histograms
100  TCanvas hCanvas("hCanvas","hCanvas",plotsCanvasWidth,plotsCanvasHeight);
101  hCanvas.SetTopMargin(float(plotsTopMargin) / plotsHeight);
102  hCanvas.SetLeftMargin(float(plotsLeftMargin) / plotsWidth);
103  hCanvas.SetRightMargin(float(plotsRightMargin) / plotsWidth);
104  hCanvas.SetBottomMargin(float(plotsBottomMargin) / plotsHeight);
105  hCanvas.SetFrameFillColor(10);
106  hCanvas.SetGrid();
107  hCanvas.SetLogy(1);
108  hCanvas.Draw();
109 
110  TText canvasTitle(0.1,0.97,title.Data());
111  canvasTitle.Draw("SAME");
112 
113  // draw the histograms
114  href->Draw();
115  hnew->Draw("SAME");
116  if (HD->getDoDrawErrorBars()) hnew->Draw("E1SAME");
117 
118  // draw a legend
119  TLegend legend(0.15,0.01,0.3, 0.08);
120  legend.AddEntry(hnew,"New","lF");
121  legend.AddEntry(href,"Reference","lF");
122  legend.SetFillColor(kNone);
123  legend.Draw("SAME");
124 
125  // create the plots overlay image
126  std::string gifName = HD->getName() + "_Results.gif";
127  if (HD->getResultImage() == "") HD->setResultImage(gifName);
128  if (HD->getResultTarget() == "") HD->setResultTarget(gifName);
129  std::cerr << "About to print" << gifName << "\n";
130  hCanvas.Print(gifName.c_str());
131 
132 }
float getKSScore() const
Definition: HistoData.h:39
std::string getName() const
Definition: HistoData.h:18
int getShadedLineColor() const
Definition: HistoData.h:51
void setResultTarget(std::string Target)
Definition: HistoData.h:61
bool getDoDrawErrorBars() const
Definition: HistoData.h:28
TH1 * getRefHisto() const
Definition: HistoData.h:23
float getChi2Score() const
Definition: HistoData.h:40
bool getIsEmpty() const
Definition: HistoData.h:44
void setResultImage(std::string Image)
Definition: HistoData.h:60
int getShadedFillStyle() const
Definition: HistoData.h:53
TH1 * getNewHisto() const
Definition: HistoData.h:22
std::string getResultImage() const
Definition: HistoData.h:24
std::string getResultTarget() const
Definition: HistoData.h:25
int getShadedFillColor() const
Definition: HistoData.h:52
template<int PlotType>
void PlotCompareUtility::makePlots ( HistoData )
private
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.

67 { chi2Threshold = Threshold; }
void PlotCompareUtility::setKSThreshold ( double  Threshold)
inline

Definition at line 66 of file PlotCompareUtility.h.

References ksThreshold.

66 { ksThreshold = Threshold; }
void PlotCompareUtility::setPlotsBottomMargin ( int  Pixels)
inline

Definition at line 89 of file PlotCompareUtility.h.

References plotsBottomMargin.

89 { plotsBottomMargin = Pixels; }
void PlotCompareUtility::setPlotsHeight ( int  Pixels)
inline

Definition at line 84 of file PlotCompareUtility.h.

References plotsHeight.

84 { plotsHeight = Pixels; }
void PlotCompareUtility::setPlotsLeftMargin ( int  Pixels)
inline

Definition at line 87 of file PlotCompareUtility.h.

References plotsLeftMargin.

87 { plotsLeftMargin = Pixels; }
void PlotCompareUtility::setPlotsRightMargin ( int  Pixels)
inline

Definition at line 88 of file PlotCompareUtility.h.

References plotsRightMargin.

88 { plotsRightMargin = Pixels; }
void PlotCompareUtility::setPlotsTopMargin ( int  Pixels)
inline

Definition at line 86 of file PlotCompareUtility.h.

References plotsTopMargin.

86 { plotsTopMargin = Pixels; }
void PlotCompareUtility::setPlotsWidth ( int  Pixels)
inline

Definition at line 85 of file PlotCompareUtility.h.

References plotsWidth.

85 { plotsWidth = Pixels; }
void PlotCompareUtility::setProjectionsBarsThickness ( int  Pixels)
inline

Definition at line 79 of file PlotCompareUtility.h.

References projectionsBarsThickness.

void PlotCompareUtility::setProjectionsBottomMargin ( int  Pixels)
inline

Definition at line 83 of file PlotCompareUtility.h.

References projectionsBottomMargin.

83 { projectionsBottomMargin = Pixels; }
void PlotCompareUtility::setProjectionsHeight ( int  Pixels)
inline

Definition at line 78 of file PlotCompareUtility.h.

References projectionsHeight.

78 { projectionsHeight = Pixels; }
void PlotCompareUtility::setProjectionsiWidth ( int  Pixels)
inline

Definition at line 77 of file PlotCompareUtility.h.

References projectionsWidth.

77 { projectionsWidth = Pixels; }
void PlotCompareUtility::setProjectionsLeftMargin ( int  Pixels)
inline

Definition at line 81 of file PlotCompareUtility.h.

References projectionsLeftMargin.

81 { projectionsLeftMargin = Pixels; }
void PlotCompareUtility::setProjectionsRightMargin ( int  Pixels)
inline

Definition at line 82 of file PlotCompareUtility.h.

References projectionsRightMargin.

82 { projectionsRightMargin = Pixels; }
void PlotCompareUtility::setProjectionsTopMargin ( int  Pixels)
inline

Definition at line 80 of file PlotCompareUtility.h.

References projectionsTopMargin.

80 { projectionsTopMargin = Pixels; }
void PlotCompareUtility::setSummaryBarsThickness ( int  Pixels)
inline

Definition at line 72 of file PlotCompareUtility.h.

References summaryBarsThickness.

72 { summaryBarsThickness = Pixels; }
void PlotCompareUtility::setSummaryBottomMargin ( int  Pixels)
inline

Definition at line 76 of file PlotCompareUtility.h.

References summaryBottomMargin.

76 { summaryBottomMargin = Pixels; }
void PlotCompareUtility::setSummaryHeight ( int  Pixels)
inline

Definition at line 71 of file PlotCompareUtility.h.

References summaryHeight.

71 { summaryHeight = Pixels; }
void PlotCompareUtility::setSummaryLeftMargin ( int  Pixels)
inline

Definition at line 74 of file PlotCompareUtility.h.

References summaryLeftMargin.

74 { summaryLeftMargin = Pixels; }
void PlotCompareUtility::setSummaryRightMargin ( int  Pixels)
inline

Definition at line 75 of file PlotCompareUtility.h.

References summaryRightMargin.

75 { summaryRightMargin = Pixels; }
void PlotCompareUtility::setSummaryTopMargin ( int  Pixels)
inline

Definition at line 73 of file PlotCompareUtility.h.

References summaryTopMargin.

73 { summaryTopMargin = Pixels; }
void PlotCompareUtility::setSummaryWidth ( int  Pixels)
inline

Definition at line 70 of file PlotCompareUtility.h.

References summaryWidth.

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