50 auto const & cell = (*input)[kcell];
51 int cell_layer = (int)cell.layer();
53 std::abs(cell.positionREP().eta()) > 0.34 ) {
56 const std::pair<double,double>& thresholds =
58 if( cell.energy() < thresholds.first ||
59 cell.pt2() < thresholds.second ) {
60 LOGDRESSED(
"GenericTopoCluster::buildTopoCluster()")
61 <<
"RecHit " << cell.detId() <<
" with enegy "
62 << cell.energy() <<
" GeV was rejected!." << std::endl;
70 auto const & neighbours =
73 for(
auto nb : neighbours ) {
74 if( used[nb] || !rechitMask[nb] ) {
75 LOGDRESSED(
"GenericTopoCluster::buildTopoCluster()")
76 <<
" RecHit " << cell.detId() <<
"\'s"
77 <<
" neighbor RecHit " << input->at(nb).detId()
79 << input->at(nb).energy() <<
" GeV was rejected!"
80 <<
" Reasons : " << used[nb] <<
" (used) "
81 << !rechitMask[nb] <<
" (masked)." << std::endl;
void buildTopoCluster(const edm::Handle< reco::PFRecHitCollection > &, const std::vector< bool > &, unsigned int, std::vector< bool > &, reco::PFCluster &)
Fraction of a PFRecHit (rechits can be shared between several PFCluster's)
reco::PFRecHitRef makeRefhit(const edm::Handle< reco::PFRecHitCollection > &h, const unsigned i) const
const bool _useCornerCells
Abs< T >::type abs(const T &t)
void addRecHitFraction(const reco::PFRecHitFraction &frac)
add a given fraction of the rechit
std::unordered_map< int, std::pair< double, double > > _thresholds