41 class ecalRecHitLess :
public std::binary_function<EcalRecHit, EcalRecHit, bool>
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();
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_
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
void setCurrentFolder(const std::string &fullpath)
T const * product() const
virtual 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_
bool operator()(EcalRecHit x, EcalRecHit y)
const_iterator begin() const