Go to the documentation of this file.
15 : recHits_(
hits), geometry_(geo) {}
18 double numeratorEtaWidth = 0;
19 double numeratorPhiWidth = 0;
21 double scEnergy = passedCluster.
energy();
24 double scEta = passedCluster.
position().eta();
25 double scPhi = passedCluster.
position().phi();
27 const std::vector<std::pair<DetId, float> >& detId = passedCluster.
hitsAndFractions();
29 for (
std::vector<std::pair<DetId, float> >::const_iterator
hit = detId.begin();
hit != detId.end(); ++
hit) {
36 if (this_cell ==
nullptr) {
42 double energyHit = rHit->energy() *
hit->second;
56 numeratorEtaWidth += energyHit *
dEta *
dEta;
57 numeratorPhiWidth += energyHit *
dPhi *
dPhi;
std::vector< EcalRecHit >::const_iterator const_iterator
const EcalRecHitCollection * recHits_
SuperClusterShapeAlgo(const EcalRecHitCollection *hits, const CaloSubdetectorGeometry *geometry)
const std::vector< std::pair< DetId, float > > & hitsAndFractions() const
const_iterator end() const
static int position[264][3]
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.
const math::XYZPoint & position() const
cluster centroid position
iterator find(key_type k)
const CaloSubdetectorGeometry * geometry_
void Calculate_Covariances(const reco::SuperCluster &passedCluster)
double energy() const
cluster energy