28 : theConfig(cfg), theRegionProducer(0),
29 theClusterCheck(cfg.getParameter<edm::
ParameterSet>(
"ClusterCheckPSet"),consumesCollector()),
38 if ( cfg.
exists(
"SeedMergerPSet")) {
42 theMerger_->setMergeTriplets( mergerPSet.
getParameter<
bool>(
"mergeTriplets" ) );
43 theMerger_->setAddRemainingTriplets( mergerPSet.
getParameter<
bool>(
"addRemainingTriplets" ) );
70 produces<TrajectorySeedCollection>();
94 edm::LogError(
"TooManyClusters") <<
"Found too many clusters (" << clustsOrZero <<
"), bailing out.\n";
99 typedef std::vector<TrackingRegion* > Regions;
100 typedef Regions::const_iterator IR;
105 for (IR ir=regions.begin(), irEnd=regions.end(); ir < irEnd; ++ir) {
117 for( TrajectorySeedCollection::const_iterator qIt = tempQuads.begin(); qIt < tempQuads.end(); ++qIt ) {
118 quadruplets->push_back( *qIt );
124 for (IR ir=regions.begin(), irEnd=regions.end(); ir < irEnd; ++ir)
delete (*ir);
T getParameter(std::string const &) const
bool theSilentOnClusterCheck
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::vector< TrajectorySeed > TrajectorySeedCollection
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
size_t tooManyClusters(const edm::Event &e) const
void update(const edm::EventSetup &)
const OrderedSeedingHits & mergeTriplets(const OrderedSeedingHits &, const edm::EventSetup &)
QuadrupletSeedMerger * theMerger_
return(e1-e2)*(e1-e2)+dp *dp
virtual void beginRun(edm::Run const &run, const edm::EventSetup &es) override
edm::ParameterSet theConfig
TrackingRegionProducer * theRegionProducer
virtual void endRun(edm::Run const &run, const edm::EventSetup &es) override
std::unique_ptr< SeedGeneratorFromRegionHits > theGenerator
T get(const Candidate &c)
virtual std::vector< TrackingRegion * > regions(const edm::Event &ev, const edm::EventSetup &es) const =0