1 #ifndef RecoAlgos_CandidateProducer_h
2 #define RecoAlgos_CandidateProducer_h
31 template<
typename CColl,
typename Comp,
typename Conv>
35 ref_type ref = components.template getConcreteRef<ref_type>(idx);
36 converter.convert(ref, c);
42 template<
typename CColl,
typename Comp,
typename Conv>
46 ref_type ref = components.template getConcreteRef<ref_type>(idx);
47 converter.convert(ref, * c);
52 template<
typename CColl>
95 std::auto_ptr<CColl> cands(
new CColl);
97 size_t size = src->size();
99 for(
size_t idx = 0; idx !=
size; ++ idx) {
Master< F > master(const F &f)
edm::InputTag src_
label of source collection and tag
bool initialized_
particles initialized?
CandidateProducer(const edm::ParameterSet &cfg)
constructor from parameter set
S make(const edm::ParameterSet &cfg)
static void create(size_t idx, CColl &cands, const Comp &components, Conv &converter)
void produce(edm::Event &evt, const edm::EventSetup &es)
process one event
Conv converter_
converter helper
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
size_t index(size_t i) const
void beginRun(edm::Run &, const edm::EventSetup &es)
begin job (first run)
Selector selector_
selector
Functor that operates on <T>
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
static void create(size_t idx, CColl &cands, const Comp &components, Conv &converter)
~CandidateProducer()
destructor
edm::OwnVector< Candidate > CandidateCollection
collection of Candidate objects
tuple size
Write out results.