48 trackQuality_(
reco::TrackBase::qualityByName(iConfig.getParameter<
std::
string>(
"TrackQuality"))),
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;