53 bool accepted =
false;
64 int etotabovethresh=0;
73 if ( EBRecHitCollection_.label() !=
"" && EBRecHitCollection_.instance() !=
"" )
75 iEvent.
getByLabel( EBRecHitCollection_, pEBRecHits);
78 EBRecHits = pEBRecHits.
product();
82 edm::LogError(
"EcalRecHitError") <<
"Error! can't get the product " << EBRecHitCollection_.label() ;
86 if ( EERecHitCollection_.label() !=
"" && EERecHitCollection_.instance() !=
"" )
88 iEvent.
getByLabel( EERecHitCollection_, pEERecHits);
92 EERecHits = pEERecHits.
product();
96 edm::LogError(
"EcalRecHitError") <<
"Error! can't get the product " << EERecHitCollection_.label() ;
106 if (it->energy()>
EBthresh) ebabovethresh++;
107 if (it->energy()>
ETOTthresh) etotabovethresh++;
114 if (it->energy()>
EEthresh) eeabovethresh++;
115 if (it->energy()>
ETOTthresh) etotabovethresh++;
119 if(ebabovethresh>=
EBnum) eb=
true;
120 if(eeabovethresh>=
EEnum) ee=
true;
121 if(etotabovethresh>=
ETOTnum) etot=
true;
123 accepted = eb|ee|etot;
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
std::vector< EcalRecHit >::const_iterator const_iterator
DEFINE_FWK_MODULE(HiMixingModule)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
const_iterator end() const
virtual bool filter(edm::Event &, const edm::EventSetup &) override
T const * product() const
ECALActivity(const edm::ParameterSet &)
const_iterator begin() const