Go to the documentation of this file.
12 if (
cfg.exists(
"jetCorrInputFileName")) {
29 produces<reco::PFCandidateCollection>();
44 for (reco::PFJetCollection::const_iterator
jet =
jets->begin();
jet !=
jets->end(); ++
jet) {
57 auto shiftedPFCandidates = std::make_unique<reco::PFCandidateCollection>();
58 for (reco::PFCandidateCollection::const_iterator originalPFCandidate = originalPFCandidates->begin();
59 originalPFCandidate != originalPFCandidates->end();
60 ++originalPFCandidate) {
64 for (std::vector<reco::PFCandidatePtr>::const_iterator jetConstituent = jetConstituents.begin();
65 jetConstituent != jetConstituents.end() && !jet_matched;
67 if (
deltaR(originalPFCandidate->p4(), (*jetConstituent)->p4()) < 1.
e-2)
85 shiftedPFCandidateP4 *= (1. +
shift);
88 shiftedPFCandidate.
setP4(shiftedPFCandidateP4);
90 shiftedPFCandidates->push_back(shiftedPFCandidate);
ShiftedPFCandidateProducerForNoPileUpPFMEt(const edm::ParameterSet &)
virtual std::vector< reco::PFCandidatePtr > getPFConstituents() const
get all constituents
double pt() const final
transverse momentum
void setJetEta(float fEta)
JetCorrectionUncertainty * jecUncertainty_
#define DEFINE_FWK_MODULE(type)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
LocationCode location() const
Where was the file found?
std::string jetCorrPayloadName_
double eta() const final
momentum pseudorapidity
edm::FileInPath jetCorrInputFileName_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
edm::EDGetTokenT< reco::PFCandidateCollection > srcPFCandidatesToken_
std::vector< l1t::PFCandidate > PFCandidateCollection
std::string jetCorrUncertaintyTag_
float getUncertainty(bool fDirection)
void setP4(const LorentzVector &p4) final
set 4-momentum
void produce(edm::Event &, const edm::EventSetup &) override
~ShiftedPFCandidateProducerForNoPileUpPFMEt() override
std::vector< PFJet > PFJetCollection
collection of PFJet objects
static unsigned const int shift
Jets made from PFObjects.
JetCorrectorParameters * jetCorrParameters_
double unclEnUncertainty_
Particle reconstructed by the particle flow algorithm.
edm::EDGetTokenT< reco::PFJetCollection > srcJetsToken_
math::XYZTLorentzVector LorentzVector
Lorentz vector.
std::string fullPath() const