46 produces<edm::ValueMap<bool> >();
61 if (theElements.empty())
68 for (
auto const& ele : elements) {
75 values.push_back((nTracks == 1));
80 filler.
insert(candidates, values.begin(), values.end());
88 desc.
add<
double>(
"minTrackPt", 1);
89 desc.
add<
double>(
"minRawCaloEnergy", 0.5);
90 descriptions.
add(
"chargedHadronPFTrackIsolation", desc);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
const edm::EventSetup & c
edm::EDGetTokenT< edm::View< reco::PFCandidate > > candidatesToken_
#define DEFINE_FWK_MODULE(type)
void insert(const H &h, I begin, I end)
std::vector< ElementInBlock > ElementsInBlocks
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Handle< PROD > getHandle(EDGetTokenT< PROD > token) const
~ChargedHadronPFTrackIsolationProducer() override
ParameterDescriptionBase * add(U const &iLabel, T const &value)
edm::InputTag srccandidates_
T getParameter(std::string const &) const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
ChargedHadronPFTrackIsolationProducer(const edm::ParameterSet &cfg)