94 std::cerr <<
"ESRecoSummary::analyze --> recHitsES not found" << std::endl;
97 float maxRecHitEnergyES = -999.;
103 if (esItr -> energy() > maxRecHitEnergyES ) maxRecHitEnergyES = esItr -> energy() ;
124 if ( ! superClusters_EE_h.
isValid() ) {
125 std::cerr <<
"EcalRecHitSummary::analyze --> superClusters_EE_h not found" << std::endl;
129 for (reco::SuperClusterCollection::const_iterator itSC = theEndcapSuperClusters->begin();
130 itSC != theEndcapSuperClusters->end(); ++itSC ) {
132 if ( fabs(itSC->eta()) < 1.65 || fabs(itSC->eta()) > 2.6 )
continue;
134 float ESenergyPlane1 = 0.;
135 float ESenergyPlane2 = 0.;
140 ecalBasicCluster++) {
143 for (reco::PreshowerClusterCollection::const_iterator iESClus = ESclustersX->begin(); iESClus != ESclustersX->end();
147 if (preshBasicCluster == ecalBasicClusterPtr) {
148 ESenergyPlane1 += esCluster->
energy();
152 for (reco::PreshowerClusterCollection::const_iterator iESClus = ESclustersY->begin(); iESClus != ESclustersY->end();
156 if (preshBasicCluster == ecalBasicClusterPtr) {
157 ESenergyPlane2 += esCluster->
energy();
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
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
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