#include "RecoMET/METPUSubtraction/plugins/NoPileUpPFMEtProducer.h"
#include "FWCore/Utilities/interface/Exception.h"
#include "RecoMET/METAlgorithms/interface/significanceAlgo.h"
#include "DataFormats/METReco/interface/SigInputObj.h"
#include <cmath>
#include "FWCore/Framework/interface/MakerMacros.h"
Go to the source code of this file.
Functions | |
void | addToCommonMETData (CommonMETData &metData, const reco::Candidate::LorentzVector &p4) |
reco::METCovMatrix | computePFMEtSignificance (const std::vector< metsig::SigInputObj > &metSignObjects) |
void | finalizeCommonMETData (CommonMETData &metData) |
int | findBestMatchingLepton (const std::vector< reco::Candidate::LorentzVector > &leptons, const reco::Candidate::LorentzVector &p4_ref) |
void | initializeCommonMETData (CommonMETData &metData) |
void | printCommonMETData (const std::string &label, const CommonMETData &metData) |
void | printMVAMEtJetInfo (const std::string &label, int idx, const reco::PUSubMETCandInfo &jet) |
void | printMVAMEtPFCandInfo (const std::string &label, int idx, const reco::PUSubMETCandInfo &pfCand) |
void | printP4 (const std::string &label_part1, int idx, const std::string &label_part2, const reco::Candidate &candidate) |
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker< edm::ParameterSetDescriptionFiller< NoPileUpPFMEtProducer > > | s_filler__LINE__ ("NoPileUpPFMEtProducer") |
static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< NoPileUpPFMEtProducer > > | s_maker__LINE__ ("NoPileUpPFMEtProducer") |
void | scaleAndAddPFMEtSignObjects (std::vector< metsig::SigInputObj > &metSignObjects_scaled, const std::vector< metsig::SigInputObj > &metSignObjects, double sf, double sfMin, double sfMax) |
Variables | |
const double | defaultPFMEtResolutionX = 10. |
const double | defaultPFMEtResolutionY = 10. |
const double | epsilon = 1.e-9 |
void addToCommonMETData | ( | CommonMETData & | metData, |
const reco::Candidate::LorentzVector & | p4 | ||
) |
Definition at line 90 of file NoPileUpPFMEtProducer.cc.
References CommonMETData::mex, CommonMETData::mey, CommonMETData::mez, p4, and CommonMETData::sumet.
Referenced by NoPileUpPFMEtProducer::produce().
reco::METCovMatrix computePFMEtSignificance | ( | const std::vector< metsig::SigInputObj > & | metSignObjects | ) |
Definition at line 143 of file NoPileUpPFMEtProducer.cc.
References funct::abs(), metsig::significanceAlgo::addObjects(), defaultPFMEtResolutionX, defaultPFMEtResolutionY, epsilon, and metsig::significanceAlgo::getSignifMatrix().
Referenced by NoPileUpPFMEtProducer::produce().
void finalizeCommonMETData | ( | CommonMETData & | metData | ) |
Definition at line 97 of file NoPileUpPFMEtProducer.cc.
References CommonMETData::met, CommonMETData::mex, CommonMETData::mey, CommonMETData::phi, and mathSSE::sqrt().
Referenced by NoPileUpPFMEtProducer::produce().
int findBestMatchingLepton | ( | const std::vector< reco::Candidate::LorentzVector > & | leptons, |
const reco::Candidate::LorentzVector & | p4_ref | ||
) |
Definition at line 102 of file NoPileUpPFMEtProducer.cc.
References cms::cuda::assert(), HLTMuonOfflineAnalyzer_cfi::deltaR2, and HLT_2018_cff::leptons.
Referenced by NoPileUpPFMEtProducer::produce().
void initializeCommonMETData | ( | CommonMETData & | metData | ) |
Definition at line 81 of file NoPileUpPFMEtProducer.cc.
References CommonMETData::met, CommonMETData::mex, CommonMETData::mey, CommonMETData::mez, CommonMETData::phi, and CommonMETData::sumet.
Referenced by NoPileUpPFMEtProducer::produce().
void printCommonMETData | ( | const std::string & | label, |
const CommonMETData & | metData | ||
) |
Definition at line 170 of file NoPileUpPFMEtProducer.cc.
References gather_cfg::cout, label, CommonMETData::mex, CommonMETData::mey, and CommonMETData::sumet.
void printMVAMEtJetInfo | ( | const std::string & | label, |
int | idx, | ||
const reco::PUSubMETCandInfo & | jet | ||
) |
Definition at line 175 of file NoPileUpPFMEtProducer.cc.
References gather_cfg::cout, training_settings::idx, metsig::jet, reco::PUSubMETCandInfo::kHS, reco::PUSubMETCandInfo::kPU, and label.
void printMVAMEtPFCandInfo | ( | const std::string & | label, |
int | idx, | ||
const reco::PUSubMETCandInfo & | pfCand | ||
) |
Definition at line 186 of file NoPileUpPFMEtProducer.cc.
References gather_cfg::cout, training_settings::idx, reco::PUSubMETCandInfo::isWithinJet(), reco::PUSubMETCandInfo::kChHS, reco::PUSubMETCandInfo::kChPU, reco::PUSubMETCandInfo::kNeutral, label, reco::PUSubMETCandInfo::p4(), reco::PUSubMETCandInfo::passesLooseJetId(), AlCaHLTBitMon_QueryRunRegistry::string, and reco::PUSubMETCandInfo::type().
void printP4 | ( | const std::string & | label_part1, |
int | idx, | ||
const std::string & | label_part2, | ||
const reco::Candidate & | candidate | ||
) |
Definition at line 165 of file NoPileUpPFMEtProducer.cc.
References reco::Candidate::charge(), gather_cfg::cout, reco::Candidate::eta(), training_settings::idx, reco::Candidate::phi(), and reco::Candidate::pt().
|
static |
|
static |
void scaleAndAddPFMEtSignObjects | ( | std::vector< metsig::SigInputObj > & | metSignObjects_scaled, |
const std::vector< metsig::SigInputObj > & | metSignObjects, | ||
double | sf, | ||
double | sfMin, | ||
double | sfMax | ||
) |
Definition at line 120 of file NoPileUpPFMEtProducer.cc.
References metsig::SigInputObj::set().
Referenced by NoPileUpPFMEtProducer::produce().
const double defaultPFMEtResolutionX = 10. |
Definition at line 11 of file NoPileUpPFMEtProducer.cc.
Referenced by computePFMEtSignificance().
const double defaultPFMEtResolutionY = 10. |
Definition at line 12 of file NoPileUpPFMEtProducer.cc.
Referenced by computePFMEtSignificance().
const double epsilon = 1.e-9 |
Definition at line 14 of file NoPileUpPFMEtProducer.cc.
Referenced by computePFMEtSignificance().