25 : theRegionProducer(nullptr),
26 theClusterCheck(cfg.getParameter<edm::
ParameterSet>(
"ClusterCheckPSet"), consumesCollector()) {
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();
#define IR(x)
Integer representation of a floating-point value.
bool theSilentOnClusterCheck
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
ClusterChecker theClusterCheck
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
size_t tooManyClusters(const edm::Event &e) const
T getParameter(std::string const &) const
std::unique_ptr< SeedGeneratorFromRegionHits > theGenerator