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,
97 ::helper::MasterCollection<TColl>
master(
src, evt);
98 std::unique_ptr<CColl>
cands(
new CColl);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
void produce(edm::Event &evt, const edm::EventSetup &es) override
process one event
def create(alignables, pedeDump, additionalData, outputFile, config)
void beginRun(const edm::Run &, const edm::EventSetup &es) override
begin job (first run)
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)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Conv converter_
converter helper
Init selectorInit_
selector
def template(fileName, svg, replaceme="REPLACEME")
Functor that operates on <T>
static void create(size_t idx, CColl &cands, const Comp &components, Conv &converter)
edm::EDGetTokenT< TColl > srcToken_
label of source collection and tag
edm::OwnVector< Candidate > CandidateCollection
collection of Candidate objects
~CandidateProducer() override
destructor