47 produces<edm::ValueMap<bool> >();
62 if (theElements.empty())
67 for (
auto const& ele : elements) {
73 values.push_back((nTracks == 1));
78 filler.
insert(candidates, values.begin(), values.end());
86 desc.
add<
double>(
"minTrackPt", 1);
87 desc.
add<
double>(
"minRawCaloEnergy", 0.5);
88 descriptions.
add(
"chargedHadronPFTrackIsolation", desc);
T getParameter(std::string const &) const
const unsigned int nTracks(const reco::Vertex &sv)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
edm::EDGetTokenT< edm::View< reco::PFCandidate > > candidatesToken_
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
#define DEFINE_FWK_MODULE(type)
~ChargedHadronPFTrackIsolationProducer() override
ParameterDescriptionBase * add(U const &iLabel, T const &value)
edm::InputTag srccandidates_
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
void add(std::string const &label, ParameterSetDescription const &psetDescription)
ChargedHadronPFTrackIsolationProducer(const edm::ParameterSet &cfg)