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();
bool theSilentOnClusterCheck
T getParameter(std::string const &) const
ClusterChecker theClusterCheck
size_t tooManyClusters(const edm::Event &e) const
SeedGeneratorFromRegionHitsEDProducer(const edm::ParameterSet &cfg)
Log< level::Error, false > LogError
void produce(edm::Event &ev, const edm::EventSetup &es) override
std::unique_ptr< TrackingRegionProducer > theRegionProducer
~SeedGeneratorFromRegionHitsEDProducer() override
std::unique_ptr< SeedGeneratorFromRegionHits > theGenerator