123 std::cerr <<
"ESRecoSummary::analyze --> recHitsES not found" << std::endl;
126 float maxRecHitEnergyES = -999.;
132 if (esItr ->
energy() > maxRecHitEnergyES ) maxRecHitEnergyES = esItr ->
energy() ;
153 if ( ! superClusters_EE_h.
isValid() ) {
154 std::cerr <<
"EcalRecHitSummary::analyze --> superClusters_EE_h not found" << std::endl;
158 for (reco::SuperClusterCollection::const_iterator itSC = theEndcapSuperClusters->begin();
159 itSC != theEndcapSuperClusters->end(); ++itSC ) {
161 if ( fabs(itSC->eta()) < 1.65 || fabs(itSC->eta()) > 2.6 )
continue;
165 ecalBasicCluster++) {
168 float ESenergyPlane1 = -999.;
169 float ESenergyPlane2 = -999.;
171 for (reco::PreshowerClusterCollection::const_iterator iESClus = ESclustersX->begin(); iESClus != ESclustersX->end();
175 if (preshBasicCluster == ecalBasicClusterPtr) {
176 ESenergyPlane1 = esCluster->
energy();
181 for (reco::PreshowerClusterCollection::const_iterator iESClus = ESclustersY->begin(); iESClus != ESclustersY->end();
185 if (preshBasicCluster == ecalBasicClusterPtr) {
186 ESenergyPlane2 = esCluster->
energy();
191 if ( ESenergyPlane1 != -999. && ESenergyPlane2 != -999. )
std::vector< EcalRecHit >::const_iterator const_iterator
MonitorElement * h_esClusters_energy_plane1
MonitorElement * h_recHits_ES_time
edm::InputTag esClusterCollectionY_
MonitorElement * h_esClusters_energy_ratio
edm::InputTag superClusterCollection_EE_
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
edm::InputTag esRecHitCollection_
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
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
const_iterator end() const
T const * product() const
MonitorElement * h_esClusters_energy_plane2
edm::InputTag esClusterCollectionX_
const_iterator begin() const