1 #ifndef IsolationAlgos_IsolationProducer_h
2 #define IsolationAlgos_IsolationProducer_h
22 template <
typename Alg>
27 template <
typename Alg>
33 template <
typename C1,
50 template <
typename C1,
typename C2,
typename Alg,
typename OutputCollection,
typename Setup>
53 elementsToken_(consumes<C2>(cfg.
template getParameter<edm::
InputTag>(
"elements"))),
55 produces<OutputCollection>();
58 template <
typename C1,
typename C2,
typename Alg,
typename OutputCollection,
typename Setup>
61 template <
typename C1,
typename C2,
typename Alg,
typename OutputCollection,
typename Setup>
72 typename OutputCollection::refprod_type ref(
src);
73 auto isolations = std::make_unique<OutputCollection>(ref);
76 for (
typename C1::const_iterator lep =
src->begin(); lep !=
src->end(); ++lep) {
78 isolations->setValue(
i++, iso);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
static void init(Alg &, const edm::EventSetup &)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
S make(const edm::ParameterSet &cfg)
Container::value_type value_type
edm::EDGetTokenT< C1 > srcToken_
~IsolationProducer() override
edm::EDGetTokenT< C2 > elementsToken_
IsolationProducer(const edm::ParameterSet &)
NullIsolationAlgorithmSetup< Alg > type
void produce(edm::Event &, const edm::EventSetup &) override