#include <PFMETAlgorithmMVA.h>
Public Member Functions | |
void | evaluateMVA () |
double | getCovU1 () const |
double | getCovU2 () const |
double | getDPhi () const |
reco::Candidate::LorentzVector | getMEt () const |
const reco::METCovMatrix & | getMEtCov () const |
double | getU () const |
void | initialize (const edm::EventSetup &) |
PFMETAlgorithmMVA (const edm::ParameterSet &cfg) | |
void | print (std::ostream &) const |
void | setHasPhotons (bool hasPhotons) |
void | setInput (const std::vector< reco::PUSubMETCandInfo > &, const std::vector< reco::PUSubMETCandInfo > &, const std::vector< reco::PUSubMETCandInfo > &, const std::vector< reco::Vertex::Point > &) |
~PFMETAlgorithmMVA () | |
Private Member Functions | |
void | computeMET () |
std::unique_ptr< float[]> | createFloatVector (std::vector< std::string > variableNames) |
const float | evaluateCovU1 () |
const float | evaluateCovU2 () |
const float | evaluateDPhi () |
const float | evaluateU () |
const float | GetResponse (const GBRForest *Reader, std::vector< std::string > &variableNames) |
const GBRForest * | loadMVAfromDB (const edm::EventSetup &es, const std::string &mvaName) |
const GBRForest * | loadMVAfromFile (const edm::FileInPath &inputFileName, const std::string &mvaName) |
const std::string | updateVariableNames (std::string input) |
Private Attributes | |
edm::ParameterSet | cfg_ |
double | chargedSumLeptonPx_ |
double | chargedSumLeptonPy_ |
double | dZcut_ |
bool | hasPhotons_ |
bool | loadMVAfromDB_ |
float * | mvaInputCovU1_ |
float * | mvaInputCovU2_ |
float * | mvaInputDPhi_ |
float * | mvaInputU_ |
reco::Candidate::LorentzVector | mvaMEt_ |
reco::METCovMatrix | mvaMEtCov_ |
std::string | mvaNameCovU1_ |
std::string | mvaNameCovU2_ |
std::string | mvaNameDPhi_ |
std::string | mvaNameU_ |
float | mvaOutputCovU1_ |
float | mvaOutputCovU2_ |
float | mvaOutputDPhi_ |
float | mvaOutputU_ |
const GBRForest * | mvaReaderCovU1_ |
const GBRForest * | mvaReaderCovU2_ |
const GBRForest * | mvaReaderDPhi_ |
const GBRForest * | mvaReaderU_ |
int | mvaType_ |
double | sumLeptonPx_ |
double | sumLeptonPy_ |
MvaMEtUtilities | utils_ |
std::map< std::string, float > | var_ |
std::vector< std::string > | varForCovU1_ |
std::vector< std::string > | varForCovU2_ |
std::vector< std::string > | varForDPhi_ |
std::vector< std::string > | varForU_ |
MVA based algorithm for computing the particle-flow missing Et
Definition at line 31 of file PFMETAlgorithmMVA.h.
PFMETAlgorithmMVA::PFMETAlgorithmMVA | ( | const edm::ParameterSet & | cfg | ) |
Definition at line 93 of file PFMETAlgorithmMVA.cc.
References edm::ParameterSet::getParameter(), kBaseline, loadMVAfromDB_, and mvaType_.
PFMETAlgorithmMVA::~PFMETAlgorithmMVA | ( | ) |
Definition at line 107 of file PFMETAlgorithmMVA.cc.
References loadMVAfromDB_, mvaReaderCovU1_, mvaReaderCovU2_, mvaReaderDPhi_, and mvaReaderU_.
|
private |
Definition at line 244 of file PFMETAlgorithmMVA.cc.
References funct::cos(), mvaMEt_, mvaMEtCov_, mvaOutputCovU1_, mvaOutputCovU2_, colinearityKinematic::Phi, Pi, funct::sin(), mathSSE::sqrt(), sumLeptonPx_, sumLeptonPy_, mitigatedMETSequence_cff::U, and var_.
Referenced by evaluateMVA().
|
private |
Definition at line 206 of file PFMETAlgorithmMVA.cc.
References mps_fire::i, and var_.
Referenced by GetResponse().
|
private |
Referenced by getCovU2().
|
private |
Referenced by getCovU2().
|
private |
Referenced by getCovU2().
void PFMETAlgorithmMVA::evaluateMVA | ( | ) |
Definition at line 218 of file PFMETAlgorithmMVA.cc.
References computeMET(), GetResponse(), hasPhotons_, SiStripPI::max, mvaOutputCovU1_, mvaOutputCovU2_, mvaOutputDPhi_, mvaOutputU_, mvaReaderCovU1_, mvaReaderCovU2_, mvaReaderDPhi_, mvaReaderU_, funct::pow(), mathSSE::sqrt(), sumLeptonPx_, sumLeptonPy_, var_, varForCovU1_, varForCovU2_, varForDPhi_, and varForU_.
Referenced by reco::PFMETProducerMVA::produce(), and setHasPhotons().
|
private |
Referenced by getCovU2().
|
inline |
|
inline |
Definition at line 56 of file PFMETAlgorithmMVA.h.
References evaluateCovU1(), evaluateCovU2(), evaluateDPhi(), evaluateU(), input, writeAntiElectronDiscrMVA_cfi::inputFileName, loadMVAfromDB(), loadMVAfromFile(), taus_updatedMVAIds_cff::mvaName, mvaOutputCovU2_, print(), AlCaHLTBitMon_QueryRunRegistry::string, and updateVariableNames().
|
inline |
|
inline |
Definition at line 50 of file PFMETAlgorithmMVA.h.
References mvaMEt_.
Referenced by reco::PFMETProducerMVA::produce().
|
inline |
Definition at line 51 of file PFMETAlgorithmMVA.h.
References mvaMEtCov_.
Referenced by reco::PFMETProducerMVA::produce().
|
private |
Definition at line 264 of file PFMETAlgorithmMVA.cc.
References createFloatVector(), GBRForest::GetResponse(), and mps_fire::result.
Referenced by evaluateMVA().
|
inline |
void PFMETAlgorithmMVA::initialize | ( | const edm::EventSetup & | es | ) |
Definition at line 118 of file PFMETAlgorithmMVA.cc.
References cfg_, edm::ParameterSet::getParameter(), loadMVAfromDB(), loadMVAfromDB_, loadMVAfromFile(), mvaNameCovU1_, mvaNameCovU2_, mvaNameDPhi_, mvaNameU_, mvaReaderCovU1_, mvaReaderCovU2_, mvaReaderDPhi_, mvaReaderU_, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by reco::PFMETProducerMVA::produce().
|
private |
Definition at line 86 of file PFMETAlgorithmMVA.cc.
References edm::EventSetup::get(), DetachedQuadStep_cff::mva, and edm::ESHandle< T >::product().
Referenced by getCovU2(), and initialize().
|
private |
Definition at line 52 of file PFMETAlgorithmMVA.cc.
References Exception, edm::FileInPath::fullPath(), mps_fire::i, analyzePatCleaning_cfg::inputFile, edm::FileInPath::location(), DetachedQuadStep_cff::mva, mvaNameCovU1_, mvaNameCovU2_, mvaNameDPhi_, mvaNameU_, edm::FileInPath::Unknown, updateVariableNames(), varForCovU1_, varForCovU2_, varForDPhi_, and varForU_.
Referenced by getCovU2(), and initialize().
void PFMETAlgorithmMVA::print | ( | std::ostream & | stream | ) | const |
Definition at line 272 of file PFMETAlgorithmMVA.cc.
References mps_splice::entry, mvaOutputCovU1_, mvaOutputCovU2_, mvaOutputDPhi_, mvaOutputU_, mathSSE::sqrt(), sumLeptonPx_, sumLeptonPy_, and var_.
Referenced by getCovU2().
|
inline |
Definition at line 41 of file PFMETAlgorithmMVA.h.
References evaluateMVA(), hasPhotons_, and setInput().
Referenced by reco::PFMETProducerMVA::produce().
void PFMETAlgorithmMVA::setInput | ( | const std::vector< reco::PUSubMETCandInfo > & | leptons, |
const std::vector< reco::PUSubMETCandInfo > & | jets, | ||
const std::vector< reco::PUSubMETCandInfo > & | pfCandidates, | ||
const std::vector< reco::Vertex::Point > & | vertices | ||
) |
Definition at line 146 of file PFMETAlgorithmMVA.cc.
References chargedSumLeptonPx_, chargedSumLeptonPy_, MvaMEtUtilities::computeAllSums(), MvaMEtUtilities::computeRecoil(), MvaMEtUtilities::getCleanedJets(), MvaMEtUtilities::getLeptonsChSumMEX(), MvaMEtUtilities::getLeptonsChSumMEY(), MvaMEtUtilities::getLeptonsSumMEX(), MvaMEtUtilities::getLeptonsSumMEY(), MvaMEtUtilities::kChHS, MvaMEtUtilities::kHS, MvaMEtUtilities::kHSMinusNeutralPU, MvaMEtUtilities::kPF, MvaMEtUtilities::kPU, MvaMEtUtilities::leadJetP4(), CommonMETData::met, MvaMEtUtilities::numJetsAboveThreshold(), CommonMETData::phi, MvaMEtUtilities::subleadJetP4(), CommonMETData::sumet, sumLeptonPx_, sumLeptonPy_, utils_, and var_.
Referenced by reco::PFMETProducerMVA::produce(), and setHasPhotons().
|
private |
Definition at line 20 of file PFMETAlgorithmMVA.cc.
References input.
Referenced by getCovU2(), and loadMVAfromFile().
|
private |
Definition at line 119 of file PFMETAlgorithmMVA.h.
Referenced by initialize().
|
private |
Definition at line 105 of file PFMETAlgorithmMVA.h.
Referenced by setInput().
|
private |
Definition at line 106 of file PFMETAlgorithmMVA.h.
Referenced by setInput().
|
private |
Definition at line 80 of file PFMETAlgorithmMVA.h.
|
private |
Definition at line 78 of file PFMETAlgorithmMVA.h.
Referenced by evaluateMVA(), and setHasPhotons().
|
private |
Definition at line 117 of file PFMETAlgorithmMVA.h.
Referenced by initialize(), PFMETAlgorithmMVA(), and ~PFMETAlgorithmMVA().
|
private |
Definition at line 89 of file PFMETAlgorithmMVA.h.
|
private |
Definition at line 90 of file PFMETAlgorithmMVA.h.
|
private |
Definition at line 88 of file PFMETAlgorithmMVA.h.
|
private |
Definition at line 87 of file PFMETAlgorithmMVA.h.
|
private |
Definition at line 108 of file PFMETAlgorithmMVA.h.
Referenced by computeMET(), and getMEt().
|
private |
Definition at line 110 of file PFMETAlgorithmMVA.h.
Referenced by computeMET(), and getMEtCov().
|
private |
Definition at line 74 of file PFMETAlgorithmMVA.h.
Referenced by initialize(), and loadMVAfromFile().
|
private |
Definition at line 75 of file PFMETAlgorithmMVA.h.
Referenced by initialize(), and loadMVAfromFile().
|
private |
Definition at line 73 of file PFMETAlgorithmMVA.h.
Referenced by initialize(), and loadMVAfromFile().
|
private |
Definition at line 72 of file PFMETAlgorithmMVA.h.
Referenced by initialize(), and loadMVAfromFile().
|
private |
Definition at line 94 of file PFMETAlgorithmMVA.h.
Referenced by computeMET(), evaluateMVA(), getCovU1(), and print().
|
private |
Definition at line 95 of file PFMETAlgorithmMVA.h.
Referenced by computeMET(), evaluateMVA(), getCovU2(), and print().
|
private |
Definition at line 93 of file PFMETAlgorithmMVA.h.
Referenced by evaluateMVA(), getDPhi(), and print().
|
private |
Definition at line 92 of file PFMETAlgorithmMVA.h.
Referenced by evaluateMVA(), getU(), and print().
|
private |
Definition at line 114 of file PFMETAlgorithmMVA.h.
Referenced by evaluateMVA(), initialize(), and ~PFMETAlgorithmMVA().
|
private |
Definition at line 115 of file PFMETAlgorithmMVA.h.
Referenced by evaluateMVA(), initialize(), and ~PFMETAlgorithmMVA().
|
private |
Definition at line 113 of file PFMETAlgorithmMVA.h.
Referenced by evaluateMVA(), initialize(), and ~PFMETAlgorithmMVA().
|
private |
Definition at line 112 of file PFMETAlgorithmMVA.h.
Referenced by evaluateMVA(), initialize(), and ~PFMETAlgorithmMVA().
|
private |
Definition at line 77 of file PFMETAlgorithmMVA.h.
Referenced by PFMETAlgorithmMVA().
|
private |
Definition at line 103 of file PFMETAlgorithmMVA.h.
Referenced by computeMET(), evaluateMVA(), print(), and setInput().
|
private |
Definition at line 104 of file PFMETAlgorithmMVA.h.
Referenced by computeMET(), evaluateMVA(), print(), and setInput().
|
private |
Definition at line 70 of file PFMETAlgorithmMVA.h.
Referenced by setInput().
|
private |
Definition at line 84 of file PFMETAlgorithmMVA.h.
Referenced by computeMET(), createFloatVector(), evaluateMVA(), print(), and setInput().
|
private |
Definition at line 99 of file PFMETAlgorithmMVA.h.
Referenced by evaluateMVA(), and loadMVAfromFile().
|
private |
Definition at line 100 of file PFMETAlgorithmMVA.h.
Referenced by evaluateMVA(), and loadMVAfromFile().
|
private |
Definition at line 98 of file PFMETAlgorithmMVA.h.
Referenced by evaluateMVA(), and loadMVAfromFile().
|
private |
Definition at line 97 of file PFMETAlgorithmMVA.h.
Referenced by evaluateMVA(), and loadMVAfromFile().