◆ QualityMaskCollection
◆ FastTrackerRecHitMaskProducer()
FastTrackerRecHitMaskProducer::FastTrackerRecHitMaskProducer |
( |
const edm::ParameterSet & |
iConfig | ) |
|
|
explicit |
Definition at line 46 of file FastTrackerRecHitMaskProducer.cc.
References edm::ParameterSet::getParameter(), oldHitMaskToken_, MixedTripletStep_cff::oldHitRemovalInfo, and srcQuals.
51 produces<std::vector<bool> >();
54 if (!classifier.label().empty())
55 srcQuals = consumes<QualityMaskCollection>(classifier);
T getParameter(std::string const &) const
const int minNumberOfLayersWithMeasBeforeFiltering_
const reco::TrackBase::TrackQuality trackQuality_
static TrackQuality qualityByName(const std::string &name)
edm::EDGetTokenT< QualityMaskCollection > srcQuals
const TrackCollectionTokens trajectories_
edm::EDGetTokenT< FastTrackerRecHitCollection > recHits_
edm::EDGetTokenT< std::vector< bool > > oldHitMaskToken_
◆ ~FastTrackerRecHitMaskProducer()
FastTrackerRecHitMaskProducer::~FastTrackerRecHitMaskProducer |
( |
| ) |
|
|
inlineoverride |
◆ produce()
Definition at line 63 of file FastTrackerRecHitMaskProducer.cc.
References mps_fire::i, hit::id, iEvent, edm::EDGetTokenT< T >::isUninitialized(), minNumberOfLayersWithMeasBeforeFiltering_, eostools::move(), oldHitMaskToken_, edm::Handle< T >::product(), FastTrackerRecHitMaskProducer_cfi::recHits, recHits_, srcQuals, HLT_2024v12_cff::track, trackQuality_, TrackCollectionTokens::tracks(), DiMuonV_cfg::tracks, trajectories_, mitigatedMETSequence_cff::U, and reco::TrackBase::undefQuality.
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;
const int minNumberOfLayersWithMeasBeforeFiltering_
T const * product() const
constexpr bool isUninitialized() const noexcept
std::vector< unsigned char > QualityMaskCollection
const reco::TrackBase::TrackQuality trackQuality_
edm::EDGetTokenT< QualityMaskCollection > srcQuals
const TrackCollectionTokens trajectories_
edm::EDGetTokenT< FastTrackerRecHitCollection > recHits_
reco::TrackCollection const & tracks(edm::Event &evt) const
edm::EDGetTokenT< std::vector< bool > > oldHitMaskToken_
◆ minNumberOfLayersWithMeasBeforeFiltering_
const int FastTrackerRecHitMaskProducer::minNumberOfLayersWithMeasBeforeFiltering_ |
|
private |
◆ oldHitMaskToken_
edm::EDGetTokenT<std::vector<bool> > FastTrackerRecHitMaskProducer::oldHitMaskToken_ |
|
private |
◆ recHits_
◆ srcQuals
◆ trackQuality_
◆ trajectories_