#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 27 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 6 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 39 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 46 of file CovarianceMatrix.h.
|
private |
get eta dependent smear factor for a PAT object
Definition at line 161 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 337 of file CovarianceMatrix.cc.
References funct::abs(), mps_fire::i, jetEnergyResolutionEtaBinning_, and jetEnergyResolutionScaleFactors_.
|
private |
determine type for a given PAT object
Definition at line 136 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 59 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 106 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 87 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 171 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 67 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), and getResolution().
|
private |
Definition at line 67 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), getResolution(), and setupMatrix().
|
private |
Definition at line 67 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), getResolution(), and setupMatrix().
|
private |
vector of strings for the binning of the resolutions
Definition at line 67 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), getResolution(), and setupMatrix().
|
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 |
Definition at line 70 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), and getResolution().
|
private |
Definition at line 69 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), and getResolution().
|
private |
Definition at line 69 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), and getResolution().
|
private |
Definition at line 69 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), and getResolution().
|
private |
vectors for the resolution functions
Definition at line 69 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 71 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), and getResolution().
|
private |
Definition at line 74 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), and getEtaDependentScaleFactor().
|
private |
scale factors for the jet energy resolution
Definition at line 73 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), and getEtaDependentScaleFactor().