12 using namespace ctfseeding;
38 LogDebug(
"HitExtractorPIX")<<
"getting : "<<result.size()<<
" pixel hits.";
42 unsigned int skipped=0;
43 for (
unsigned int iH=0;iH!=result.size();++iH){
44 if (result[iH]->isValid()){
46 assert(pixelClusterMask->refProd().
id() == concrete.cluster().id());
47 if(pixelClusterMask->mask(concrete.cluster().key())) {
54 LogDebug(
"HitExtractorPIX")<<
"skipped :"<<skipped<<
" pixel clusters";
57 auto last = std::remove_if(result.begin(),result.end(),[](
HitPointer const &
p) {
return p.empty();});
58 result.resize(
last-result.begin());
61 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)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::pair< DetId, DetIdPXFSameDiskComparator > pixelForwardDisk(int side, int disk)
std::pair< DetId, DetIdPXBSameLayerComparator > pixelBarrelLayer(int layer)