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";
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