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)
T getParameter(std::string const &) const
virtual void setCurrentFolder(std::string const &fullpath)
#define DEFINE_FWK_MODULE(type)
T const * product() 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
T getUntrackedParameter(std::string const &, T const &) const
ESRecoSummary(const edm::ParameterSet &)
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
const_iterator begin() const
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
const_iterator end() const
double energy() const
cluster energy
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_
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())