52 pualgo->bookMVAReader();
53 produces<edm::ValueMap<float> > (
"JPTPUDiscriminant");
54 produces<edm::ValueMap<int> > (
"JPTPUId");
76 for (
unsigned int i=0;
i<
jets->size(); ++
i ) {
95 if(fabs(jet.
eta()) < 2.6 ) {
96 if( mvapu > 0.3 ) b = 0;
97 if( mvapu > 0.7 ) b = 1;
98 if( mvapu > 0.9 ) b = 2;
100 if( mvapu > -0.55 ) b = 0;
101 if( mvapu > -0.3 ) b = 1;
102 if( mvapu > -0.1 ) b = 2;
113 mvafiller.insert(
jets,mva.begin(),mva.end());
115 iEvent.
put(mvaout,
"JPTPUDiscriminant");
119 idflagfiller.insert(
jets,idflag.begin(),idflag.end());
121 iEvent.
put(idflagout,
"JPTPUId");
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
virtual void beginLuminosityBlock(edm::LuminosityBlock &, edm::EventSetup const &)
virtual float pt() const
transverse momentum
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const Specific & getSpecific() const
block accessors
#define DEFINE_FWK_MODULE(type)
virtual float phi() const
momentum azimuthal angle
virtual void endRun(edm::Run &, edm::EventSetup const &)
virtual void produce(edm::Event &, const edm::EventSetup &)
virtual void beginRun(edm::Run &, edm::EventSetup const &)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
virtual float eta() const
momentum pseudorapidity
Jets made from CaloJets corrected for ZSP and tracks.
edm::EDGetTokenT< edm::View< reco::JPTJet > > input_token_
virtual void endLuminosityBlock(edm::LuminosityBlock &, edm::EventSetup const &)
cms::PileupJPTJetIdAlgo * pualgo
~PileupJPTJetIdProducer()
float fillJPTBlock(const reco::JPTJet *jet)
PileupJPTJetIdProducer(const edm::ParameterSet &)