48 bool accepted =
false;
57 int ebabovethresh = 0;
58 int eeabovethresh = 0;
59 int etotabovethresh = 0;
67 if (!EBRecHitCollection_.label().empty() && !EBRecHitCollection_.instance().empty()) {
68 iEvent.getByLabel(EBRecHitCollection_, pEBRecHits);
72 edm::LogError(
"EcalRecHitError") <<
"Error! can't get the product " << EBRecHitCollection_.label();
76 if (!EERecHitCollection_.label().empty() && !EERecHitCollection_.instance().empty()) {
77 iEvent.getByLabel(EERecHitCollection_, pEERecHits);
82 edm::LogError(
"EcalRecHitError") <<
"Error! can't get the product " << EERecHitCollection_.label();
104 if (ebabovethresh >=
EBnum)
106 if (eeabovethresh >=
EEnum)
108 if (etotabovethresh >=
ETOTnum)
111 accepted = eb | ee | etot;
T getParameter(std::string const &) const
T const * product() const
std::vector< EcalRecHit >::const_iterator const_iterator
Log< level::Error, false > LogError
T getUntrackedParameter(std::string const &, T const &) const
#define DEFINE_FWK_MODULE(type)
bool filter(edm::Event &, const edm::EventSetup &) override
ECALActivity(const edm::ParameterSet &)