83 std::cerr <<
"ESRecoSummary::analyze --> recHitsES not found" << std::endl;
86 float maxRecHitEnergyES = -999.;
92 if (esItr -> energy() > maxRecHitEnergyES ) maxRecHitEnergyES = esItr -> energy() ;
113 if ( ! superClusters_EE_h.
isValid() ) {
114 std::cerr <<
"EcalRecHitSummary::analyze --> superClusters_EE_h not found" << std::endl;
118 for (reco::SuperClusterCollection::const_iterator itSC = theEndcapSuperClusters->begin();
119 itSC != theEndcapSuperClusters->end(); ++itSC ) {
121 if ( fabs(itSC->eta()) < 1.65 || fabs(itSC->eta()) > 2.6 )
continue;
123 float ESenergyPlane1 = 0.;
124 float ESenergyPlane2 = 0.;
129 ecalBasicCluster++) {
132 for (reco::PreshowerClusterCollection::const_iterator iESClus = ESclustersX->begin(); iESClus != ESclustersX->end();
136 if (preshBasicCluster == ecalBasicClusterPtr) {
137 ESenergyPlane1 += esCluster->
energy();
141 for (reco::PreshowerClusterCollection::const_iterator iESClus = ESclustersY->begin(); iESClus != ESclustersY->end();
145 if (preshBasicCluster == ecalBasicClusterPtr) {
146 ESenergyPlane2 += esCluster->
energy();
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
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
ESRecoSummary(const edm::ParameterSet &)
edm::EDGetTokenT< reco::PreshowerClusterCollection > esClusterCollectionY_
void setCurrentFolder(std::string const &fullpath)
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
MonitorElement * h_recHits_ES_energyMax
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
MonitorElement * book1D(Args &&...args)
std::vector< PreshowerCluster > PreshowerClusterCollection
collection of PreshowerCluster objects
double energy() const
cluster energy
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
const_iterator end() const
T const * product() const
void analyze(const edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< reco::PreshowerClusterCollection > esClusterCollectionX_
MonitorElement * h_esClusters_energy_plane2
edm::EDGetTokenT< reco::SuperClusterCollection > superClusterCollection_EE_
const_iterator begin() const