#include <Histograms.h>
Inherits Histograms.
Public Member Functions | |
void | Clear () override |
void | Fill (const double &x, const double &y, const double &a, const double &b) override |
double | Get (const double &x, const double &y) const |
HCovarianceVSxy (const TString &name, const TString &title, const int totBinsX, const double &xMin, const double &xMax, const int totBinsY, const double &yMin, const double &yMax, TDirectory *dir=nullptr, bool varianceCheck=false) | |
HCovarianceVSxy (TFile *inputFile, const TString &name, const TString &dirName) | |
Contructor to read histograms from file. More... | |
void | Write () override |
~HCovarianceVSxy () override | |
Protected Member Functions | |
int | getXindex (const double &x) const |
int | getYindex (const double &y) const |
Protected Attributes | |
Covariance ** | covariances_ |
double | deltaX_ |
double | deltaY_ |
TH2D * | histoCovariance_ |
TH1D *** | histoVarianceCheck_ |
bool | readMode_ |
int | totBinsX_ |
int | totBinsY_ |
int | totBinsZ_ |
bool | varianceCheck_ |
double | xMin_ |
double | yMin_ |
This class can be used to compute the covariance of two variables with respect to other two variables (to see e.g. how does the covariance of ptVSphi vary with respect to (pt,eta).
Definition at line 1908 of file Histograms.h.
|
inline |
Definition at line 1910 of file Histograms.h.
References covariances_, DeadROC_duringRun::dir, histoCovariance_, histoVarianceCheck_, mps_fire::i, dqmiolumiharvest::j, Skims_PA_cff::name, runGCPTkAlMap::title, totBinsX_, totBinsY_, varianceCheck_, multiplicitycorr_cfi::xMax, photonAnalyzer_cfi::xMin, multiplicitycorr_cfi::yMax, and photonAnalyzer_cfi::yMin.
|
inline |
Contructor to read histograms from file.
Definition at line 1951 of file Histograms.h.
References gather_cfg::cout, deltaX_, deltaY_, TrackerOfflineValidation_Dqm_cff::dirName, beamvalidation::exit(), histoCovariance_, makeListRunsInFiles::inputFile, Skims_PA_cff::name, totBinsX_, totBinsY_, xMin_, and yMin_.
|
inlineoverride |
Definition at line 1966 of file Histograms.h.
References covariances_, histoCovariance_, histoVarianceCheck_, mps_fire::i, dqmiolumiharvest::j, totBinsX_, totBinsY_, and varianceCheck_.
|
inlineoverride |
Definition at line 2061 of file Histograms.h.
References histoCovariance_, histoVarianceCheck_, mps_fire::i, dqmiolumiharvest::j, totBinsX_, totBinsY_, and varianceCheck_.
|
inlineoverride |
x and y should be the variables VS which we are computing the covariance (pt and eta) a and b should be the variables OF which we are computing the covariance
Definition at line 1989 of file Histograms.h.
References a, b, covariances_, Covariance::fill(), getXindex(), getYindex(), histoVarianceCheck_, totBinsX_, totBinsY_, varianceCheck_, x, and y.
Referenced by ResolutionAnalyzer::analyze().
|
inline |
Definition at line 2004 of file Histograms.h.
References getXindex(), getYindex(), histoCovariance_, totBinsX_, totBinsY_, x, and y.
|
inlineprotected |
Definition at line 2073 of file Histograms.h.
References deltaX_, createfilelist::int, totBinsX_, x, and xMin_.
Referenced by Fill(), and Get().
|
inlineprotected |
Definition at line 2074 of file Histograms.h.
References deltaY_, createfilelist::int, totBinsY_, y, and yMin_.
Referenced by Fill(), and Get().
|
inlineoverride |
Definition at line 2020 of file Histograms.h.
References svgfig::canvas(), gather_cfg::cout, Covariance::covariance(), covariances_, histoCovariance_, histoVarianceCheck_, readMode_, totBinsX_, totBinsY_, varianceCheck_, photonAnalyzer_cfi::xBin, and photonAnalyzer_cfi::yBin.
Referenced by ResolutionAnalyzer::writeHistoMap().
|
protected |
Definition at line 2076 of file Histograms.h.
Referenced by Fill(), HCovarianceVSxy(), Write(), and ~HCovarianceVSxy().
|
protected |
Definition at line 2078 of file Histograms.h.
Referenced by getXindex(), and HCovarianceVSxy().
|
protected |
Definition at line 2078 of file Histograms.h.
Referenced by getYindex(), and HCovarianceVSxy().
|
protected |
Definition at line 2075 of file Histograms.h.
Referenced by Clear(), Get(), HCovarianceVSxy(), Write(), and ~HCovarianceVSxy().
|
protected |
Definition at line 2081 of file Histograms.h.
Referenced by Clear(), Fill(), HCovarianceVSxy(), Write(), and ~HCovarianceVSxy().
|
protected |
Definition at line 2079 of file Histograms.h.
Referenced by Write().
|
protected |
Definition at line 2077 of file Histograms.h.
Referenced by Clear(), Fill(), Get(), getXindex(), HCovarianceVSxy(), Write(), and ~HCovarianceVSxy().
|
protected |
Definition at line 2077 of file Histograms.h.
Referenced by Clear(), Fill(), Get(), getYindex(), HCovarianceVSxy(), Write(), and ~HCovarianceVSxy().
|
protected |
Definition at line 2077 of file Histograms.h.
|
protected |
Definition at line 2080 of file Histograms.h.
Referenced by Clear(), Fill(), HCovarianceVSxy(), Write(), and ~HCovarianceVSxy().
|
protected |
Definition at line 2078 of file Histograms.h.
Referenced by getXindex(), and HCovarianceVSxy().
|
protected |
Definition at line 2078 of file Histograms.h.
Referenced by getYindex(), and HCovarianceVSxy().