41 ptThreshold_(iConfig.getParameter<double>(
"ptThreshold")),
47 produces<std::vector<pat::Jet>>(
"good");
48 produces<std::vector<pat::Jet>>(
"bad");
56 auto goodJets = std::make_unique<std::vector<pat::Jet>>();
57 auto badJets = std::make_unique<std::vector<pat::Jet>>();
62 int njets = jetcandidates->size();
65 for (
int jetindex = 0; jetindex < njets; ++jetindex){
78 badJets->emplace_back(candjet);
90 desc.
add<
bool>(
"userawPt",
true);
91 desc.
add<
double>(
"ptThreshold",50.0);
92 desc.
add<
double>(
"minEtaThreshold",2.65);
93 desc.
add<
double>(
"maxEtaThreshold",3.139);
95 descriptions.
add(
"BadPFCandidateJetsEEnoiseProducer",desc);
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
#define DEFINE_FWK_MODULE(type)
~BadPFCandidateJetsEEnoiseProducer() override
double pt() const final
transverse momentum
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Abs< T >::type abs(const T &t)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
BadPFCandidateJetsEEnoiseProducer(const edm::ParameterSet &)
Jet correctedJet(const std::string &level, const std::string &flavor="none", const std::string &set="") const
edm::EDGetTokenT< edm::View< pat::Jet > > jetsrc_