#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, edm::ConsumesCollector iC) | |
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 * | loadMVAfromFile (const edm::FileInPath &inputFileName, const std::string &mvaName) |
const std::string | updateVariableNames (std::string input) |
MVA based algorithm for computing the particle-flow missing Et
Definition at line 32 of file PFMETAlgorithmMVA.h.
PFMETAlgorithmMVA::PFMETAlgorithmMVA | ( | const edm::ParameterSet & | cfg, |
edm::ConsumesCollector | iC | ||
) |
Definition at line 111 of file PFMETAlgorithmMVA.cc.
References looper::cfg, cfg_, edm::ConsumesCollector::esConsumes(), edm::ParameterSet::getParameter(), kBaseline, loadMVAfromDB_, mvaNameCovU1_, mvaNameCovU2_, mvaNameDPhi_, mvaNameU_, mvaTokenCovU1_, mvaTokenCovU2_, mvaTokenDPhi_, mvaTokenU_, mvaType_, and AlCaHLTBitMon_QueryRunRegistry::string.
PFMETAlgorithmMVA::~PFMETAlgorithmMVA | ( | ) |
Definition at line 135 of file PFMETAlgorithmMVA.cc.
References loadMVAfromDB_, mvaReaderCovU1_, mvaReaderCovU2_, mvaReaderDPhi_, and mvaReaderU_.
|
private |
Definition at line 256 of file PFMETAlgorithmMVA.cc.
References funct::cos(), l1tPhase1JetProducer_cfi::cosPhi, mvaMEt_, mvaMEtCov_, mvaOutputCovU1_, mvaOutputCovU2_, VtxSmearedParameters_cfi::Phi, Pi, funct::sin(), l1tPhase1JetProducer_cfi::sinPhi, mathSSE::sqrt(), sumLeptonPx_, sumLeptonPy_, mitigatedMETSequence_cff::U, and var_.
Referenced by evaluateMVA().
|
private |
Definition at line 222 of file PFMETAlgorithmMVA.cc.
References mps_fire::i, and var_.
Referenced by GetResponse().
|
private |
|
private |
|
private |
void PFMETAlgorithmMVA::evaluateMVA | ( | ) |
Definition at line 232 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().
|
private |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 48 of file PFMETAlgorithmMVA.h.
References mvaMEt_.
Referenced by reco::PFMETProducerMVA::produce().
|
inline |
Definition at line 49 of file PFMETAlgorithmMVA.h.
References mvaMEtCov_.
Referenced by reco::PFMETProducerMVA::produce().
|
private |
Definition at line 276 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 145 of file PFMETAlgorithmMVA.cc.
References cfg_, edm::EventSetup::getData(), edm::ParameterSet::getParameter(), loadMVAfromDB_, loadMVAfromFile(), mvaNameCovU1_, mvaNameCovU2_, mvaNameDPhi_, mvaNameU_, mvaReaderCovU1_, mvaReaderCovU2_, mvaReaderDPhi_, mvaReaderU_, mvaTokenCovU1_, mvaTokenCovU2_, mvaTokenDPhi_, and mvaTokenU_.
Referenced by reco::PFMETProducerMVA::produce().
|
private |
Definition at line 74 of file PFMETAlgorithmMVA.cc.
References Exception, mps_fire::i, makeListRunsInFiles::inputFile, InefficientDoubleROC::inputFileName, beam_dqm_sourceclient-live_cfg::mva, candidateCombinedMVAV2Computer_cfi::mvaName, mvaNameCovU1_, mvaNameCovU2_, mvaNameDPhi_, mvaNameU_, edm::FileInPath::Unknown, updateVariableNames(), varForCovU1_, varForCovU2_, varForDPhi_, and varForU_.
Referenced by initialize().
void PFMETAlgorithmMVA::print | ( | std::ostream & | stream | ) | const |
Definition at line 283 of file PFMETAlgorithmMVA.cc.
References mps_splice::entry, mvaOutputCovU1_, mvaOutputCovU2_, mvaOutputDPhi_, mvaOutputU_, mathSSE::sqrt(), cms::cuda::stream, sumLeptonPx_, sumLeptonPy_, and var_.
|
inline |
Definition at line 39 of file PFMETAlgorithmMVA.h.
References hasPhotons_.
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 166 of file PFMETAlgorithmMVA.cc.
References chargedSumLeptonPx_, chargedSumLeptonPy_, MvaMEtUtilities::computeAllSums(), MvaMEtUtilities::computeRecoil(), MvaMEtUtilities::getCleanedJets(), MvaMEtUtilities::getLeptonsChSumMEX(), MvaMEtUtilities::getLeptonsChSumMEY(), MvaMEtUtilities::getLeptonsSumMEX(), MvaMEtUtilities::getLeptonsSumMEY(), PDWG_EXODelayedJetMET_cff::jets, MvaMEtUtilities::kChHS, MvaMEtUtilities::kHS, MvaMEtUtilities::kHSMinusNeutralPU, MvaMEtUtilities::kPF, MvaMEtUtilities::kPU, MvaMEtUtilities::leadJetP4(), HLT_2024v14_cff::leptons, CommonMETData::met, MvaMEtUtilities::numJetsAboveThreshold(), zmumugammaAnalyzer_cfi::pfCandidates, CommonMETData::phi, MvaMEtUtilities::subleadJetP4(), CommonMETData::sumet, sumLeptonPx_, sumLeptonPy_, utils_, var_, and AlignmentTracksFromVertexSelector_cfi::vertices.
Referenced by reco::PFMETProducerMVA::produce().
|
private |
Definition at line 16 of file PFMETAlgorithmMVA.cc.
References input.
Referenced by loadMVAfromFile().
|
private |
Definition at line 119 of file PFMETAlgorithmMVA.h.
Referenced by initialize(), and PFMETAlgorithmMVA().
|
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 82 of file PFMETAlgorithmMVA.h.
|
private |
Definition at line 80 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 90 of file PFMETAlgorithmMVA.h.
|
private |
Definition at line 91 of file PFMETAlgorithmMVA.h.
|
private |
Definition at line 89 of file PFMETAlgorithmMVA.h.
|
private |
Definition at line 88 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 71 of file PFMETAlgorithmMVA.h.
Referenced by initialize(), loadMVAfromFile(), and PFMETAlgorithmMVA().
|
private |
Definition at line 72 of file PFMETAlgorithmMVA.h.
Referenced by initialize(), loadMVAfromFile(), and PFMETAlgorithmMVA().
|
private |
Definition at line 70 of file PFMETAlgorithmMVA.h.
Referenced by initialize(), loadMVAfromFile(), and PFMETAlgorithmMVA().
|
private |
Definition at line 69 of file PFMETAlgorithmMVA.h.
Referenced by initialize(), loadMVAfromFile(), and PFMETAlgorithmMVA().
|
private |
Definition at line 95 of file PFMETAlgorithmMVA.h.
Referenced by computeMET(), evaluateMVA(), getCovU1(), and print().
|
private |
Definition at line 96 of file PFMETAlgorithmMVA.h.
Referenced by computeMET(), evaluateMVA(), getCovU2(), and print().
|
private |
Definition at line 94 of file PFMETAlgorithmMVA.h.
Referenced by evaluateMVA(), getDPhi(), and print().
|
private |
Definition at line 93 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 76 of file PFMETAlgorithmMVA.h.
Referenced by initialize(), and PFMETAlgorithmMVA().
|
private |
Definition at line 77 of file PFMETAlgorithmMVA.h.
Referenced by initialize(), and PFMETAlgorithmMVA().
|
private |
Definition at line 75 of file PFMETAlgorithmMVA.h.
Referenced by initialize(), and PFMETAlgorithmMVA().
|
private |
Definition at line 74 of file PFMETAlgorithmMVA.h.
Referenced by initialize(), and PFMETAlgorithmMVA().
|
private |
Definition at line 79 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 67 of file PFMETAlgorithmMVA.h.
Referenced by setInput().
|
private |
Definition at line 86 of file PFMETAlgorithmMVA.h.
Referenced by computeMET(), createFloatVector(), evaluateMVA(), print(), and setInput().
|
private |
Definition at line 100 of file PFMETAlgorithmMVA.h.
Referenced by evaluateMVA(), and loadMVAfromFile().
|
private |
Definition at line 101 of file PFMETAlgorithmMVA.h.
Referenced by evaluateMVA(), and loadMVAfromFile().
|
private |
Definition at line 99 of file PFMETAlgorithmMVA.h.
Referenced by evaluateMVA(), and loadMVAfromFile().
|
private |
Definition at line 98 of file PFMETAlgorithmMVA.h.
Referenced by evaluateMVA(), and loadMVAfromFile().