56 int cell_layer = (int)cell->layer();
58 std::abs(cell->positionREP().eta()) > 0.34 ) {
61 const std::pair<double,double>& thresholds =
63 if( cell->energy() < thresholds.first ||
64 cell->pt2() < thresholds.second ) {
65 LOGDRESSED(
"GenericTopoCluster::buildTopoCluster()")
66 <<
"RecHit " << cell->detId() <<
" with enegy "
67 << cell->energy() <<
" GeV was rejected!." << std::endl;
71 used[cell.
key()] =
true;
78 if( used[nb.key()] || !rechitMask[nb.key()] ) {
79 LOGDRESSED(
"GenericTopoCluster::buildTopoCluster()")
80 <<
" RecHit " << cell->detId() <<
"\'s"
81 <<
" neighbor RecHit " << input->at(nb.key()).detId()
83 << input->at(nb.key()).
energy() <<
" GeV was rejected!"
84 <<
" Reasons : " << used[nb.key()] <<
" (used) "
85 << !rechitMask[nb.key()] <<
" (masked)." << std::endl;
Fraction of a PFRecHit (rechits can be shared between several PFCluster's)
key_type key() const
Accessor for product key.
const bool _useCornerCells
Abs< T >::type abs(const T &t)
void buildTopoCluster(const edm::Handle< reco::PFRecHitCollection > &, const std::vector< bool > &, const reco::PFRecHitRef &, std::vector< bool > &, reco::PFCluster &)
void addRecHitFraction(const reco::PFRecHitFraction &frac)
add a given fraction of the rechit
std::unordered_map< int, std::pair< double, double > > _thresholds