25 int plane =
strip.plane();
28 std::vector<std::pair<DetId, float> >
dummy;
36 double refEta = refpos.
eta();
37 double refPhi = refpos.
phi();
46 RecHitsMap::iterator strip_it;
52 if (mystrip.
plane() != plane)
55 auto thisCell = geometry_p->
getGeometry(strip_it->first);
68 clusterRecHits.
push_back(strip_it->second);
69 used_s->insert(strip_it->first);
71 x_pos += strip_it->second.energy() *
position.x();
72 y_pos += strip_it->second.energy() *
position.y();
73 z_pos += strip_it->second.energy() *
position.z();
80 std::vector<std::pair<DetId, float> > usedHits;
81 for (it = clusterRecHits.
begin(); it != clusterRecHits.
end(); it++) {
82 Eclust += it->energy();
83 usedHits.push_back(std::pair<DetId, float>(it->id(), 1.));
101 LogTrace(
"PreShowerPhiClusterAlgo") <<
" This strip is in use";
103 LogTrace(
"PreShowerPhiClusterAlgo") <<
" No such a strip in rechits_map";
105 LogTrace(
"PreShowerPhiClusterAlgo") <<
"Strip energy" << candidate_it->second.energy() <<
"is below threshold";
108 if ((
used_s->find(candidate_it->first) !=
used_s->end()) ||
constexpr double deltaPhi(double phi1, double phi2)
Geom::Phi< T > phi() const
reco::PreshowerCluster makeOneCluster(ESDetId strip, HitsID *used_strips, RecHitsMap *rechits_map, const CaloSubdetectorGeometry *geometry_p, double deltaEta, double minDeltaPhi, double maxDeltaPhi)
void push_back(T const &t)
static const double deltaEta
bool goodStrip(RecHitsMap::iterator candidate_it)
const_iterator begin() 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::vector< EcalRecHit >::iterator iterator
const_iterator end() const
std::map< DetId, EcalRecHit > RecHitsMap
Structure Point Contains parameters of Gaussian fits to DMRs.
static int position[264][3]