1 #ifndef IsolationAlgos_IsolationProducer_h
2 #define IsolationAlgos_IsolationProducer_h
22 template<
typename Alg>
27 template<
typename Alg>
33 template <
typename C1,
typename C2,
typename Alg,
35 std::vector<typename Alg::value_type> >,
48 template <
typename C1,
typename C2,
typename Alg,
typename OutputCollection,
typename Setup>
50 src_( cfg.
template getParameter<edm::InputTag>(
"src" ) ),
51 elements_( cfg.
template getParameter<edm::InputTag>(
"elements" ) ),
52 alg_(
reco::modules::
make<Alg>( cfg ) ) {
53 produces<OutputCollection>();
56 template <
typename C1,
typename C2,
typename Alg,
typename OutputCollection,
typename Setup>
60 template <
typename C1,
typename C2,
typename Alg,
typename OutputCollection,
typename Setup>
71 typename OutputCollection::refprod_type ref(
src );
75 for(
typename C1::const_iterator lep =
src->begin(); lep !=
src->end(); ++ lep ) {
77 isolations->setValue(
i++, iso );
79 evt.
put( isolations );
std::vector< ProtoJet > OutputCollection
static void init(Alg &, const edm::EventSetup &)
S make(const edm::ParameterSet &cfg)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Container::value_type value_type
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
void produce(edm::Event &, const edm::EventSetup &)
IsolationProducer(const edm::ParameterSet &)
NullIsolationAlgorithmSetup< Alg > type