124 std::cerr <<
"ESRecoSummary::analyze --> recHitsES not found" << std::endl;
127 float maxRecHitEnergyES = -999.;
133 if (esItr ->
energy() > maxRecHitEnergyES ) maxRecHitEnergyES = esItr ->
energy() ;
154 if ( ! superClusters_EE_h.
isValid() ) {
155 std::cerr <<
"EcalRecHitSummary::analyze --> superClusters_EE_h not found" << std::endl;
159 for (reco::SuperClusterCollection::const_iterator itSC = theEndcapSuperClusters->begin();
160 itSC != theEndcapSuperClusters->end(); ++itSC ) {
162 if ( fabs(itSC->eta()) < 1.65 || fabs(itSC->eta()) > 2.6 )
continue;
164 float ESenergyPlane1 = 0.;
165 float ESenergyPlane2 = 0.;
170 ecalBasicCluster++) {
173 for (reco::PreshowerClusterCollection::const_iterator iESClus = ESclustersX->begin(); iESClus != ESclustersX->end();
177 if (preshBasicCluster == ecalBasicClusterPtr) {
178 ESenergyPlane1 += esCluster->
energy();
182 for (reco::PreshowerClusterCollection::const_iterator iESClus = ESclustersY->begin(); iESClus != ESclustersY->end();
186 if (preshBasicCluster == ecalBasicClusterPtr) {
187 ESenergyPlane2 += esCluster->
energy();
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
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_
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_
virtual void analyze(const edm::Event &, const edm::EventSetup &)
void setCurrentFolder(const std::string &fullpath)
const_iterator begin() const