27 : theConfig(cfg), theGenerator(0), theRegionProducer(0),
28 theClusterCheck(cfg.getParameter<edm::
ParameterSet>(
"ClusterCheckPSet")),
36 if ( cfg.
exists(
"SeedMergerPSet")) {
40 theMerger_->setMergeTriplets( mergerPSet.
getParameter<
bool>(
"mergeTriplets" ) );
41 theMerger_->setAddRemainingTriplets( mergerPSet.
getParameter<
bool>(
"addRemainingTriplets" ) );
45 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
SeedGeneratorFromRegionHits * theGenerator
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.
size_t tooManyClusters(const edm::Event &e) const
void update(const edm::EventSetup &)
const OrderedSeedingHits & mergeTriplets(const OrderedSeedingHits &, const edm::EventSetup &)
void run(TrajectorySeedCollection &seedCollection, const TrackingRegion ®ion, const edm::Event &ev, const edm::EventSetup &es)
QuadrupletSeedMerger * theMerger_
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
T get(const Candidate &c)
virtual std::vector< TrackingRegion * > regions(const edm::Event &ev, const edm::EventSetup &es) const =0