47 pualgo->bookMVAReader();
48 produces<edm::ValueMap<float> > (
"JPTPUDiscriminant");
49 produces<edm::ValueMap<int> > (
"JPTPUId");
71 for (
unsigned int i=0;
i<jets->size(); ++
i ) {
90 if(fabs(jet.
eta()) < 2.6 ) {
91 if( mvapu > 0.3 ) b = 0;
92 if( mvapu > 0.7 ) b = 1;
93 if( mvapu > 0.9 ) b = 2;
95 if( mvapu > -0.55 ) b = 0;
96 if( mvapu > -0.3 ) b = 1;
97 if( mvapu > -0.1 ) b = 2;
106 auto mvaout = std::make_unique<ValueMap<float>>();
108 mvafiller.insert(jets,mva.begin(),mva.end());
112 auto idflagout = std::make_unique<ValueMap<int>>();
114 idflagfiller.insert(jets,idflag.begin(),idflag.end());
T getParameter(std::string const &) const
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 eta() const final
momentum pseudorapidity
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const Specific & getSpecific() const
block accessors
~PileupJPTJetIdProducer() override
double pt() const final
transverse momentum
#define DEFINE_FWK_MODULE(type)
Jets made from CaloJets corrected for ZSP and tracks.
edm::EDGetTokenT< edm::View< reco::JPTJet > > input_token_
cms::PileupJPTJetIdAlgo * pualgo
float fillJPTBlock(const reco::JPTJet *jet)
PileupJPTJetIdProducer(const edm::ParameterSet &)
double phi() const final
momentum azimuthal angle