68 : propagatorLabel(conf.getParameter<std::
string>(
"propagator")),
75 produces<TrackCandidateCollection>();
78 if (conf.
exists(
"hitMasks")) {
118 for (
unsigned seedIndex = 0; seedIndex < seeds->size(); ++seedIndex) {
120 std::vector<int32_t> recHitCombinationIndices;
123 if (seed.
nHits() == 0) {
130 recHitCombinationIndices.push_back(icomb);
134 for (
auto icomb : recHitCombinationIndices) {
135 if (icomb < 0 ||
unsigned(icomb) >= recHitCombinations->size()) {
137 <<
" found seed with recHitCombination out or range: " << icomb << std::endl;
142 std::vector<const FastTrackerRecHit*> selectedRecHits;
145 for (
auto const& recHit : seed.
recHits()) {
146 selectedRecHits.push_back(static_cast<const FastTrackerRecHit*>(&recHit));
151 if (!selectedRecHits.empty()) {
152 lastHitToSkip = selectedRecHits.back();
159 for (
unsigned hitIndex = hitsAlongMomentum ? 0 : recHitCombination.size() - 1;
160 hitIndex < recHitCombination.size();
161 hitsAlongMomentum ? ++hitIndex : --hitIndex) {
166 if (lastHitToSkip->
sameId(selectedRecHit)) {
167 lastHitToSkip =
nullptr;
183 selectedRecHits.push_back(selectedRecHit);
191 selectedRecHits.back() = selectedRecHit;
212 const GeomDet* gdet = trackerGeometry.idToDet(seedDetId);
PropagationDirection direction() const
void setRecHitCombinationIndex(edm::OwnVector< T > &recHits, int32_t icomb)
T getUntrackedParameter(std::string const &, T const &) const
static std::vector< int > matchRecHitCombinations(const TrajectorySeed &seed, const FastTrackerRecHitCombinationCollection &recHitCombinationCollection, const std::vector< SimTrack > &simTrackCollection, double maxMatchEstimator, const Propagator &propagator, const MagneticField &magneticField, const TrackerGeometry &trackerGeometry)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > trackerGeometryESToken_
void produce(edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< edm::View< TrajectorySeed > > seedToken
bool getByToken(EDGetToken token, Handle< PROD > &result) const
bool sameId(const FastTrackerRecHit *other, size_t i=0, size_t j=0) const
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< edm::SimTrackContainer > simTrackToken
TrackCandidateProducer(const edm::ParameterSet &conf)
static TrackingLayer createFromDetId(const DetId &detId, const TrackerTopology &trackerTopology)
std::vector< TrackCandidate > TrackCandidateCollection
constexpr bool isUninitialized() const noexcept
constexpr uint32_t rawId() const
get the raw id
bool exists(std::string const ¶meterName) const
checks if a parameter exists
const Plane & surface() const
The nominal surface of the GeomDet.
FastTrackerRecHitSplitter hitSplitter
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magneticFieldESToken_
bool getData(T &iHolder) const
edm::EDGetTokenT< FastTrackerRecHitCombinationCollection > recHitCombinationsToken
unsigned int detId() const
edm::EDGetTokenT< std::vector< bool > > hitMasksToken
double maxSeedMatchEstimator
bool hitIsMasked(const FastTrackerRecHit *hit, const std::vector< bool > &hitMasks)
int32_t getRecHitCombinationIndex(const T &object)
const edm::ESGetToken< Propagator, TrackingComponentsRecord > propagatorESToken_
RecHitRange recHits() const
std::vector< FastTrackerRecHitRef > FastTrackerRecHitCombination
PTrajectoryStateOnDet const & startingState() const
void split(const FastTrackerRecHit &hitIn, edm::OwnVector< TrackingRecHit > &hitsOut, bool alongMomentum) const
T getParameter(std::string const &) const
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
unsigned int nHits() const
double hitLocalError(const TrackingRecHit *hit)
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > trackerTopologyESToken_
DetId geographicalId() const
std::string propagatorLabel