47 : minNumberOfLayersWithMeasBeforeFiltering_(iConfig.getParameter<int>(
"minNumberOfLayersWithMeasBeforeFiltering")),
49 trajectories_(iConfig.getParameter<edm::
InputTag>(
"trajectories"), consumesCollector()),
51 produces<std::vector<bool> >();
54 if (!classifier.label().empty())
55 srcQuals = consumes<QualityMaskCollection>(classifier);
58 if (!oldHitRemovalInfo.label().empty()) {
66 std::unique_ptr<std::vector<bool> > collectedHits(
new std::vector<bool>());
76 collectedHits->insert(collectedHits->begin(), oldHitMasks->begin(), oldHitMasks->end());
78 collectedHits->resize(recHits->size(),
false);
90 unsigned char qualMask = ~0;
95 for (
auto i = 0U;
i <
tracks.size(); ++
i) {
103 if (!(*hitIt)->isValid())
107 for (
unsigned id_index = 0; id_index < hit.
nIds(); id_index++) {
108 (*collectedHits)[unsigned(hit.
id(id_index))] =
true;
std::vector< unsigned char > QualityMaskCollection
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
virtual size_t nIds() const
const int minNumberOfLayersWithMeasBeforeFiltering_
Quality qualityByName(std::string const &name)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
TrackQuality
track quality
#define DEFINE_FWK_MODULE(type)
constexpr bool isUninitialized() const noexcept
auto const & tracks
cannot be loose
int trackerLayersWithMeasurement() const
FastTrackerRecHitMaskProducer(const edm::ParameterSet &)
trackingRecHit_iterator recHitsBegin() const
Iterator to first hit on the track.
reco::TrackCollection const & tracks(edm::Event &evt) const
const reco::TrackBase::TrackQuality trackQuality_
void produce(edm::Event &, const edm::EventSetup &) override
~FastTrackerRecHitMaskProducer() override
T const * product() const
const HitPattern & hitPattern() const
Access the hit pattern, indicating in which Tracker layers the track has hits.
edm::EDGetTokenT< QualityMaskCollection > srcQuals
T getParameter(std::string const &) const
bool quality(const TrackQuality) const
Track quality.
const TrackCollectionTokens trajectories_
edm::EDGetTokenT< FastTrackerRecHitCollection > recHits_
virtual int32_t id(size_t i=0) const
edm::EDGetTokenT< std::vector< bool > > oldHitMaskToken_
trackingRecHit_iterator recHitsEnd() const
Iterator to last hit on the track.