Go to the documentation of this file.
38 produces<reco::PFCandidateCollection>();
56 for (reco::PFJetCollection::const_iterator
jet =
jets->begin();
jet !=
jets->end(); ++
jet) {
69 auto shiftedPFCandidates = std::make_unique<reco::PFCandidateCollection>();
71 for (reco::PFCandidateCollection::const_iterator originalPFCandidate = originalPFCandidates->begin();
72 originalPFCandidate != originalPFCandidates->end();
73 ++originalPFCandidate) {
76 for (
const auto& jetc :
jet->getPFConstituents()) {
87 if (jet_matched !=
nullptr) {
99 shiftedPFCandidateP4 *= (1. +
shift);
102 shiftedPFCandidate.
setP4(shiftedPFCandidateP4);
104 shiftedPFCandidates->push_back(shiftedPFCandidate);
edm::FileInPath jetCorrInputFileName_
void produce(edm::Event &, const edm::EventSetup &) override
double pt() const final
transverse momentum
Log< level::Info, false > LogInfo
JetCorrectionUncertainty * jecUncertainty_
void setJetEta(float fEta)
ShiftedPFCandidateProducerForPFNoPUMEt(const edm::ParameterSet &)
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< reco::PFCandidateCollection > srcPFCandidatesToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
LocationCode location() const
Where was the file found?
double eta() const final
momentum pseudorapidity
JetCorrectorParameters * jetCorrParameters_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
double unclEnUncertainty_
std::vector< l1t::PFCandidate > PFCandidateCollection
~ShiftedPFCandidateProducerForPFNoPUMEt() override
std::string jetCorrUncertaintyTag_
float getUncertainty(bool fDirection)
void setP4(const LorentzVector &p4) final
set 4-momentum
std::vector< PFJet > PFJetCollection
collection of PFJet objects
static unsigned const int shift
Jets made from PFObjects.
Particle reconstructed by the particle flow algorithm.
math::XYZTLorentzVector LorentzVector
Lorentz vector.
std::string jetCorrPayloadName_
edm::EDGetTokenT< reco::PFJetCollection > srcJetsToken_
std::string fullPath() const