89 produces<TrajectorySeedCollection>();
94 if (conf.
exists(
"hitMasks")) {
99 std::vector<std::string> layerStringList =
101 std::string layerBegin = *(layerStringList.cbegin());
103 for (
auto it = layerStringList.cbegin();
it < layerStringList.cend(); ++
it) {
104 std::vector<TrackingLayer> trackingLayerList;
107 unsigned int nHitsPerSeed = 0;
108 while (
pos != std::string::npos) {
112 trackingLayerList.push_back(layerSpec);
116 if (
it == layerStringList.cbegin()) {
119 throw cms::Exception(
"FastSimTracking") <<
"All allowed seed layer definitions must have same elements";
125 if (conf.
exists(
"seedFinderSelector")) {
146 const std::vector<bool>*
hitMasks =
nullptr;
176 std::vector<const FastTrackerRecHit*> seedHitCandidates;
177 for (
const auto& _hit : recHitCombination) {
181 seedHitCandidates.push_back(_hit.get());
192 std::vector<unsigned int> seedHitNumbers =
seedFinder.getSeed(seedHitCandidates);
195 if (seedHitNumbers.size() > 1) {
198 for (
unsigned iIndex = 0; iIndex < seedHitNumbers.size(); ++iIndex) {
199 seedHits.
push_back(seedHitCandidates[seedHitNumbers[iIndex]]->
clone());
209 seedHits.
size() >= 3 ? &seedHits[2] :
nullptr,
210 seedHits.
size() >= 4 ? &seedHits[3] :
nullptr));
void setRecHitCombinationIndex(edm::OwnVector< T > &recHits, int32_t icomb)
T getParameter(std::string const &) const
void produce(edm::Event &, const edm::EventSetup &) override
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
TrajectorySeedProducer(const edm::ParameterSet &conf)
edm::EDGetTokenT< std::vector< bool > > hitMasksToken
bool exists(std::string const ¶meterName) const
checks if a parameter exists
constexpr bool isUninitialized() const noexcept
edm::EDGetTokenT< std::vector< std::unique_ptr< TrackingRegion > > > trackingRegionToken
unsigned int nHitsPerSeed_
bool insert(const std::vector< DATA > &dataList)
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > trackerTopologyESToken_
std::string measurementTrackerLabel
std::vector< TrajectorySeed > TrajectorySeedCollection
std::unique_ptr< SeedFinderSelector > seedFinderSelector
static TrackingLayer createFromString(std::string layerSpecification)
#define DEFINE_FWK_MODULE(type)
bool hitIsMasked(const FastTrackerRecHit *hit, const std::vector< bool > &hitMasks)
std::vector< FastTrackerRecHitRef > FastTrackerRecHitCombination
std::vector< std::vector< TrackingLayer > > seedingLayers
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
edm::EDGetTokenT< FastTrackerRecHitCombinationCollection > recHitCombinationsToken
SeedingTree< TrackingLayer > _seedingTree
std::unique_ptr< SeedCreator > seedCreator