#include <Histograms.h>
Public Member Functions | |
void | Clear () |
virtual void | Fill (const double &x, const double &y, const double &a, const double &b) |
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=0, bool varianceCheck=false) | |
HCovarianceVSxy (TFile *inputFile, const TString &name, const TString &dirName) | |
Contructor to read histograms from file. More... | |
void | Write () |
~HCovarianceVSxy () | |
Public Member Functions inherited from Histograms | |
void | declareHistograms () |
virtual void | Fill (const reco::Particle::LorentzVector &p1, const reco::Particle::LorentzVector &p2) |
virtual void | Fill (const reco::Particle::LorentzVector &p1, const reco::Particle::LorentzVector &p2, const int charge, const double &weight=1.) |
virtual void | Fill (const CLHEP::HepLorentzVector &momentum1, const CLHEP::HepLorentzVector &momentum2) |
virtual void | Fill (const CLHEP::HepLorentzVector &momentum1, const CLHEP::HepLorentzVector &momentum2, const int charge, const double &weight=1.) |
virtual void | Fill (const CLHEP::HepLorentzVector &p1, const reco::Particle::LorentzVector &p2) |
virtual void | Fill (const reco::Particle::LorentzVector &p4, const double &weight=1.) |
virtual void | Fill (const reco::Particle::LorentzVector &p4, const int charge, const double &weight=1.) |
virtual void | Fill (const CLHEP::HepLorentzVector &momentum, const int charge, const double &weight=1.) |
virtual void | Fill (const reco::Particle::LorentzVector &p4, const double &resValue, const int charge) |
virtual void | Fill (const reco::Particle::LorentzVector &p4, const double &genValue, const double recValue, const int charge) |
virtual void | Fill (const CLHEP::HepLorentzVector &p, const double &likeValue) |
virtual void | Fill (const unsigned int number) |
virtual void | Fill (const reco::Particle::LorentzVector &recoP1, const int charge1, const reco::Particle::LorentzVector &genP1, const reco::Particle::LorentzVector &recoP2, const int charge2, const reco::Particle::LorentzVector &genP2, const double &recoMass, const double &genMass) |
virtual void | Fill (const reco::Particle::LorentzVector &recoP1, const int charge1, const reco::Particle::LorentzVector &recoP2, const int charge2, const double &recoMass, const double &genMass) |
virtual void | Fill (const reco::Particle::LorentzVector &recoP1, const reco::Particle::LorentzVector &genP1, const reco::Particle::LorentzVector &recoP2, const reco::Particle::LorentzVector &genP2) |
virtual void | Fill (const double &x, const double &y) |
virtual void | Fill (const reco::Particle::LorentzVector &p41, const reco::Particle::LorentzVector &p42, const reco::Particle::LorentzVector &p4Res, const double &weight=1.) |
virtual void | Fill (const CLHEP::HepLorentzVector &momentum1, const CLHEP::HepLorentzVector &momentum2, const CLHEP::HepLorentzVector &momentumRes, const double &weight=1.) |
void | fillEventInfo (int proc, int strk, int ntrkr) |
void | fillRecHistograms (const RecTrack_t &r) |
void | fillSimHistograms (const SimTrack_t &s) |
void | fillVzeroHistograms (const RecVzero_t &r, int part) |
virtual double | Get (const reco::Particle::LorentzVector &recoP1, const TString &covarianceName) |
virtual TString | GetName () |
Histograms () | |
Histograms (const TString &name) | |
Histograms (TFile *outputFile, const TString &name) | |
Histograms (const edm::ParameterSet &pset) | |
virtual void | SetWeight (double weight) |
void | writeHistograms () |
virtual | ~Histograms () |
~Histograms () | |
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_ |
Protected Attributes inherited from Histograms | |
TDirectory * | histoDir_ |
TString | name_ |
TFile * | outputFile_ |
double | theWeight_ |
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 1820 of file Histograms.h.
|
inline |
Definition at line 1823 of file Histograms.h.
References covariances_, dir, histoCovariance_, Histograms::histoDir_, histoVarianceCheck_, i, j, mergeVDriftHistosByStation::name, Histograms::name_, totBinsX_, totBinsY_, and varianceCheck_.
|
inline |
Contructor to read histograms from file.
Definition at line 1855 of file Histograms.h.
References gather_cfg::cout, deltaX_, deltaY_, cmsRelvalreport::exit, histoCovariance_, Histograms::histoDir_, totBinsX_, totBinsY_, xMin_, and yMin_.
|
inline |
Definition at line 1872 of file Histograms.h.
References covariances_, histoCovariance_, histoVarianceCheck_, i, j, totBinsX_, totBinsY_, and varianceCheck_.
|
inlinevirtual |
Implements Histograms.
Definition at line 1956 of file Histograms.h.
References histoCovariance_, histoVarianceCheck_, i, j, totBinsX_, totBinsY_, and varianceCheck_.
|
inlinevirtual |
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
Reimplemented from Histograms.
Definition at line 1895 of file Histograms.h.
References covariances_, Covariance::fill(), getXindex(), getYindex(), histoVarianceCheck_, totBinsX_, totBinsY_, and varianceCheck_.
Referenced by ResolutionAnalyzer::analyze().
|
inline |
Definition at line 1908 of file Histograms.h.
References getXindex(), getYindex(), histoCovariance_, totBinsX_, and totBinsY_.
|
inlineprotected |
|
inlineprotected |
|
inlinevirtual |
Implements Histograms.
Definition at line 1920 of file Histograms.h.
References svgfig::canvas(), gather_cfg::cout, Covariance::covariance(), covariances_, histoCovariance_, Histograms::histoDir_, histoVarianceCheck_, Histograms::name_, readMode_, totBinsX_, totBinsY_, and varianceCheck_.
Referenced by ResolutionAnalyzer::writeHistoMap().
|
protected |
Definition at line 1974 of file Histograms.h.
Referenced by Fill(), HCovarianceVSxy(), Write(), and ~HCovarianceVSxy().
|
protected |
Definition at line 1976 of file Histograms.h.
Referenced by getXindex(), and HCovarianceVSxy().
|
protected |
Definition at line 1976 of file Histograms.h.
Referenced by getYindex(), and HCovarianceVSxy().
|
protected |
Definition at line 1973 of file Histograms.h.
Referenced by Clear(), Get(), HCovarianceVSxy(), Write(), and ~HCovarianceVSxy().
|
protected |
Definition at line 1979 of file Histograms.h.
Referenced by Clear(), Fill(), HCovarianceVSxy(), Write(), and ~HCovarianceVSxy().
|
protected |
Definition at line 1977 of file Histograms.h.
Referenced by Write().
|
protected |
Definition at line 1975 of file Histograms.h.
Referenced by Clear(), Fill(), Get(), getXindex(), HCovarianceVSxy(), Write(), and ~HCovarianceVSxy().
|
protected |
Definition at line 1975 of file Histograms.h.
Referenced by Clear(), Fill(), Get(), getYindex(), HCovarianceVSxy(), Write(), and ~HCovarianceVSxy().
|
protected |
Definition at line 1975 of file Histograms.h.
|
protected |
Definition at line 1978 of file Histograms.h.
Referenced by Clear(), Fill(), HCovarianceVSxy(), Write(), and ~HCovarianceVSxy().
|
protected |
Definition at line 1976 of file Histograms.h.
Referenced by getXindex(), and HCovarianceVSxy().
|
protected |
Definition at line 1976 of file Histograms.h.
Referenced by getYindex(), and HCovarianceVSxy().