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) {
44 if (comparitorName !=
"none") {
48 produces<TrajectorySeedCollection>();
51 template <
typename T_SeedCreator>
64 auto label =
std::string(
"seedCreatorFromRegion") + T_SeedCreator::fillDescriptionsLabel() +
"EDProducer";
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)) {
94 seeds->shrink_to_fit();