#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 15 of file MvaMEtUtilities.h.
anonymous enum |
Enumerator | |
---|---|
kPF | |
kChHS | |
kHS | |
kPU | |
kHSMinusNeutralPU |
Definition at line 16 of file MvaMEtUtilities.h.
MvaMEtUtilities::MvaMEtUtilities | ( | const edm::ParameterSet & | cfg | ) |
Definition at line 8 of file MvaMEtUtilities.cc.
References looper::cfg, dzCut_, mvaCut_, and ptThreshold_.
|
virtual |
Definition at line 82 of file MvaMEtUtilities.cc.
|
private |
Definition at line 131 of file MvaMEtUtilities.cc.
References HLTMuonOfflineAnalyzer_cfi::deltaR2, metsig::jet, PDWG_EXODelayedJetMET_cff::jets, HLT_2024v14_cff::leptons, and ewkMuLumiMonitorDQM_cfi::ptThreshold.
Referenced by computeAllSums().
|
private |
Definition at line 150 of file MvaMEtUtilities.cc.
References HLTMuonOfflineAnalyzer_cfi::deltaR2, l1tstage2_dqm_sourceclient-live_cfg::invert, HLT_2024v14_cff::leptons, and zmumugammaAnalyzer_cfi::pfCandidates.
void MvaMEtUtilities::computeAllSums | ( | const std::vector< reco::PUSubMETCandInfo > & | jets, |
const std::vector< reco::PUSubMETCandInfo > & | leptons, | ||
const std::vector< reco::PUSubMETCandInfo > & | pfCandidates | ||
) |
Definition at line 282 of file MvaMEtUtilities.cc.
References cleanedJets_, cleanJets(), computeCandSum(), dzCut_, PDWG_EXODelayedJetMET_cff::jets, kJets, kLeptons, kPFCands, HLT_2024v14_cff::leptons, leptonsChSum_, leptonsSum_, neutralJetHSSum_, neutralJetPUSum_, pfCandChHSSum_, pfCandChPUSum_, zmumugammaAnalyzer_cfi::pfCandidates, pfCandSum_, and ptThreshold_.
Referenced by PFMETAlgorithmMVA::setInput().
|
private |
Definition at line 177 of file MvaMEtUtilities.cc.
References finalize(), kJets, kLeptons, kPFCands, CommonMETData::mex, CommonMETData::mey, default_text_conditions_cfi::object, passesMVA(), and CommonMETData::sumet.
Referenced by computeAllSums().
CommonMETData MvaMEtUtilities::computeRecoil | ( | int | metType | ) |
Definition at line 236 of file MvaMEtUtilities.cc.
References finalize(), kChHS, kHS, kHSMinusNeutralPU, kPF, kPU, leptonsChSum_, leptonsSum_, objects.autophobj::metType, CommonMETData::mex, CommonMETData::mey, neutralJetHSSum_, neutralJetPUSum_, pfCandChHSSum_, pfCandChPUSum_, pfCandSum_, and CommonMETData::sumet.
Referenced by PFMETAlgorithmMVA::setInput().
|
private |
Definition at line 171 of file MvaMEtUtilities.cc.
References Matriplex::atan2(), 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 304 of file MvaMEtUtilities.cc.
References cleanedJets_.
Referenced by PFMETAlgorithmMVA::setInput().
double MvaMEtUtilities::getLeptonsChSumMEX | ( | ) | const |
Definition at line 300 of file MvaMEtUtilities.cc.
References leptonsChSum_, and CommonMETData::mex.
Referenced by PFMETAlgorithmMVA::setInput().
double MvaMEtUtilities::getLeptonsChSumMEY | ( | ) | const |
Definition at line 302 of file MvaMEtUtilities.cc.
References leptonsChSum_, and CommonMETData::mey.
Referenced by PFMETAlgorithmMVA::setInput().
double MvaMEtUtilities::getLeptonsSumMEX | ( | ) | const |
Definition at line 296 of file MvaMEtUtilities.cc.
References leptonsSum_, and CommonMETData::mex.
Referenced by PFMETAlgorithmMVA::setInput().
double MvaMEtUtilities::getLeptonsSumMEY | ( | ) | const |
Definition at line 298 of file MvaMEtUtilities.cc.
References leptonsSum_, and CommonMETData::mey.
Referenced by PFMETAlgorithmMVA::setInput().
|
protected |
Definition at line 114 of file MvaMEtUtilities.cc.
References heavyIonCSV_trainingSettings::idx, PDWG_EXODelayedJetMET_cff::jets, and jetUpdater_cfi::sort.
Referenced by leadJetP4(), passesMVA(), and subleadJetP4().
reco::Candidate::LorentzVector MvaMEtUtilities::leadJetP4 | ( | const std::vector< reco::PUSubMETCandInfo > & | jets | ) |
Definition at line 106 of file MvaMEtUtilities.cc.
References jetP4(), and PDWG_EXODelayedJetMET_cff::jets.
Referenced by PFMETAlgorithmMVA::setInput().
unsigned MvaMEtUtilities::numJetsAboveThreshold | ( | const std::vector< reco::PUSubMETCandInfo > & | jets, |
double | ptThreshold | ||
) |
Definition at line 123 of file MvaMEtUtilities.cc.
References metsig::jet, PDWG_EXODelayedJetMET_cff::jets, and ewkMuLumiMonitorDQM_cfi::ptThreshold.
Referenced by PFMETAlgorithmMVA::setInput().
|
private |
Definition at line 86 of file MvaMEtUtilities.cc.
References funct::abs(), muonRecoAnalyzer_cfi::etaBin, jetP4(), mvaCut_, and muonRecoAnalyzer_cfi::ptBin.
Referenced by computeCandSum().
reco::Candidate::LorentzVector MvaMEtUtilities::subleadJetP4 | ( | const std::vector< reco::PUSubMETCandInfo > & | jets | ) |
Definition at line 110 of file MvaMEtUtilities.cc.
References jetP4(), and PDWG_EXODelayedJetMET_cff::jets.
Referenced by PFMETAlgorithmMVA::setInput().
|
private |
Definition at line 27 of file MvaMEtUtilities.h.
Referenced by computeAllSums(), and getCleanedJets().
|
private |
Definition at line 29 of file MvaMEtUtilities.h.
Referenced by computeAllSums(), and MvaMEtUtilities().
|
private |
Definition at line 20 of file MvaMEtUtilities.h.
Referenced by computeAllSums(), computeRecoil(), getLeptonsChSumMEX(), and getLeptonsChSumMEY().
|
private |
Definition at line 19 of file MvaMEtUtilities.h.
Referenced by computeAllSums(), computeRecoil(), getLeptonsSumMEX(), and getLeptonsSumMEY().
|
protected |
Definition at line 60 of file MvaMEtUtilities.h.
Referenced by MvaMEtUtilities(), and passesMVA().
|
private |
Definition at line 24 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 22 of file MvaMEtUtilities.h.
Referenced by computeAllSums(), and computeRecoil().
|
private |
Definition at line 23 of file MvaMEtUtilities.h.
Referenced by computeAllSums(), and computeRecoil().
|
private |
Definition at line 21 of file MvaMEtUtilities.h.
Referenced by computeAllSums(), and computeRecoil().
|
private |
Definition at line 30 of file MvaMEtUtilities.h.
Referenced by computeAllSums(), and MvaMEtUtilities().