53 : minNumberOfLayersWithMeasBeforeFiltering_(iConfig.getParameter<int>(
"minNumberOfLayersWithMeasBeforeFiltering"))
54 , trackQuality_(
reco::TrackBase::qualityByName(iConfig.getParameter<std::
string>(
"TrackQuality")))
55 , trajectories_(iConfig.getParameter<edm::
InputTag>(
"trajectories"),consumesCollector())
59 produces<std::vector<bool> >();
62 if ( !classifier.label().empty())
63 srcQuals = consumes<QualityMaskCollection>(classifier);
66 if (!oldHitRemovalInfo.label().empty()) {
75 std::unique_ptr<std::vector<bool> > collectedHits(
new std::vector<bool>());
85 collectedHits->insert(collectedHits->begin(),oldHitMasks->begin(),oldHitMasks->end());
87 collectedHits->resize(recHits->size(),
false);
99 unsigned char qualMask = ~0;
106 if ( !goodTk)
continue;
109 if(!(*hitIt)->isValid())
113 for(
unsigned id_index = 0;id_index < hit.
nIds();id_index++){
114 (*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
#define DEFINE_FWK_MODULE(type)
virtual ~FastTrackerRecHitMaskProducer()
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_
virtual void produce(edm::Event &, const edm::EventSetup &) 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.