#include <SignAlgoResolutions.h>
Public Member Functions | |
void | addResolutions (const edm::ParameterSet &iConfig) |
double | eval (const resolutionType &type, const resolutionFunc &func, const double &et, const double &phi, const double &eta, const double &p) const |
double | eval (const resolutionType &type, const resolutionFunc &func, const double &et, const double &phi, const double &eta) const |
metsig::SigInputObj | evalPF (const reco::PFCandidate *candidate) const |
metsig::SigInputObj | evalPFJet (const reco::PFJet *jet) const |
bool | isFilled () const |
SignAlgoResolutions () | |
SignAlgoResolutions (const edm::ParameterSet &iConfig) | |
Private Types | |
typedef std::pair< metsig::resolutionType, metsig::resolutionFunc > | functionCombo |
typedef std::vector< double > | functionPars |
Private Member Functions | |
void | addfunction (const resolutionType type, const resolutionFunc func, const std::vector< double > ¶meters) |
double | ElectronPtResolution (const reco::PFCandidate *c) const |
double | EtFunction (const functionPars &x, const functionPars &par) const |
double | getfunc (const resolutionType &type, const resolutionFunc &func, std::vector< double > &x) const |
void | initializeJetResolutions (const edm::ParameterSet &iConfig) |
double | PFunction (const functionPars &x, const functionPars &par) const |
double | PhiConstFunction (const functionPars &x, const functionPars &par) const |
double | PhiFunction (const functionPars &x, const functionPars &par) const |
Private Attributes | |
std::map< functionCombo, functionPars > | functionmap_ |
std::vector< double > | jdphi [10] |
std::vector< double > | jdpt [10] |
PFEnergyResolution * | pfresol_ |
JetResolution * | phiResol_ |
JetResolution * | ptResol_ |
double | ptResolThreshold_ |
Definition at line 43 of file SignAlgoResolutions.h.
|
private |
Definition at line 61 of file SignAlgoResolutions.h.
|
private |
Definition at line 62 of file SignAlgoResolutions.h.
|
inline |
Definition at line 46 of file SignAlgoResolutions.h.
References addResolutions(), stringResolutionProvider_cfi::et, PVValHelper::eta, eval(), evalPF(), evalPFJet(), RecoEcal_EventContent_cff::func, metsig::jet, and AlCaHLTBitMon_ParallelJobs::p.
metsig::SignAlgoResolutions::SignAlgoResolutions | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 34 of file SignAlgoResolutions.cc.
References addResolutions().
|
private |
Definition at line 304 of file SignAlgoResolutions.cc.
References functionmap_, and metProducer_cfi::parameters.
Referenced by addResolutions(), and isFilled().
void metsig::SignAlgoResolutions::addResolutions | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 140 of file SignAlgoResolutions.cc.
References addfunction(), metsig::caloEB, metsig::caloEE, metsig::caloHB, metsig::caloHE, metsig::caloHF, metsig::caloHO, metsig::ET, edm::ParameterSet::getParameter(), initializeJetResolutions(), jdphi, jdpt, metsig::PFtype1, metsig::PFtype2, metsig::PFtype3, metsig::PFtype4, metsig::PFtype5, metsig::PFtype6, metsig::PFtype7, metsig::PHI, and ptResolThreshold_.
Referenced by SignAlgoResolutions().
|
private |
Definition at line 412 of file SignAlgoResolutions.cc.
References reco::LeafCandidate::energy(), PVValHelper::eta, reco::LeafCandidate::eta(), PFEnergyResolution::getEnergyResolutionEm(), and pfresol_.
Referenced by evalPF().
|
private |
Definition at line 337 of file SignAlgoResolutions.cc.
References stringResolutionProvider_cfi::et, mps_fire::result, and mathSSE::sqrt().
Referenced by getfunc().
double metsig::SignAlgoResolutions::eval | ( | const resolutionType & | type, |
const resolutionFunc & | func, | ||
const double & | et, | ||
const double & | phi, | ||
const double & | eta, | ||
const double & | p | ||
) | const |
Definition at line 52 of file SignAlgoResolutions.cc.
References stringResolutionProvider_cfi::et, PVValHelper::eta, getfunc(), and AlCaHLTBitMon_ParallelJobs::p.
Referenced by PFMEtSignInterfaceBase::compResolution(), eval(), evalPF(), and SignAlgoResolutions().
double metsig::SignAlgoResolutions::eval | ( | const resolutionType & | type, |
const resolutionFunc & | func, | ||
const double & | et, | ||
const double & | phi, | ||
const double & | eta | ||
) | const |
Definition at line 44 of file SignAlgoResolutions.cc.
References eval(), JetChargeProducer_cfi::exp, AlCaHLTBitMon_ParallelJobs::p, funct::sin(), and theta().
metsig::SigInputObj metsig::SignAlgoResolutions::evalPF | ( | const reco::PFCandidate * | candidate | ) | const |
Definition at line 64 of file SignAlgoResolutions.cc.
References ElectronPtResolution(), reco::LeafCandidate::energy(), stringResolutionProvider_cfi::et, metsig::ET, PVValHelper::eta, reco::LeafCandidate::eta(), eval(), edm::Ref< C, T, F >::isNull(), dataset::name, reco::PFCandidate::particleId(), metsig::PFtype1, metsig::PFtype2, metsig::PFtype3, metsig::PFtype4, metsig::PFtype5, metsig::PFtype6, metsig::PFtype7, metsig::PHI, reco::LeafCandidate::phi(), funct::sin(), AlCaHLTBitMon_QueryRunRegistry::string, reco::LeafCandidate::theta(), and reco::PFCandidate::trackRef().
Referenced by metsig::SignPFSpecificAlgo::addPFCandidate(), PFMEtSignInterfaceBase::compResolution(), and SignAlgoResolutions().
metsig::SigInputObj metsig::SignAlgoResolutions::evalPFJet | ( | const reco::PFJet * | jet | ) | const |
Definition at line 109 of file SignAlgoResolutions.cc.
References Abs(), reco::LeafCandidate::eta(), createfilelist::int, jdphi, jdpt, METSignificanceParams_cfi::jeta, JetResolution::parameterEtaEval(), reco::LeafCandidate::phi(), phiResol_, reco::LeafCandidate::pt(), ptResol_, ptResolThreshold_, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by metsig::SignPFSpecificAlgo::addPFJets(), PFMEtSignInterfaceBase::compResolution(), and SignAlgoResolutions().
|
private |
Definition at line 311 of file SignAlgoResolutions.cc.
References metsig::CONSTPHI, metsig::ET, EtFunction(), functionmap_, PFunction(), metsig::PHI, PhiConstFunction(), PhiFunction(), mps_fire::result, edm::second(), metsig::TRACKP, and MuonErrorMatrixValues_cff::values.
Referenced by eval(), and isFilled().
|
private |
Definition at line 382 of file SignAlgoResolutions.cc.
References MessageLogger_cfi::cerr, cmsBenchmark::cmssw_base, cmsBenchmark::cmssw_release_base, edm::ParameterSet::getParameter(), callgraph::path, phiResol_, ptResol_, METSigParams_cfi::resolutionsAlgo, METSigParams_cfi::resolutionsEra, trackingPlots::stat, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by addResolutions(), and isFilled().
|
inline |
Definition at line 54 of file SignAlgoResolutions.h.
References addfunction(), functionmap_, getfunc(), initializeJetResolutions(), and metProducer_cfi::parameters.
|
private |
Definition at line 370 of file SignAlgoResolutions.cc.
Referenced by getfunc().
|
private |
Definition at line 376 of file SignAlgoResolutions.cc.
Referenced by getfunc().
|
private |
Definition at line 351 of file SignAlgoResolutions.cc.
References stringResolutionProvider_cfi::et, and mathSSE::sqrt().
Referenced by getfunc().
|
private |
Definition at line 63 of file SignAlgoResolutions.h.
Referenced by addfunction(), getfunc(), and isFilled().
|
private |
Definition at line 76 of file SignAlgoResolutions.h.
Referenced by addResolutions(), and evalPFJet().
|
private |
Definition at line 75 of file SignAlgoResolutions.h.
Referenced by addResolutions(), and evalPFJet().
|
private |
Definition at line 80 of file SignAlgoResolutions.h.
Referenced by ElectronPtResolution().
|
private |
Definition at line 79 of file SignAlgoResolutions.h.
Referenced by evalPFJet(), and initializeJetResolutions().
|
private |
Definition at line 78 of file SignAlgoResolutions.h.
Referenced by evalPFJet(), and initializeJetResolutions().
|
private |
Definition at line 71 of file SignAlgoResolutions.h.
Referenced by addResolutions(), and evalPFJet().