25 : theRegionProducer(nullptr),
26 theClusterCheck(
cfg.getParameter<
edm::
ParameterSet>(
"ClusterCheckPSet"), consumesCollector()) {
28 cfg.getParameter<
edm::ParameterSet>(
"ClusterCheckPSet").getUntrackedParameter<bool>(
"silentClusterCheck",
false);
44 std::unique_ptr<SeedComparitor> aComparitor;
45 if (comparitorName !=
"none") {
51 theGenerator = std::make_unique<SeedGeneratorFromRegionHits>(
56 produces<TrajectorySeedCollection>();
62 auto triplets = std::make_unique<TrajectorySeedCollection>();
68 edm::LogError(
"TooManyClusters") <<
"Found too many clusters (" << clustsOrZero <<
"), bailing out.\n";
73 typedef std::vector<std::unique_ptr<TrackingRegion> >
Regions;
74 typedef Regions::const_iterator IR;
77 for (IR ir =
regions.begin(), irEnd =
regions.end(); ir < irEnd; ++ir) {
84 triplets->shrink_to_fit();