50 bool accepted =
false;
52 bool acceptedtot =
false;
53 bool acceptedEcal =
false;
54 bool acceptedHcal =
false;
57 int irun = iEvent.
id().
run();
73 if (!EBRecHitCollection_.label().empty() && !EBRecHitCollection_.instance().empty()) {
74 iEvent.
getByLabel(EBRecHitCollection_, pEBRecHits);
76 EBRecHits = pEBRecHits.
product();
78 edm::LogError(
"EcalRecHitError") <<
"Error! can't get the product " << EBRecHitCollection_.label();
82 if (!EERecHitCollection_.label().empty() && !EERecHitCollection_.instance().empty()) {
83 iEvent.
getByLabel(EERecHitCollection_, pEERecHits);
86 EERecHits = pEERecHits.
product();
88 edm::LogError(
"EcalRecHitError") <<
"Error! can't get the product " << EERecHitCollection_.label();
92 if (!HBHERecHitCollection_.label().empty()) {
93 iEvent.
getByLabel(HBHERecHitCollection_, pHBHERecHits);
96 HBHERecHits = pHBHERecHits.
product();
98 edm::LogError(
"HcalRecHitError") <<
"Error! can't get the product " << HBHERecHitCollection_.label();
105 totene += it->energy();
106 ecalene += it->energy();
111 totene += it->energy();
112 ecalene += it->energy();
117 totene += it->energy();
118 hcalene += it->energy();
122 if (totene > EnergyCutTot)
124 if (ecalene > EnergyCutEcal)
126 if (hcalene > EnergyCutHcal)
129 accepted = acceptedtot | acceptedEcal | acceptedHcal;
132 edm::LogVerbatim(
"BeamSplash") <<
"!!!!!!!BeamSplash!!!!!!!: run:" << irun <<
" event:" << ievt <<
" ls:" << ils
133 <<
" bx= " << ibx <<
" totene=" << totene <<
" ecalene=" << ecalene
134 <<
" hcalene=" << hcalene;
135 std::cout <<
"!!!!!!!BeamSplash!!!!!!!: run:" << irun <<
" event:" << ievt <<
" ls:" << ils <<
" bx= " << ibx
136 <<
" totene=" << totene <<
" ecalene=" << ecalene <<
" hcalene=" << hcalene << std::endl;
Log< level::Info, true > LogVerbatim
EventNumber_t event() const
T getUntrackedParameter(std::string const &, T const &) const
#define DEFINE_FWK_MODULE(type)
std::vector< EcalRecHit >::const_iterator const_iterator
int bunchCrossing() const
edm::LuminosityBlockNumber_t luminosityBlock() const
Log< level::Error, false > LogError
bool filter(edm::Event &, const edm::EventSetup &) override
BeamSplash(const edm::ParameterSet &)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
const_iterator end() const
T const * product() const
T getParameter(std::string const &) const
const_iterator begin() const