#include <CovarianceMatrix.h>
Public Types | |
enum | ObjectType { kUdscJet, kBJet, kMuon, kElectron, kMet } |
Public Member Functions | |
CovarianceMatrix () | |
default constructor More... | |
CovarianceMatrix (const std::vector< edm::ParameterSet > &udscResolutions, const std::vector< edm::ParameterSet > &bResolutions, const std::vector< double > &jetEnergyResolutionScaleFactors, const std::vector< double > &jetEnergyResolutionEtaBinning) | |
constructor for the fully-hadronic channel More... | |
CovarianceMatrix (const std::vector< edm::ParameterSet > &udscResolutions, const std::vector< edm::ParameterSet > &bResolutions, const std::vector< edm::ParameterSet > &lepResolutions, const std::vector< edm::ParameterSet > &metResolutions, const std::vector< double > &jetEnergyResolutionScaleFactors, const std::vector< double > &jetEnergyResolutionEtaBinning) | |
constructor for the lepton+jets channel More... | |
template<class T > | |
double | getResolution (const pat::PATObject< T > &object, const std::string &whichResolution, const bool isBJet=false) |
get resolution for a given PAT object More... | |
double | getResolution (const TLorentzVector &object, const ObjectType objType, const std::string &whichResolution="") |
get resolution for a given component of an object More... | |
template<class T > | |
TMatrixD | setupMatrix (const pat::PATObject< T > &object, const TopKinFitter::Param param, const std::string &resolutionProvider="") |
return covariance matrix for a PAT object More... | |
TMatrixD | setupMatrix (const TLorentzVector &object, const ObjectType objType, const TopKinFitter::Param param) |
return covariance matrix for a plain 4-vector More... | |
~CovarianceMatrix () | |
Private Member Functions | |
template<class T > | |
double | getEtaDependentScaleFactor (const pat::PATObject< T > &object) |
get eta dependent smear factor for a PAT object More... | |
double | getEtaDependentScaleFactor (const TLorentzVector &object) |
get eta-dependent scale factor for a plain 4-vector More... | |
template<class T > | |
ObjectType | getObjectType (const pat::PATObject< T > &object, const bool isBJet=false) |
determine type for a given PAT object More... | |
Private Attributes | |
std::vector< std::string > | binsB_ |
std::vector< std::string > | binsLep_ |
std::vector< std::string > | binsMet_ |
std::vector< std::string > | binsUdsc_ |
vector of strings for the binning of the resolutions More... | |
std::vector< std::string > | funcEtaB_ |
std::vector< std::string > | funcEtaLep_ |
std::vector< std::string > | funcEtaMet_ |
std::vector< std::string > | funcEtaUdsc_ |
std::vector< std::string > | funcEtB_ |
std::vector< std::string > | funcEtLep_ |
std::vector< std::string > | funcEtMet_ |
std::vector< std::string > | funcEtUdsc_ |
vectors for the resolution functions More... | |
std::vector< std::string > | funcPhiB_ |
std::vector< std::string > | funcPhiLep_ |
std::vector< std::string > | funcPhiMet_ |
std::vector< std::string > | funcPhiUdsc_ |
const std::vector< double > | jetEnergyResolutionEtaBinning_ |
const std::vector< double > | jetEnergyResolutionScaleFactors_ |
scale factors for the jet energy resolution More... | |
Definition at line 28 of file CovarianceMatrix.h.
enum CovarianceMatrix::ObjectType |
|
inline |
CovarianceMatrix::CovarianceMatrix | ( | const std::vector< edm::ParameterSet > & | udscResolutions, |
const std::vector< edm::ParameterSet > & | bResolutions, | ||
const std::vector< double > & | jetEnergyResolutionScaleFactors, | ||
const std::vector< double > & | jetEnergyResolutionEtaBinning | ||
) |
constructor for the fully-hadronic channel
Definition at line 7 of file CovarianceMatrix.cc.
References binsB_, binsUdsc_, TtFullHadKinFitProducer_cfi::bResolutions, Exception, funcEtaB_, funcEtaUdsc_, funcEtB_, funcEtUdsc_, funcPhiB_, funcPhiUdsc_, AlCaHLTBitMon_QueryRunRegistry::string, and TtFullHadKinFitProducer_cfi::udscResolutions.
CovarianceMatrix::CovarianceMatrix | ( | const std::vector< edm::ParameterSet > & | udscResolutions, |
const std::vector< edm::ParameterSet > & | bResolutions, | ||
const std::vector< edm::ParameterSet > & | lepResolutions, | ||
const std::vector< edm::ParameterSet > & | metResolutions, | ||
const std::vector< double > & | jetEnergyResolutionScaleFactors, | ||
const std::vector< double > & | jetEnergyResolutionEtaBinning | ||
) |
constructor for the lepton+jets channel
Definition at line 40 of file CovarianceMatrix.cc.
References binsB_, binsLep_, binsMet_, binsUdsc_, TtFullHadKinFitProducer_cfi::bResolutions, Exception, funcEtaB_, funcEtaLep_, funcEtaMet_, funcEtaUdsc_, funcEtB_, funcEtLep_, funcEtMet_, funcEtUdsc_, funcPhiB_, funcPhiLep_, funcPhiMet_, funcPhiUdsc_, mps_fire::i, jetEnergyResolutionEtaBinning_, jetEnergyResolutionScaleFactors_, AlCaHLTBitMon_QueryRunRegistry::string, and TtFullHadKinFitProducer_cfi::udscResolutions.
|
inline |
Definition at line 47 of file CovarianceMatrix.h.
|
private |
get eta dependent smear factor for a PAT object
Definition at line 162 of file CovarianceMatrix.h.
References funct::abs(), PVValHelper::eta, mps_fire::i, jetEnergyResolutionEtaBinning_, and jetEnergyResolutionScaleFactors_.
Referenced by setupMatrix().
|
private |
get eta-dependent scale factor for a plain 4-vector
Definition at line 338 of file CovarianceMatrix.cc.
References funct::abs(), mps_fire::i, jetEnergyResolutionEtaBinning_, and jetEnergyResolutionScaleFactors_.
|
private |
determine type for a given PAT object
Definition at line 137 of file CovarianceMatrix.h.
References Exception, kBJet, kElectron, kMet, kMuon, kUdscJet, and electrons_cff::objType.
Referenced by getResolution(), and setupMatrix().
|
inline |
get resolution for a given PAT object
Definition at line 60 of file CovarianceMatrix.h.
References HCALHighEnergyHPDFilter_cfi::energy, getObjectType(), getResolution(), multPhiCorr_741_25nsDY_cfi::px, and multPhiCorr_741_25nsDY_cfi::py.
double CovarianceMatrix::getResolution | ( | const TLorentzVector & | object, |
const ObjectType | objType, | ||
const std::string & | whichResolution = "" |
||
) |
get resolution for a given component of an object
Definition at line 107 of file CovarianceMatrix.cc.
References binsB_, binsLep_, binsMet_, binsUdsc_, EcalCondDBWriter_cfi::Energy, Exception, funcEtaB_, funcEtaLep_, funcEtaMet_, funcEtaUdsc_, funcEtB_, funcEtLep_, funcEtMet_, funcEtUdsc_, funcPhiB_, funcPhiLep_, funcPhiMet_, funcPhiUdsc_, mps_fire::i, kBJet, kElectron, kMet, kMuon, kUdscJet, and electrons_cff::objType.
Referenced by getResolution(), and setupMatrix().
TMatrixD CovarianceMatrix::setupMatrix | ( | const pat::PATObject< T > & | object, |
const TopKinFitter::Param | param, | ||
const std::string & | resolutionProvider = "" |
||
) |
return covariance matrix for a PAT object
Definition at line 88 of file CovarianceMatrix.h.
References HCALHighEnergyHPDFilter_cfi::energy, getEtaDependentScaleFactor(), getObjectType(), TopKinFitter::kEMom, TopKinFitter::kEtEtaPhi, TopKinFitter::kEtThetaPhi, electrons_cff::objType, p4, funct::pow(), multPhiCorr_741_25nsDY_cfi::px, and multPhiCorr_741_25nsDY_cfi::py.
Referenced by TtSemiLepKinFitter::fit(), and TtFullHadKinFitter::fit().
TMatrixD CovarianceMatrix::setupMatrix | ( | const TLorentzVector & | object, |
const ObjectType | objType, | ||
const TopKinFitter::Param | param | ||
) |
return covariance matrix for a plain 4-vector
Definition at line 172 of file CovarianceMatrix.cc.
References res::HelperMET::a(), res::HelperMuon::a(), res::HelperElectron::a(), res::HelperJet::a(), res::HelperMET::b(), res::HelperElectron::b(), res::HelperMuon::b(), res::HelperJet::b(), binsLep_, binsMet_, binsUdsc_, res::HelperMET::c(), res::HelperElectron::c(), res::HelperMuon::c(), res::HelperJet::c(), res::HelperJet::d(), res::HelperElectron::et(), res::HelperMET::et(), res::HelperMuon::et(), res::HelperJet::et(), res::HelperElectron::eta(), res::HelperMuon::eta(), res::HelperJet::eta(), PVValHelper::eta, Exception, getEtaDependentScaleFactor(), getResolution(), res::HelperJet::kB, kBJet, kElectron, TopKinFitter::kEMom, TopKinFitter::kEtEtaPhi, TopKinFitter::kEtThetaPhi, kMet, kMuon, res::HelperJet::kUds, kUdscJet, electrons_cff::objType, res::HelperMuon::phi(), res::HelperElectron::phi(), res::HelperJet::phi(), res::HelperMET::phi(), funct::pow(), DiDispStaMuonMonitor_cfi::pt, res::HelperMuon::theta(), res::HelperElectron::theta(), and res::HelperJet::theta().
|
private |
Definition at line 68 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), and getResolution().
|
private |
Definition at line 68 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), getResolution(), and setupMatrix().
|
private |
Definition at line 68 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), getResolution(), and setupMatrix().
|
private |
vector of strings for the binning of the resolutions
Definition at line 68 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), getResolution(), and setupMatrix().
|
private |
Definition at line 71 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), and getResolution().
|
private |
Definition at line 71 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), and getResolution().
|
private |
Definition at line 71 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), and getResolution().
|
private |
Definition at line 71 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), and getResolution().
|
private |
Definition at line 70 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), and getResolution().
|
private |
Definition at line 70 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), and getResolution().
|
private |
Definition at line 70 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), and getResolution().
|
private |
vectors for the resolution functions
Definition at line 70 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), and getResolution().
|
private |
Definition at line 72 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), and getResolution().
|
private |
Definition at line 72 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), and getResolution().
|
private |
Definition at line 72 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), and getResolution().
|
private |
Definition at line 72 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), and getResolution().
|
private |
Definition at line 75 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), and getEtaDependentScaleFactor().
|
private |
scale factors for the jet energy resolution
Definition at line 74 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), and getEtaDependentScaleFactor().