51 produces<edm::ValueMap<bool> >();
63 for(
auto const&
c : *candidates ) {
68 if( theElements.empty() )
continue;
72 for(
auto const & ele : elements ) {
78 values.push_back((nTracks==1));
83 filler.
insert(candidates,values.begin(),values.end());
91 desc.
add<
double>(
"minTrackPt", 1);
92 desc.
add<
double>(
"minRawCaloEnergy", 0.5);
93 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.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
void insert(const H &h, I begin, I end)
std::vector< ElementInBlock > ElementsInBlocks
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
~ChargedHadronPFTrackIsolationProducer() override
ParameterDescriptionBase * add(U const &iLabel, T const &value)
edm::InputTag srccandidates_
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
edm::EDGetTokenT< edm::View< reco::PFCandidate > > candidates_token
void add(std::string const &label, ParameterSetDescription const &psetDescription)
ChargedHadronPFTrackIsolationProducer(const edm::ParameterSet &cfg)