Definition at line 14 of file HitExtractorPIX.h.
Implements ctfseeding::HitExtractor.
Definition at line 25 of file HitExtractorPIX.cc.
References ctfseeding::SeedingLayer::Barrel, edm::EventSetup::get(), edm::Event::getByToken(), edm::ProductID::id(), edm::RefProd< C >::id(), plotBeamSpotDB::last, LogDebug, edm::ContainerMask< T >::mask(), AlCaHLTBitMon_ParallelJobs::p, NuclearInteractionSecond_cff::pixelHits, TrackerTopology::pxbDetIdLayerComparator(), TrackerTopology::pxfDetIdDiskComparator(), ctfseeding::range2SeedingHits(), edm::ContainerMask< T >::refProd(), mps_fire::result, ctfseeding::HitExtractor::skipClusters, runEdmFileComparison::skipped, theHitProducer, theIdLayer, theSide, and theSkipClusters.
Referenced by ntupleDataFormat._TrackingParticleMatchAdaptor::bestMatchingTrackingParticle(), and ~HitExtractorPIX().
43 LogDebug(
"HitExtractorPIX")<<
"getting : "<<result.size()<<
" pixel hits.";
48 for (
unsigned int iH=0;iH!=result.size();++iH){
49 if (result[iH]->isValid()){
51 assert(pixelClusterMask->
refProd().
id() == concrete.cluster().
id());
52 if(pixelClusterMask->
mask(concrete.cluster().key())) {
59 LogDebug(
"HitExtractorPIX")<<
"skipped :"<<skipped<<
" pixel clusters";
62 auto last = std::remove_if(result.begin(),result.end(),[](
HitPointer const &
p) {
return p.empty();});
63 result.resize(
last-result.begin());
66 LogDebug(
"HitExtractorPIX")<<
"giving :"<<result.size()<<
" rechits out";
void range2SeedingHits(DSTV const &dstv, HitExtractor::Hits &v, std::pair< A, B > const &sel)
std::pair< DetId, SameLayerComparator > pxfDetIdDiskComparator(uint32_t side, uint32_t disk) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
bool mask(unsigned int iIndex) const
ProductID id() const
Accessor for product ID.
const edm::RefProd< T > & refProd() const
std::pair< DetId, SameLayerComparator > pxbDetIdLayerComparator(uint32_t layer) const