51 produces<std::vector<bool> >();
54 if (!classifier.label().empty())
55 srcQuals = consumes<QualityMaskCollection>(classifier);
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;
103 if (!(*hitIt)->isValid())
107 for (
unsigned id_index = 0; id_index < hit.
nIds(); id_index++) {
108 (*collectedHits)[unsigned(hit.
id(id_index))] =
true;
T getParameter(std::string const &) const
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_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
TrackQuality
track quality
int trackerLayersWithMeasurement() const
#define DEFINE_FWK_MODULE(type)
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
bool quality(const TrackQuality) const
Track quality.
const TrackCollectionTokens trajectories_
edm::EDGetTokenT< FastTrackerRecHitCollection > recHits_
virtual int32_t id(size_t i=0) const
bool isUninitialized() const
edm::EDGetTokenT< std::vector< bool > > oldHitMaskToken_
trackingRecHit_iterator recHitsEnd() const
Iterator to last hit on the track.