#include <Comparator.h>
Public Types | |
enum | Mode { NORMAL, SCALE, RATIO, GRAPH, EFF } |
Public Member Functions | |
Comparator () | |
Comparator (const char *file0, const char *dir0, const char *file1, const char *dir1) | |
TDirectory * | dir0 () |
TDirectory * | dir1 () |
void | Draw (const char *key, Mode mode) |
void | Draw (const char *key0, const char *key1, Mode mode) |
void | DrawGaussSigmaOverMeanSlice (const char *key, const char *key2, const int rebinFactor, Mode mode) |
void | DrawGaussSigmaOverMeanXSlice (const char *key, const int rebinFactor, const int binxmin, const int binxmax, const bool cst_binning, Mode mode) |
void | DrawGaussSigmaSlice (const char *key, const int rebinFactor, Mode mode) |
void | DrawGaussSigmaSlice (const char *key, const int rebinFactor, const int binxmin, const int binxmax, const bool cst_binning, Mode mode) |
void | DrawMeanSlice (const char *key, const int rebinFactor, Mode mode) |
void | DrawSigmaSlice (const char *key, const int rebinFactor, Mode mode) |
void | DrawSlice (const char *key, int binxmin, int binxmax, Mode mode) |
TH1 * | h0 () |
TH1 * | h1 () |
TH1 * | Histo (const char *key, unsigned dirIndex) |
TLegend & | Legend () |
const TLegend & | Legend () const |
void | SetAxis (int rebin, float xmin, float xmax) |
void | SetAxis (int rebin) |
void | SetDirs (const char *file0, const char *dir0, const char *file1, const char *dir1) |
set the 2 files, and the directory within each file, in which the histograms will be compared More... | |
void | SetStyles (Style *s0, Style *s1, const char *leg0, const char *leg1) |
Private Member Functions | |
void | Draw (TH1 *h0, TH1 *h1, Mode mode) |
Private Attributes | |
TDirectory * | dir0_ |
TDirectory * | dir1_ |
TFile * | file0_ |
TFile * | file1_ |
TH1 * | h0_ |
TH1 * | h1_ |
TLegend | legend_ |
int | rebin_ |
bool | resetAxis_ |
Style * | s0_ |
Style * | s1_ |
float | xMax_ |
float | xMin_ |
Definition at line 15 of file Comparator.h.
enum Comparator::Mode |
Enumerator | |
---|---|
NORMAL | |
SCALE | |
RATIO | |
GRAPH | |
EFF |
Definition at line 19 of file Comparator.h.
|
inline |
Definition at line 27 of file Comparator.h.
Referenced by PhysicsTools::Calibration::MVAComputerContainer::add().
|
inline |
Definition at line 30 of file Comparator.h.
References dir0(), dir1(), edmOneToOneComparison::file1, and SetDirs().
|
inline |
|
inline |
Definition at line 97 of file Comparator.h.
References dir1_, Draw(), h0(), and h1().
Referenced by Comparator().
void Comparator::Draw | ( | const char * | key, |
Mode | mode | ||
) |
Definition at line 293 of file Comparator.cc.
Referenced by dir1(), and SetAxis().
void Comparator::Draw | ( | const char * | key0, |
const char * | key1, | ||
Mode | mode | ||
) |
Definition at line 304 of file Comparator.cc.
|
private |
Definition at line 360 of file Comparator.cc.
References MessageLogger_cfi::cerr, Styles::FormatHisto(), SiStripPI::max, min(), RATIO, AlCaHLTBitMon_QueryRunRegistry::string, and RecoTauValidation_cfi::text.
void Comparator::DrawGaussSigmaOverMeanSlice | ( | const char * | key, |
const char * | key2, | ||
const int | rebinFactor, | ||
Mode | mode | ||
) |
Definition at line 261 of file Comparator.cc.
References TH2Analyzer::Average(), dir, hcalSimParameters_cfi::hb, and TH2Analyzer::SigmaGauss().
Referenced by SetAxis().
void Comparator::DrawGaussSigmaOverMeanXSlice | ( | const char * | key, |
const int | rebinFactor, | ||
const int | binxmin, | ||
const int | binxmax, | ||
const bool | cst_binning, | ||
Mode | mode | ||
) |
Definition at line 194 of file Comparator.cc.
References dir, fitFunction_f(), hcalSimParameters_cfi::hb, TH2Analyzer::MeanX(), TH2Analyzer::RMS(), and TH2Analyzer::SigmaGauss().
Referenced by SetAxis().
void Comparator::DrawGaussSigmaSlice | ( | const char * | key, |
const int | rebinFactor, | ||
Mode | mode | ||
) |
Definition at line 119 of file Comparator.cc.
References dir, hcalSimParameters_cfi::hb, and TH2Analyzer::SigmaGauss().
Referenced by SetAxis().
void Comparator::DrawGaussSigmaSlice | ( | const char * | key, |
const int | rebinFactor, | ||
const int | binxmin, | ||
const int | binxmax, | ||
const bool | cst_binning, | ||
Mode | mode | ||
) |
Definition at line 142 of file Comparator.cc.
References dir, fitFunction_f(), hcalSimParameters_cfi::hb, TH2Analyzer::RMS(), and TH2Analyzer::SigmaGauss().
void Comparator::DrawMeanSlice | ( | const char * | key, |
const int | rebinFactor, | ||
Mode | mode | ||
) |
Definition at line 85 of file Comparator.cc.
References TH2Analyzer::Average(), dir, and hcalSimParameters_cfi::hb.
Referenced by SetAxis().
void Comparator::DrawSigmaSlice | ( | const char * | key, |
const int | rebinFactor, | ||
Mode | mode | ||
) |
Definition at line 102 of file Comparator.cc.
References dir, hcalSimParameters_cfi::hb, and TH2Analyzer::RMS().
Referenced by SetAxis().
void Comparator::DrawSlice | ( | const char * | key, |
int | binxmin, | ||
int | binxmax, | ||
Mode | mode | ||
) |
Definition at line 47 of file Comparator.cc.
References MessageLogger_cfi::cerr, and pileupDistInMC::num.
Referenced by SetAxis().
|
inline |
|
inline |
TH1 * Comparator::Histo | ( | const char * | key, |
unsigned | dirIndex | ||
) |
Definition at line 341 of file Comparator.cc.
References MessageLogger_cfi::cerr, dir, h, and mitigatedMETSequence_cff::U.
Referenced by Legend().
|
inline |
|
inline |
|
inline |
Definition at line 47 of file Comparator.h.
References rebin_, resetAxis_, TrackerOfflineValidation_Dqm_cff::xmax, xMax_, TrackerOfflineValidation_Dqm_cff::xmin, and xMin_.
|
inline |
Definition at line 57 of file Comparator.h.
References Draw(), DrawGaussSigmaOverMeanSlice(), DrawGaussSigmaOverMeanXSlice(), DrawGaussSigmaSlice(), DrawMeanSlice(), DrawSigmaSlice(), DrawSlice(), crabWrapper::key, ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, rebin_, and resetAxis_.
void Comparator::SetDirs | ( | const char * | file0, |
const char * | dir0, | ||
const char * | file1, | ||
const char * | dir1 | ||
) |
set the 2 files, and the directory within each file, in which the histograms will be compared
Definition at line 18 of file Comparator.cc.
References cmsRelvalreport::exit.
Referenced by Comparator().
|
private |
Definition at line 114 of file Comparator.h.
Referenced by dir0().
|
private |
Definition at line 116 of file Comparator.h.
Referenced by dir1().
|
private |
Definition at line 113 of file Comparator.h.
|
private |
Definition at line 115 of file Comparator.h.
|
private |
Definition at line 118 of file Comparator.h.
Referenced by h0().
|
private |
Definition at line 119 of file Comparator.h.
Referenced by h1().
|
private |
Definition at line 124 of file Comparator.h.
Referenced by Legend().
|
private |
Definition at line 108 of file Comparator.h.
Referenced by SetAxis().
|
private |
Definition at line 111 of file Comparator.h.
Referenced by SetAxis().
|
private |
Definition at line 121 of file Comparator.h.
|
private |
Definition at line 122 of file Comparator.h.
|
private |
Definition at line 110 of file Comparator.h.
Referenced by SetAxis().
|
private |
Definition at line 109 of file Comparator.h.
Referenced by SetAxis().