19 min_N90_ (iConfig.getParameter<int>(
"min_N90")),
20 min_N90hits_(iConfig.getParameter<int>(
"min_N90hits")),
21 min_EMF_ (iConfig.getParameter<double>(
"min_EMF")),
22 max_EMF_ (iConfig.getParameter<double>(
"max_EMF")),
23 inputTag_ (iConfig.getParameter<edm::
InputTag>(
"jetsInput")),
24 jetIDParams_(iConfig.getParameter<edm::
ParameterSet>(
"JetIDParams")),
25 jetIDHelper_(jetIDParams_,consumesCollector()) {
29 produces<reco::CaloJetCollection>();
38 desc.
add<
int>(
"min_N90", -2);
39 desc.
add<
int>(
"min_N90hits", 2);
40 desc.
add<
double>(
"min_EMF", 1
e-6);
41 desc.
add<
double>(
"max_EMF", 999.);
45 descNested.
add<
bool>(
"useRecHits",
true);
53 descriptions.
add(
"hltCaloJetIDProducer", desc);
65 for (reco::CaloJetCollection::const_iterator
j = calojets->begin();
j != calojets->end(); ++
j) {
68 if (!(
j->energy() > 0.))
continue;
75 if ((
j->emEnergyFraction() >=
min_EMF_) &&
84 if (pass) result->push_back(*
j);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
edm::InputTag inputTag_
input CaloJet collection
bool getByToken(EDGetToken token, Handle< PROD > &result) const
double min_EMF_
minimum EMF
double max_EMF_
maximum EMF
HLTCaloJetIDProducer(const edm::ParameterSet &iConfig)
Abs< T >::type abs(const T &t)
virtual void produce(edm::Event &iEvent, const edm::EventSetup &iSetup)
reco::helper::JetIDHelper jetIDHelper_
A helper to calculates calo jet ID variables.
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
int min_N90hits_
mininum N90hits
edm::EDGetTokenT< reco::CaloJetCollection > m_theCaloJetToken
void calculate(const edm::Event &event, const reco::CaloJet &jet, const int iDbg=0)
std::vector< CaloJet > CaloJetCollection
collection of CaloJet objects