11 using namespace ctfseeding;
37 LogDebug(
"HitExtractorPIX")<<
"getting : "<<result.size()<<
" pixel hits.";
41 std::vector<bool>
keep(result.size(),
true);
43 unsigned int skipped=0;
44 if (result.empty())
return result;
45 newHits.reserve(result.size());
46 for (
unsigned int iH=0;iH!=result.size();++iH){
47 if (result[iH]->
hit()->isValid()){
49 assert(pixelClusterMask->refProd().
id() == concrete->cluster().id());
50 if(pixelClusterMask->mask(concrete->cluster().key())) {
56 newHits.push_back(result[iH]);
59 LogDebug(
"HitExtractorPIX")<<
"skipped :"<<skipped<<
" pixel clusters";
61 LogDebug(
"HitExtractorPIX")<<
"giving :"<<result.size()<<
" rechits out";
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::pair< DetId, DetIdPXFSameDiskComparator > pixelForwardDisk(int side, int disk)
void range2SeedingHits(DSTV const &dstv, HitExtractor::Hits &v, std::pair< A, B > const &sel, const TransientTrackingRecHitBuilder &ttrhBuilder, const edm::EventSetup &es)
std::pair< DetId, DetIdPXBSameLayerComparator > pixelBarrelLayer(int layer)