24 , measurementTracker_(0)
25 , measurementTrackerLabel_(cfg.getParameter<
std::
string>(
"measurementTracker"))
27 if(cfg.
exists(
"pixelTripletGeneratorFactory"))
33 if(cfg.
exists(
"MultiHitGeneratorFactory"))
41 throw cms::Exception(
"FastSimTracking") <<
"It is forbidden to specify both 'pixelTripletGeneratorFactory' and 'MultiHitGeneratorFactory' in configuration of SeedFinderSelection";
67 throw cms::Exception(
"FastSimTracking") <<
"ERROR: event not initialized";
71 throw cms::Exception(
"FastSimTracking") <<
"ERROR: trackingRegion not set";
78 throw cms::Exception(
"FastSimTracking") <<
"SeedFinderSelector::pass requires at least 2 hits";
83 std::vector<BaseTrackerRecHit const *> firstHits(1,static_cast<const BaseTrackerRecHit*>(hits[0]));
84 std::vector<BaseTrackerRecHit const *> secondHits(1,static_cast<const BaseTrackerRecHit*>(hits[1]));
102 throw cms::Exception(
"FastSimTracking") <<
"For the given configuration, SeedFinderSelector::pass requires at least 3 hits";
105 std::vector<const DetLayer *> thirdLayerDetLayer(1,thirdLayer);
106 std::vector<BaseTrackerRecHit const *> thirdHits(1,static_cast<const BaseTrackerRecHit*>(hits[2]));
114 return tripletresult.
size()!=0;
120 return tripletresult.
size()!=0;
T getParameter(std::string const &) const
bool pass(const std::vector< const FastTrackerRecHit * > &hits) const
const edm::EventSetup * eventSetup_
GlobalPoint const & origin() const
def create(alignables, pedeDump, additionalData, outputFile, config)
bool exists(std::string const ¶meterName) const
checks if a parameter exists
SeedFinderSelector(const edm::ParameterSet &cfg, edm::ConsumesCollector &&consumesCollector)
std::unique_ptr< HitTripletGeneratorFromPairAndLayers > pixelTripletGenerator_
virtual unsigned int size() const
const TrackingRegion * trackingRegion_
const DetLayer * detLayer(const DetId &id) const
obsolete method. Use idToLayer() instead.
unsigned int size() const override
HitDoublets doublets(const TrackingRegion ®, const edm::Event &ev, const edm::EventSetup &es, Layers layers)
void initEvent(const edm::Event &ev, const edm::EventSetup &es)
const MeasurementTracker * measurementTracker_
const GeometricSearchTracker * geometricSearchTracker() const
const std::string measurementTrackerLabel_
T get(const Candidate &c)
std::unique_ptr< MultiHitGeneratorFromPairAndLayers > multiHitGenerator_