49 trajectories_(iConfig.getParameter<
edm::
InputTag>(
"trajectories"), consumesCollector()),
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;
102 for (
auto hitIt =
track.recHitsBegin(); hitIt !=
track.recHitsEnd(); ++hitIt) {
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
T getParameter(std::string const &) const
const int minNumberOfLayersWithMeasBeforeFiltering_
Quality qualityByName(std::string const &name)
TrackQuality
track quality
#define DEFINE_FWK_MODULE(type)
T const * product() const
constexpr bool isUninitialized() const noexcept
FastTrackerRecHitMaskProducer(const edm::ParameterSet &)
const reco::TrackBase::TrackQuality trackQuality_
void produce(edm::Event &, const edm::EventSetup &) override
~FastTrackerRecHitMaskProducer() override
auto const & tracks
cannot be loose
edm::EDGetTokenT< QualityMaskCollection > srcQuals
minNumberOfLayersWithMeasBeforeFiltering_
const TrackCollectionTokens trajectories_
edm::EDGetTokenT< FastTrackerRecHitCollection > recHits_
reco::TrackCollection const & tracks(edm::Event &evt) const
edm::EDGetTokenT< std::vector< bool > > oldHitMaskToken_