81 std::cerr <<
"ESRecoSummary::analyze --> recHitsES not found" << std::endl;
84 float maxRecHitEnergyES = -999.;
89 if (esItr->energy() > maxRecHitEnergyES)
90 maxRecHitEnergyES = esItr->energy();
110 if (!superClusters_EE_h.
isValid()) {
111 std::cerr <<
"EcalRecHitSummary::analyze --> superClusters_EE_h not found" << std::endl;
115 for (reco::SuperClusterCollection::const_iterator itSC = theEndcapSuperClusters->begin();
116 itSC != theEndcapSuperClusters->end();
118 if (fabs(itSC->eta()) < 1.65 || fabs(itSC->eta()) > 2.6)
121 float ESenergyPlane1 = 0.;
122 float ESenergyPlane2 = 0.;
126 ecalBasicCluster++) {
129 for (reco::PreshowerClusterCollection::const_iterator iESClus = ESclustersX->begin();
130 iESClus != ESclustersX->end();
134 if (preshBasicCluster == ecalBasicClusterPtr) {
135 ESenergyPlane1 += esCluster->
energy();
139 for (reco::PreshowerClusterCollection::const_iterator iESClus = ESclustersY->begin();
140 iESClus != ESclustersY->end();
144 if (preshBasicCluster == ecalBasicClusterPtr) {
145 ESenergyPlane2 += esCluster->
energy();
153 if (ESenergyPlane1 > 0 && ESenergyPlane2 > 0)