27 : theConfig(cfg), theGenerator(0), theRegionProducer(0),
28 theClusterCheck(cfg.getParameter<edm::
ParameterSet>(
"ClusterCheckPSet"),consumesCollector()),
36 if ( cfg.
exists(
"SeedMergerPSet")) {
40 theMerger_->setMergeTriplets( mergerPSet.
getParameter<
bool>(
"mergeTriplets" ) );
41 theMerger_->setAddRemainingTriplets( mergerPSet.
getParameter<
bool>(
"addRemainingTriplets" ) );
50 produces<TrajectorySeedCollection>();
93 edm::LogError(
"TooManyClusters") <<
"Found too many clusters (" << clustsOrZero <<
"), bailing out.\n";
98 typedef std::vector<TrackingRegion* > Regions;
99 typedef Regions::const_iterator IR;
104 for (IR ir=regions.begin(), irEnd=regions.end(); ir < irEnd; ++ir) {
116 for( TrajectorySeedCollection::const_iterator qIt = tempQuads.begin(); qIt < tempQuads.end(); ++qIt ) {
117 quadruplets->push_back( *qIt );
123 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.
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 &)
void run(TrajectorySeedCollection &seedCollection, const TrackingRegion ®ion, const edm::Event &ev, const edm::EventSetup &es)
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
T get(const Candidate &c)
virtual std::vector< TrackingRegion * > regions(const edm::Event &ev, const edm::EventSetup &es) const =0