|
|
#include <PFMETProducer.h>
Definition at line 57 of file PFMETProducer.h.
◆ PFMETProducer()
Definition at line 17 of file PFMETProducer.cc.
27 throw cms::Exception(
"InvalidInput") <<
"applyWeight set to True, but no weights given in PFMETProducer\n";
30 <<
"Particle and weights collection have the same label. You may be applying the same weights twice.\n";
37 std::vector<edm::InputTag> srcLeptonsTags = iConfig.
getParameter<std::vector<edm::InputTag>>(
"srcLeptons");
38 for (std::vector<edm::InputTag>::const_iterator it = srcLeptonsTags.begin(); it != srcLeptonsTags.end(); it++) {
50 produces<reco::PFMETCollection>().setBranchAlias(
alias);
References SiStripOfflineCRack_cfg::alias, applyWeight_, calculateSignificance_, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), jetResPhiType_, jetResPtType_, jetSFType_, jetToken_, edm::InputTag::label(), lepTokens_, metSigAlgo_, METSignificance_cfi::METSignificance, rhoToken_, src_, HLT_2018_cff::srcWeights, AlCaHLTBitMon_QueryRunRegistry::string, and weightsToken_.
◆ ~PFMETProducer()
cms::PFMETProducer::~PFMETProducer |
( |
| ) |
|
|
inlineoverride |
◆ fillDescriptions()
Definition at line 132 of file PFMETProducer.cc.
135 desc.
add<
double>(
"globalThreshold", 0.);
137 desc.add<
bool>(
"calculateSignificance",
false);
139 desc.addOptional<std::vector<edm::InputTag>>(
"srcLeptons");
145 params.setAllowAnything();
149 desc1.
add<
bool>(
"applyWeight",
false);
151 descriptions.
add(
"pfMet", desc1);
152 desc2.
add<
bool>(
"applyWeight",
true);
154 descriptions.
add(
"pfMetPuppi", desc2);
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addOptional(), HLT_2018_cff::InputTag, CalibrationSummaryClient_cfi::params, and AlCaHLTBitMon_QueryRunRegistry::string.
◆ getMETCovMatrix()
Definition at line 86 of file PFMETProducer.cc.
90 std::vector<edm::Handle<reco::CandidateView>>
leptons;
95 event.getByToken(*srcLeptons_i, leptons_i);
References JME::JetResolution::get(), JME::JetResolutionScaleFactor::get(), metsig::METSignificance::getCovariance(), HLT_2018_cff::inputJets, jetResPhiType_, jetResPtType_, jetSFType_, jetToken_, lepTokens_, HLT_2018_cff::leptons, metSigAlgo_, rhoToken_, singleTopDQM_cfi::setup, met_cff::sumPtUnclustered, and weights_.
Referenced by produce().
◆ produce()
Definition at line 54 of file PFMETProducer.cc.
77 pfmet.setSignificanceMatrix(sigcov);
80 auto pfmetcoll = std::make_unique<reco::PFMETCollection>();
82 pfmetcoll->push_back(pfmet);
References applyWeight_, calculateSignificance_, edm::ValueMap< T >::get(), getMETCovMatrix(), globalThreshold_, input, inputToken_, CommonMETData::met, CommonMETData::mex, CommonMETData::mey, eostools::move(), p4, packedPFCandidateRefMixer_cfi::pf, reco::MET::setIsWeighted(), reco::MET::setSignificanceMatrix(), singleTopDQM_cfi::setup, timingPdfMaker::specific, CommonMETData::sumet, badGlobalMuonTaggersAOD_cff::vtx, weights_, and weightsToken_.
◆ applyWeight_
bool cms::PFMETProducer::applyWeight_ |
|
private |
◆ calculateSignificance_
bool cms::PFMETProducer::calculateSignificance_ |
|
private |
◆ globalThreshold_
double cms::PFMETProducer::globalThreshold_ |
|
private |
◆ inputToken_
◆ jetResPhiType_
std::string cms::PFMETProducer::jetResPhiType_ |
|
private |
◆ jetResPtType_
std::string cms::PFMETProducer::jetResPtType_ |
|
private |
◆ jetSFType_
std::string cms::PFMETProducer::jetSFType_ |
|
private |
◆ jetThreshold_
double cms::PFMETProducer::jetThreshold_ |
|
private |
◆ jetToken_
◆ lepTokens_
◆ metSigAlgo_
◆ rhoToken_
◆ src_
◆ weights_
◆ weightsToken_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static const std::string input
MET made from Particle Flow Candidates.
std::vector< edm::EDGetTokenT< edm::View< reco::Candidate > > > lepTokens_
metsig::METSignificance * metSigAlgo_
Structure containing data common to all types of MET.
METSignificance
____________________________________________________________________________||
edm::EDGetTokenT< edm::ValueMap< float > > weightsToken_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::EDGetTokenT< edm::View< reco::Candidate > > inputToken_
std::string jetResPhiType_
edm::EDGetTokenT< double > rhoToken_
bool exists(std::string const ¶meterName) const
checks if a parameter exists
XYZPointD XYZPoint
point in space with cartesian internal representation
edm::ValueMap< float > const * weights_
reco::METCovMatrix getMETCovMatrix(const edm::Event &event, const edm::EventSetup &, const edm::Handle< edm::View< reco::Candidate >> &input) const
T getParameter(std::string const &) const
const_reference_type get(ProductID id, size_t idx) const
static const JetResolutionScaleFactor get(const edm::EventSetup &, const std::string &)
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
reco::METCovMatrix getCovariance(const edm::View< reco::Jet > &jets, const std::vector< edm::Handle< reco::CandidateView > > &leptons, const edm::Handle< edm::View< reco::Candidate > > &pfCandidates, double rho, JME::JetResolution &resPtObj, JME::JetResolution &resPhiObj, JME::JetResolutionScaleFactor &resSFObj, bool isRealData, double &sumPtUnclustered, edm::ValueMap< float > const *weights=nullptr)
static const JetResolution get(const edm::EventSetup &, const std::string &)
edm::EDGetTokenT< edm::View< reco::Jet > > jetToken_
bool calculateSignificance_
std::string jetResPtType_
ROOT::Math::SMatrix< double, 2 > METCovMatrix