29 theClusterCheck(cfg.getParameter<edm::
ParameterSet>(
"ClusterCheckPSet"),consumesCollector()),
41 if ( cfg.
exists(
"SeedMergerPSet")) {
71 produces<TrajectorySeedCollection>();
80 auto triplets = std::make_unique<TrajectorySeedCollection>();
81 auto quadruplets = std::make_unique<TrajectorySeedCollection>();
87 edm::LogError(
"TooManyClusters") <<
"Found too many clusters (" << clustsOrZero <<
"), bailing out.\n";
92 typedef std::vector<std::unique_ptr<TrackingRegion> >
Regions;
93 typedef Regions::const_iterator IR;
98 for (IR ir=regions.begin(), irEnd=regions.end(); ir < irEnd; ++ir) {
110 for( TrajectorySeedCollection::const_iterator qIt = tempQuads.begin(); qIt < tempQuads.end(); ++qIt ) {
111 quadruplets->push_back( *qIt );
115 triplets->shrink_to_fit();
116 quadruplets->shrink_to_fit();
T getParameter(std::string const &) const
bool theSilentOnClusterCheck
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
ClusterChecker theClusterCheck
bool exists(std::string const ¶meterName) const
checks if a parameter exists
SeedGeneratorFromRegionHitsEDProducer(const edm::ParameterSet &cfg)
~SeedGeneratorFromRegionHitsEDProducer()
virtual void produce(edm::Event &ev, const edm::EventSetup &es) override
std::unique_ptr< TrackingRegionProducer > theRegionProducer
std::vector< TrajectorySeed > TrajectorySeedCollection
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
size_t tooManyClusters(const edm::Event &e) const
return(e1-e2)*(e1-e2)+dp *dp
std::unique_ptr< QuadrupletSeedMerger > theMerger_
std::unique_ptr< SeedGeneratorFromRegionHits > theGenerator
T get(const Candidate &c)