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)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< EcalRecHit >::const_iterator const_iterator
MonitorElement * h_esClusters_energy_plane1
MonitorElement * h_recHits_ES_time
edm::EDGetTokenT< ESRecHitCollection > esRecHitCollection_
MonitorElement * h_esClusters_energy_ratio
edm::EDGetTokenT< reco::PreshowerClusterCollection > esClusterCollectionY_
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
MonitorElement * h_recHits_ES_energyMax
std::vector< PreshowerCluster > PreshowerClusterCollection
collection of PreshowerCluster objects
double energy() const
cluster energy
const_iterator end() const
T const * product() const
edm::EDGetTokenT< reco::PreshowerClusterCollection > esClusterCollectionX_
MonitorElement * h_esClusters_energy_plane2
edm::EDGetTokenT< reco::SuperClusterCollection > superClusterCollection_EE_
const_iterator begin() const