#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.
|
inline |
Definition at line 30 of file Comparator.h.
References SetDirs().
|
inline |
|
inline |
void Comparator::Draw | ( | const char * | key, |
Mode | mode | ||
) |
Definition at line 293 of file Comparator.cc.
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 ecal_dqm_sourceclient-live_cfg::cerr, Styles::FormatHisto(), bookConverter::max, min(), RATIO, AlCaHLTBitMon_QueryRunRegistry::string, and runonSM::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, and TH2Analyzer::SigmaGauss().
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(), TH2Analyzer::MeanX(), TH2Analyzer::RMS(), and TH2Analyzer::SigmaGauss().
void Comparator::DrawGaussSigmaSlice | ( | const char * | key, |
const int | rebinFactor, | ||
Mode | mode | ||
) |
Definition at line 119 of file Comparator.cc.
References dir, and TH2Analyzer::SigmaGauss().
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(), 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(), and dir.
void Comparator::DrawSigmaSlice | ( | const char * | key, |
const int | rebinFactor, | ||
Mode | mode | ||
) |
Definition at line 102 of file Comparator.cc.
References dir, and TH2Analyzer::RMS().
void Comparator::DrawSlice | ( | const char * | key, |
int | binxmin, | ||
int | binxmax, | ||
Mode | mode | ||
) |
Definition at line 47 of file Comparator.cc.
References ecal_dqm_sourceclient-live_cfg::cerr, and pileupDistInMC::num.
|
inline |
|
inline |
TH1 * Comparator::Histo | ( | const char * | key, |
unsigned | dirIndex | ||
) |
Definition at line 341 of file Comparator.cc.
References assert(), ecal_dqm_sourceclient-live_cfg::cerr, dir, and h.
|
inline |
|
inline |
|
inline |
Definition at line 47 of file Comparator.h.
References rebin_, resetAxis_, hlt_dqm_clientPB-live_cfg::xmax, xMax_, hlt_dqm_clientPB-live_cfg::xmin, and xMin_.
|
inline |
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().
Definition at line 35 of file Comparator.cc.
|
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().