44 LogDebug(
"HitExtractorPIX") <<
"getting : " << result.size() <<
" pixel hits.";
49 for (
unsigned int iH = 0; iH != result.size(); ++iH) {
50 if (result[iH]->isValid()) {
52 assert(pixelClusterMask->
refProd().
id() == concrete.cluster().
id());
53 if (pixelClusterMask->
mask(concrete.cluster().key())) {
60 LogDebug(
"HitExtractorPIX") <<
"skipped :" << skipped <<
" pixel clusters";
63 auto last = std::remove_if(result.begin(), result.end(), [](
HitPointer const&
p) {
return p.empty(); });
64 result.resize(
last - result.begin());
67 LogDebug(
"HitExtractorPIX") <<
"giving :" << result.size() <<
" rechits out";
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
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