#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 94 of file NoPileUpPFMEtProducer.cc.
References CommonMETData::mex, CommonMETData::mey, CommonMETData::mez, and CommonMETData::sumet.
Referenced by NoPileUpPFMEtProducer::produce().
reco::METCovMatrix computePFMEtSignificance | ( | const std::vector< metsig::SigInputObj > & | metSignObjects | ) |
Definition at line 145 of file NoPileUpPFMEtProducer.cc.
References funct::abs(), metsig::significanceAlgo::addObjects(), defaultPFMEtResolutionX, defaultPFMEtResolutionY, geometryDiff::epsilon, and metsig::significanceAlgo::getSignifMatrix().
Referenced by NoPileUpPFMEtProducer::produce().
void finalizeCommonMETData | ( | CommonMETData & | metData | ) |
Definition at line 102 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 108 of file NoPileUpPFMEtProducer.cc.
References assert(), and reco::deltaR2().
Referenced by NoPileUpPFMEtProducer::produce().
void initializeCommonMETData | ( | CommonMETData & | metData | ) |
Definition at line 84 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 175 of file NoPileUpPFMEtProducer.cc.
References gather_cfg::cout, CommonMETData::mex, CommonMETData::mey, and CommonMETData::sumet.
void printMVAMEtJetInfo | ( | const std::string & | label, |
int | idx, | ||
const reco::PUSubMETCandInfo & | jet | ||
) |
Definition at line 180 of file NoPileUpPFMEtProducer.cc.
References gather_cfg::cout, reco::PUSubMETCandInfo::kHS, reco::PUSubMETCandInfo::kPU, reco::PUSubMETCandInfo::p4(), reco::PUSubMETCandInfo::passesLooseJetId(), and reco::PUSubMETCandInfo::type().
void printMVAMEtPFCandInfo | ( | const std::string & | label, |
int | idx, | ||
const reco::PUSubMETCandInfo & | pfCand | ||
) |
Definition at line 190 of file NoPileUpPFMEtProducer.cc.
References gather_cfg::cout, reco::PUSubMETCandInfo::isWithinJet(), reco::PUSubMETCandInfo::kChHS, reco::PUSubMETCandInfo::kChPU, reco::PUSubMETCandInfo::kNeutral, 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 169 of file NoPileUpPFMEtProducer.cc.
References reco::Candidate::charge(), gather_cfg::cout, reco::Candidate::eta(), 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 126 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(), and PFMEtSignInterfaceBase::operator()().
const double defaultPFMEtResolutionY = 10. |
Definition at line 12 of file NoPileUpPFMEtProducer.cc.
Referenced by computePFMEtSignificance(), and PFMEtSignInterfaceBase::operator()().
const double epsilon = 1.e-9 |
Definition at line 14 of file NoPileUpPFMEtProducer.cc.