49 bool accepted =
false;
58 int ebabovethresh = 0;
59 int eeabovethresh = 0;
60 int etotabovethresh = 0;
68 if (!EBRecHitCollection_.label().empty() && !EBRecHitCollection_.instance().empty()) {
69 iEvent.
getByLabel(EBRecHitCollection_, pEBRecHits);
71 EBRecHits = pEBRecHits.
product();
73 edm::LogError(
"EcalRecHitError") <<
"Error! can't get the product " << EBRecHitCollection_.label();
77 if (!EERecHitCollection_.label().empty() && !EERecHitCollection_.instance().empty()) {
78 iEvent.
getByLabel(EERecHitCollection_, pEERecHits);
81 EERecHits = pEERecHits.
product();
83 edm::LogError(
"EcalRecHitError") <<
"Error! can't get the product " << EERecHitCollection_.label();
105 if (ebabovethresh >=
EBnum)
107 if (eeabovethresh >=
EEnum)
109 if (etotabovethresh >=
ETOTnum)
112 accepted = eb | ee | etot;
T getUntrackedParameter(std::string const &, T const &) const
#define DEFINE_FWK_MODULE(type)
std::vector< EcalRecHit >::const_iterator const_iterator
Log< level::Error, false > LogError
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
const_iterator end() const
T const * product() const
bool filter(edm::Event &, const edm::EventSetup &) override
T getParameter(std::string const &) const
ECALActivity(const edm::ParameterSet &)
const_iterator begin() const