#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, const int binxmin, const int binxmax, const bool cst_binning, Mode mode) |
void | DrawGaussSigmaSlice (const char *key, const int rebinFactor, 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) |
void | SetAxis (int rebin, float xmin, float xmax) |
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 |
|
inline |
Definition at line 19 of file Comparator.h.
|
inline |
|
inline |
|
inline |
void Comparator::Draw | ( | const char * | key, |
Mode | mode | ||
) |
Definition at line 306 of file Comparator.cc.
References crabWrapper::key, and ALCARECOPromptCalibProdSiPixelAli0T_cff::mode.
void Comparator::Draw | ( | const char * | key0, |
const char * | key1, | ||
Mode | mode | ||
) |
Definition at line 315 of file Comparator.cc.
References ALCARECOPromptCalibProdSiPixelAli0T_cff::mode.
|
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(), ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, 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, crabWrapper::key, ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, 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, crabWrapper::key, TH2Analyzer::MeanX(), ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, TH2Analyzer::RMS(), 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, crabWrapper::key, ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, 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, crabWrapper::key, ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, 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, hcalSimParameters_cfi::hb, crabWrapper::key, and ALCARECOPromptCalibProdSiPixelAli0T_cff::mode.
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, crabWrapper::key, ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, 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, crabWrapper::key, ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, EgammaValidation_cff::num, and PointingDoubleMultiSkim_cfg::out1.
|
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, h, crabWrapper::key, and mitigatedMETSequence_cff::U.
|
inline |
|
inline |
|
inline |
Definition at line 39 of file Comparator.h.
References rebin_, and resetAxis_.
|
inline |
Definition at line 31 of file Comparator.h.
References rebin_, resetAxis_, TrackerOfflineValidation_Dqm_cff::xmax, xMax_, TrackerOfflineValidation_Dqm_cff::xmin, and xMin_.
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 L1TDiffHarvesting_cfi::dir1, beamvalidation::exit(), and timingPdfMaker::file1.
Referenced by Comparator().
|
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().