#include <MvaMEtUtilities.h>
Public Types | |
enum | { kPFCands =0, kLeptons, kJets } |
enum | { kPF =0, kChHS, kHS, kPU, kHSMinusNeutralPU } |
Public Member Functions | |
void | computeAllSums (const std::vector< reco::PUSubMETCandInfo > &jets, const std::vector< reco::PUSubMETCandInfo > &leptons, const std::vector< reco::PUSubMETCandInfo > &pfCandidates) |
CommonMETData | computeRecoil (int metType) |
const std::vector < reco::PUSubMETCandInfo > & | getCleanedJets () const |
double | getLeptonsChSumMEX () const |
double | getLeptonsChSumMEY () const |
double | getLeptonsSumMEX () const |
double | getLeptonsSumMEY () const |
reco::Candidate::LorentzVector | leadJetP4 (const std::vector< reco::PUSubMETCandInfo > &) |
MvaMEtUtilities (const edm::ParameterSet &cfg) | |
unsigned | numJetsAboveThreshold (const std::vector< reco::PUSubMETCandInfo > &, double) |
reco::Candidate::LorentzVector | subleadJetP4 (const std::vector< reco::PUSubMETCandInfo > &) |
virtual | ~MvaMEtUtilities () |
Protected Member Functions | |
reco::Candidate::LorentzVector | jetP4 (const std::vector< reco::PUSubMETCandInfo > &, unsigned) |
Protected Attributes | |
double | mvaCut_ [3][4][4] |
Private Member Functions | |
std::vector < reco::PUSubMETCandInfo > | cleanJets (const std::vector< reco::PUSubMETCandInfo > &, const std::vector< reco::PUSubMETCandInfo > &, double, double) |
std::vector < reco::PUSubMETCandInfo > | cleanPFCands (const std::vector< reco::PUSubMETCandInfo > &, const std::vector< reco::PUSubMETCandInfo > &, double, bool) |
CommonMETData | computeCandSum (int compKey, double dZmax, int dZflag, bool iCharged, bool mvaPassFlag, const std::vector< reco::PUSubMETCandInfo > &objects) |
void | finalize (CommonMETData &metData) |
bool | passesMVA (const reco::Candidate::LorentzVector &, double) |
Private Attributes | |
std::vector < reco::PUSubMETCandInfo > | cleanedJets_ |
double | dzCut_ |
CommonMETData | leptonsChSum_ |
CommonMETData | leptonsSum_ |
CommonMETData | neutralJetHSSum_ |
CommonMETData | neutralJetPUSum_ |
CommonMETData | pfCandChHSSum_ |
CommonMETData | pfCandChPUSum_ |
CommonMETData | pfCandSum_ |
double | ptThreshold_ |
Definition at line 13 of file MvaMEtUtilities.h.
anonymous enum |
Enumerator | |
---|---|
kPFCands | |
kLeptons | |
kJets |
Definition at line 17 of file MvaMEtUtilities.h.
anonymous enum |
Enumerator | |
---|---|
kPF | |
kChHS | |
kHS | |
kPU | |
kHSMinusNeutralPU |
Definition at line 18 of file MvaMEtUtilities.h.
MvaMEtUtilities::MvaMEtUtilities | ( | const edm::ParameterSet & | cfg | ) |
Definition at line 8 of file MvaMEtUtilities.cc.
References dzCut_, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), mvaCut_, and ptThreshold_.
|
virtual |
Definition at line 48 of file MvaMEtUtilities.cc.
|
private |
Definition at line 97 of file MvaMEtUtilities.cc.
References reco::deltaR2(), and metsig::jet.
Referenced by computeAllSums().
|
private |
Definition at line 116 of file MvaMEtUtilities.cc.
References reco::deltaR2(), and HLT_FULL_cff::invert.
void MvaMEtUtilities::computeAllSums | ( | const std::vector< reco::PUSubMETCandInfo > & | jets, |
const std::vector< reco::PUSubMETCandInfo > & | leptons, | ||
const std::vector< reco::PUSubMETCandInfo > & | pfCandidates | ||
) |
Definition at line 244 of file MvaMEtUtilities.cc.
References cleanedJets_, cleanJets(), computeCandSum(), dzCut_, kJets, kLeptons, kPFCands, leptonsChSum_, leptonsSum_, neutralJetHSSum_, neutralJetPUSum_, pfCandChHSSum_, pfCandChPUSum_, pfCandSum_, and ptThreshold_.
Referenced by PFMETAlgorithmMVA::setInput().
|
private |
Definition at line 142 of file MvaMEtUtilities.cc.
References finalize(), kJets, kLeptons, kPFCands, CommonMETData::mex, CommonMETData::mey, passesMVA(), and CommonMETData::sumet.
Referenced by computeAllSums().
CommonMETData MvaMEtUtilities::computeRecoil | ( | int | metType | ) |
Definition at line 196 of file MvaMEtUtilities.cc.
References finalize(), kChHS, kHS, kHSMinusNeutralPU, kPF, kPU, leptonsChSum_, leptonsSum_, CommonMETData::mex, CommonMETData::mey, neutralJetHSSum_, neutralJetPUSum_, pfCandChHSSum_, pfCandChPUSum_, pfCandSum_, and CommonMETData::sumet.
Referenced by PFMETAlgorithmMVA::setInput().
|
private |
Definition at line 134 of file MvaMEtUtilities.cc.
References CommonMETData::met, CommonMETData::mex, CommonMETData::mey, CommonMETData::mez, CommonMETData::phi, and mathSSE::sqrt().
Referenced by computeCandSum(), and computeRecoil().
const std::vector< reco::PUSubMETCandInfo > & MvaMEtUtilities::getCleanedJets | ( | ) | const |
Definition at line 282 of file MvaMEtUtilities.cc.
References cleanedJets_.
Referenced by PFMETAlgorithmMVA::setInput().
double MvaMEtUtilities::getLeptonsChSumMEX | ( | ) | const |
Definition at line 271 of file MvaMEtUtilities.cc.
References leptonsChSum_, and CommonMETData::mex.
Referenced by PFMETAlgorithmMVA::setInput().
double MvaMEtUtilities::getLeptonsChSumMEY | ( | ) | const |
Definition at line 276 of file MvaMEtUtilities.cc.
References leptonsChSum_, and CommonMETData::mey.
Referenced by PFMETAlgorithmMVA::setInput().
double MvaMEtUtilities::getLeptonsSumMEX | ( | ) | const |
Definition at line 261 of file MvaMEtUtilities.cc.
References leptonsSum_, and CommonMETData::mex.
Referenced by PFMETAlgorithmMVA::setInput().
double MvaMEtUtilities::getLeptonsSumMEY | ( | ) | const |
Definition at line 266 of file MvaMEtUtilities.cc.
References leptonsSum_, and CommonMETData::mey.
Referenced by PFMETAlgorithmMVA::setInput().
|
protected |
Definition at line 78 of file MvaMEtUtilities.cc.
References customizeTrackingMonitorSeedNumber::idx, and fwrapper::jets.
Referenced by leadJetP4(), and subleadJetP4().
reco::Candidate::LorentzVector MvaMEtUtilities::leadJetP4 | ( | const std::vector< reco::PUSubMETCandInfo > & | jets | ) |
Definition at line 68 of file MvaMEtUtilities.cc.
References jetP4().
Referenced by PFMETAlgorithmMVA::setInput().
unsigned MvaMEtUtilities::numJetsAboveThreshold | ( | const std::vector< reco::PUSubMETCandInfo > & | jets, |
double | ptThreshold | ||
) |
Definition at line 88 of file MvaMEtUtilities.cc.
References metsig::jet.
Referenced by PFMETAlgorithmMVA::setInput().
|
private |
Definition at line 53 of file MvaMEtUtilities.cc.
References funct::abs(), and mvaCut_.
Referenced by computeCandSum().
reco::Candidate::LorentzVector MvaMEtUtilities::subleadJetP4 | ( | const std::vector< reco::PUSubMETCandInfo > & | jets | ) |
Definition at line 73 of file MvaMEtUtilities.cc.
References jetP4().
Referenced by PFMETAlgorithmMVA::setInput().
|
private |
Definition at line 30 of file MvaMEtUtilities.h.
Referenced by computeAllSums(), and getCleanedJets().
|
private |
Definition at line 32 of file MvaMEtUtilities.h.
Referenced by computeAllSums(), and MvaMEtUtilities().
|
private |
Definition at line 23 of file MvaMEtUtilities.h.
Referenced by computeAllSums(), computeRecoil(), getLeptonsChSumMEX(), and getLeptonsChSumMEY().
|
private |
Definition at line 22 of file MvaMEtUtilities.h.
Referenced by computeAllSums(), computeRecoil(), getLeptonsSumMEX(), and getLeptonsSumMEY().
|
protected |
Definition at line 66 of file MvaMEtUtilities.h.
Referenced by MvaMEtUtilities(), and passesMVA().
|
private |
Definition at line 27 of file MvaMEtUtilities.h.
Referenced by computeAllSums(), and computeRecoil().
|
private |
Definition at line 28 of file MvaMEtUtilities.h.
Referenced by computeAllSums(), and computeRecoil().
|
private |
Definition at line 25 of file MvaMEtUtilities.h.
Referenced by computeAllSums(), and computeRecoil().
|
private |
Definition at line 26 of file MvaMEtUtilities.h.
Referenced by computeAllSums(), and computeRecoil().
|
private |
Definition at line 24 of file MvaMEtUtilities.h.
Referenced by computeAllSums(), and computeRecoil().
|
private |
Definition at line 33 of file MvaMEtUtilities.h.
Referenced by computeAllSums(), and MvaMEtUtilities().