42 pualgo->bookMVAReader();
43 produces<edm::ValueMap<float>>(
"JPTPUDiscriminant");
44 produces<edm::ValueMap<int>>(
"JPTPUId");
59 for (
unsigned int i = 0;
i <
jets->size(); ++
i) {
78 if (fabs(jet.
eta()) < 2.6) {
97 std::cout <<
" PUID producer::Corrected JPT Jet is " << jet.
pt() <<
" " << jet.
eta() <<
" " << jet.
phi() <<
" "
101 auto mvaout = std::make_unique<ValueMap<float>>();
103 mvafiller.insert(
jets,
mva.begin(),
mva.end());
107 auto idflagout = std::make_unique<ValueMap<int>>();
109 idflagfiller.insert(
jets, idflag.begin(), idflag.end());
T getUntrackedParameter(std::string const &, T const &) const
void produce(edm::Event &, const edm::EventSetup &) override
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
double pt() const final
transverse momentum
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const Specific & getSpecific() const
block accessors
#define DEFINE_FWK_MODULE(type)
~PileupJPTJetIdProducer() override
Jets made from CaloJets corrected for ZSP and tracks.
edm::EDGetTokenT< edm::View< reco::JPTJet > > input_token_
cms::PileupJPTJetIdAlgo * pualgo
T getParameter(std::string const &) const
float fillJPTBlock(const reco::JPTJet *jet)
PileupJPTJetIdProducer(const edm::ParameterSet &)
double phi() const final
momentum azimuthal angle
double eta() const final
momentum pseudorapidity