#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... | |
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 > | |
double | getResolution (const pat::PATObject< T > &object, const std::string &whichResolution, const bool isBJet=false) |
get resolution for a given PAT 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 |
Enumerator | |
---|---|
kUdscJet | |
kBJet | |
kMuon | |
kElectron | |
kMet |
Definition at line 31 of file CovarianceMatrix.h.
|
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_, edm::hlt::Exception, funcEtaB_, funcEtaUdsc_, funcEtB_, funcEtUdsc_, funcPhiB_, funcPhiUdsc_, and AlCaHLTBitMon_QueryRunRegistry::string.
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 30 of file CovarianceMatrix.cc.
References binsB_, binsLep_, binsMet_, binsUdsc_, edm::hlt::Exception, funcEtaB_, funcEtaLep_, funcEtaMet_, funcEtaUdsc_, funcEtB_, funcEtLep_, funcEtMet_, funcEtUdsc_, funcPhiB_, funcPhiLep_, funcPhiMet_, funcPhiUdsc_, i, jetEnergyResolutionEtaBinning_, jetEnergyResolutionScaleFactors_, and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
Definition at line 43 of file CovarianceMatrix.h.
|
private |
get eta dependent smear factor for a PAT object
Definition at line 153 of file CovarianceMatrix.h.
References funct::abs(), eta, i, jetEnergyResolutionEtaBinning_, and jetEnergyResolutionScaleFactors_.
Referenced by setupMatrix().
|
private |
get eta-dependent scale factor for a plain 4-vector
Definition at line 308 of file CovarianceMatrix.cc.
References funct::abs(), reco::tau::disc::Eta(), i, jetEnergyResolutionEtaBinning_, and jetEnergyResolutionScaleFactors_.
|
private |
determine type for a given PAT object
Definition at line 127 of file CovarianceMatrix.h.
References edm::hlt::Exception, kBJet, kElectron, kMet, kMuon, and kUdscJet.
Referenced by getResolution(), and setupMatrix().
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 79 of file CovarianceMatrix.cc.
References binsB_, binsLep_, binsMet_, binsUdsc_, edm::hlt::Exception, funcEtaB_, funcEtaLep_, funcEtaMet_, funcEtaUdsc_, funcEtB_, funcEtLep_, funcEtMet_, funcEtUdsc_, funcPhiB_, funcPhiLep_, funcPhiMet_, funcPhiUdsc_, i, kBJet, kElectron, kMet, kMuon, and kUdscJet.
Referenced by getResolution(), and setupMatrix().
|
inline |
get resolution for a given PAT object
Definition at line 54 of file CovarianceMatrix.h.
References relval_parameters_module::energy, getObjectType(), and getResolution().
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 81 of file CovarianceMatrix.h.
References relval_parameters_module::energy, getEtaDependentScaleFactor(), getObjectType(), TopKinFitter::kEMom, TopKinFitter::kEtEtaPhi, TopKinFitter::kEtThetaPhi, p4, and funct::pow().
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 138 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(), eta, edm::hlt::Exception, getEtaDependentScaleFactor(), getResolution(), res::HelperJet::kB, kBJet, kElectron, TopKinFitter::kEMom, TopKinFitter::kEtEtaPhi, TopKinFitter::kEtThetaPhi, kMet, kMuon, res::HelperJet::kUds, kUdscJet, res::HelperMuon::phi(), res::HelperElectron::phi(), res::HelperJet::phi(), res::HelperMET::phi(), funct::pow(), EnergyCorrector::pt, res::HelperMuon::theta(), res::HelperElectron::theta(), and res::HelperJet::theta().
|
private |
Definition at line 60 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), and getResolution().
|
private |
Definition at line 60 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), getResolution(), and setupMatrix().
|
private |
Definition at line 60 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), getResolution(), and setupMatrix().
|
private |
vector of strings for the binning of the resolutions
Definition at line 60 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), getResolution(), and setupMatrix().
|
private |
Definition at line 63 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), and getResolution().
|
private |
Definition at line 63 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), and getResolution().
|
private |
Definition at line 63 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), and getResolution().
|
private |
Definition at line 63 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), and getResolution().
|
private |
Definition at line 62 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), and getResolution().
|
private |
Definition at line 62 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), and getResolution().
|
private |
Definition at line 62 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), and getResolution().
|
private |
vectors for the resolution functions
Definition at line 62 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), and getResolution().
|
private |
Definition at line 64 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), and getResolution().
|
private |
Definition at line 64 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), and getResolution().
|
private |
Definition at line 64 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), and getResolution().
|
private |
Definition at line 64 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), and getResolution().
|
private |
Definition at line 67 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), and getEtaDependentScaleFactor().
|
private |
scale factors for the jet energy resolution
Definition at line 66 of file CovarianceMatrix.h.
Referenced by CovarianceMatrix(), and getEtaDependentScaleFactor().