#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) |
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 17 of file Comparator.h.
|
inline |
Definition at line 19 of file Comparator.h.
|
inline |
Definition at line 21 of file Comparator.h.
References SetDirs().
|
inline |
|
inline |
void Comparator::Draw | ( | const char * | key, |
Mode | mode | ||
) |
Definition at line 306 of file Comparator.cc.
void Comparator::Draw | ( | const char * | key0, |
const char * | key1, | ||
Mode | mode | ||
) |
Definition at line 315 of file Comparator.cc.
|
private |
Definition at line 369 of file Comparator.cc.
References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, Styles::FormatHisto(), SiStripPI::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 276 of file Comparator.cc.
References TH2Analyzer::Average(), DeadROC_duringRun::dir, hcalSimParameters_cfi::hb, 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 195 of file Comparator.cc.
References DeadROC_duringRun::dir, fitFunction_f(), hcalSimParameters_cfi::hb, TH2Analyzer::MeanX(), TH2Analyzer::RMS(), and TH2Analyzer::SigmaGauss().
void Comparator::DrawGaussSigmaSlice | ( | const char * | key, |
const int | rebinFactor, | ||
Mode | mode | ||
) |
Definition at line 105 of file Comparator.cc.
References DeadROC_duringRun::dir, hcalSimParameters_cfi::hb, 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 128 of file Comparator.cc.
References DeadROC_duringRun::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 73 of file Comparator.cc.
References TH2Analyzer::Average(), DeadROC_duringRun::dir, and hcalSimParameters_cfi::hb.
void Comparator::DrawSigmaSlice | ( | const char * | key, |
const int | rebinFactor, | ||
Mode | mode | ||
) |
Definition at line 89 of file Comparator.cc.
References DeadROC_duringRun::dir, hcalSimParameters_cfi::hb, and TH2Analyzer::RMS().
void Comparator::DrawSlice | ( | const char * | key, |
int | binxmin, | ||
int | binxmax, | ||
Mode | mode | ||
) |
Definition at line 42 of file Comparator.cc.
References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, and pileupDistInMC::num.
|
inline |
|
inline |
TH1 * Comparator::Histo | ( | const char * | key, |
unsigned | dirIndex | ||
) |
Definition at line 349 of file Comparator.cc.
References cms::cuda::assert(), EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, DeadROC_duringRun::dir, and h.
|
inline |
|
inline |
|
inline |
Definition at line 31 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 17 of file Comparator.cc.
References beamvalidation::exit().
Referenced by Comparator().
Definition at line 33 of file Comparator.cc.
|
private |
Definition at line 90 of file Comparator.h.
Referenced by dir0().
|
private |
Definition at line 92 of file Comparator.h.
Referenced by dir1().
|
private |
Definition at line 89 of file Comparator.h.
|
private |
Definition at line 91 of file Comparator.h.
|
private |
Definition at line 94 of file Comparator.h.
Referenced by h0().
|
private |
Definition at line 95 of file Comparator.h.
Referenced by h1().
|
private |
Definition at line 100 of file Comparator.h.
Referenced by Legend().
|
private |
Definition at line 84 of file Comparator.h.
Referenced by SetAxis().
|
private |
Definition at line 87 of file Comparator.h.
Referenced by SetAxis().
|
private |
Definition at line 97 of file Comparator.h.
|
private |
Definition at line 98 of file Comparator.h.
|
private |
Definition at line 86 of file Comparator.h.
Referenced by SetAxis().
|
private |
Definition at line 85 of file Comparator.h.
Referenced by SetAxis().