25 int plane = strip.
plane();
28 std::vector< std::pair<DetId,float> >
dummy;
31 if (strip ==
ESDetId(0))
return nullcluster;
35 double refEta = refpos.
eta();
36 double refPhi = refpos.
phi();
45 RecHitsMap::iterator strip_it;
51 if (mystrip.
plane() != plane)
continue;
53 auto thisCell = geometry_p->
getGeometry(strip_it->first);
56 if (fabs(position.
eta() - refEta) < deltaEta) {
65 clusterRecHits.
push_back(strip_it->second);
66 used_s->insert(strip_it->first);
68 x_pos += strip_it->second.energy() * position.
x();
69 y_pos += strip_it->second.energy() * position.
y();
70 z_pos += strip_it->second.energy() * position.
z();
78 std::vector<std::pair<DetId,float > > usedHits;
79 for (it=clusterRecHits.
begin(); it != clusterRecHits.
end(); it++) {
80 Eclust += it->energy();
81 usedHits.push_back(std::pair<DetId,float > (it->id(), 1.));
100 LogTrace(
"PreShowerPhiClusterAlgo") <<
" This strip is in use";
102 LogTrace(
"PreShowerPhiClusterAlgo") <<
" No such a strip in rechits_map";
104 LogTrace(
"PreShowerPhiClusterAlgo") <<
"Strip energy" << candidate_it->second.energy() <<
"is below threshold";
107 if ( (
used_s->find(candidate_it->first) !=
used_s->end()) ||
constexpr double deltaPhi(double phi1, double phi2)
reco::PreshowerCluster makeOneCluster(ESDetId strip, HitsID *used_strips, RecHitsMap *rechits_map, const CaloSubdetectorGeometry *geometry_p, double deltaEta, double minDeltaPhi, double maxDeltaPhi)
Geom::Phi< T > phi() const
void push_back(T const &t)
static const double deltaEta
bool goodStrip(RecHitsMap::iterator candidate_it)
std::vector< EcalRecHit >::iterator iterator
const_iterator end() const
virtual std::shared_ptr< const CaloCellGeometry > getGeometry(const DetId &id) const
Get the cell geometry of a given detector id. Should return false if not found.
std::map< DetId, EcalRecHit > RecHitsMap
Structure Point Contains parameters of Gaussian fits to DMRs.
static int position[264][3]
const_iterator begin() const