1 #ifndef RecoTracker_TkSeedGenerator_SeedCreatorFromRegionHitsEDProducerT_H
2 #define RecoTracker_TkSeedGenerator_SeedCreatorFromRegionHitsEDProducerT_H
20 template <
typename T_SeedCreator>
36 template <
typename T_SeedCreator>
40 seedCreator_(iConfig, consumesCollector()) {
44 if (comparitorName !=
"none") {
48 produces<TrajectorySeedCollection>();
51 template <
typename T_SeedCreator>
64 auto label =
std::string(
"seedCreatorFromRegion") + T_SeedCreator::fillDescriptionsLabel() +
"EDProducer";
65 descriptions.
add(label, desc);
68 template <
typename T_SeedCreator>
71 iEvent.
getByToken(seedingHitSetsToken_, hseedingHitSets);
74 auto seeds = std::make_unique<TrajectorySeedCollection>();
78 comparitor_->init(iEvent, iSetup);
82 seedCreator_.init(region, iSetup, comparitor_.
get());
88 if (!comparitor_ || comparitor_->compatible(hits)) {
89 seedCreator_.makeSeed(*
seeds, hits);
94 seeds->shrink_to_fit();
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void setAllowAnything()
allow any parameter label/value pairs
T_SeedCreator seedCreator_
edm::EDGetTokenT< RegionsSeedingHitSets > seedingHitSetsToken_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::unique_ptr< SeedComparitor > comparitor_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
T getParameter(std::string const &) const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
SeedCreatorFromRegionHitsEDProducerT(const edm::ParameterSet &iConfig)
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
~SeedCreatorFromRegionHitsEDProducerT() override=default