Go to the documentation of this file. 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);
42 template <
typename CColl,
typename Comp,
typename Conv>
46 ref_type ref =
components.template getConcreteRef<ref_type>(
idx);
52 template <
typename CColl>
64 template <
typename TColl,
96 ::helper::MasterCollection<TColl>
master(
src, evt);
97 std::unique_ptr<CColl>
cands(
new CColl);
static void create(size_t idx, CColl &cands, const Comp &components, Conv &converter)
Functor that operates on <T>
void beginRun(const edm::Run &, const edm::EventSetup &es) override
begin job (first run)
bool initialized_
particles initialized?
void produce(edm::Event &evt, const edm::EventSetup &es) override
process one event
def create(alignables, pedeDump, additionalData, outputFile, config)
static void create(size_t idx, CColl &cands, const Comp &components, Conv &converter)
Conv converter_
converter helper
CandidateProducer(const edm::ParameterSet &cfg)
constructor from parameter set
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< TColl > srcToken_
label of source collection and tag
Selector selector_
selector
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
def template(fileName, svg, replaceme="REPLACEME")
S make(const edm::ParameterSet &cfg)
edm::OwnVector< Candidate > CandidateCollection
collection of Candidate objects
~CandidateProducer() override
destructor