50 bool accepted =
false;
52 bool acceptedtot =
false;
53 bool acceptedEcal =
false;
54 bool acceptedHcal =
false;
56 int ievt =
iEvent.id().event();
57 int irun =
iEvent.id().run();
58 int ils =
iEvent.luminosityBlock();
59 int ibx =
iEvent.bunchCrossing();
73 if (!EBRecHitCollection_.label().empty() && !EBRecHitCollection_.instance().empty()) {
74 iEvent.getByLabel(EBRecHitCollection_, pEBRecHits);
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);
88 edm::LogError(
"EcalRecHitError") <<
"Error! can't get the product " << EERecHitCollection_.label();
92 if (!HBHERecHitCollection_.label().empty()) {
93 iEvent.getByLabel(HBHERecHitCollection_, pHBHERecHits);
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
T getParameter(std::string const &) const
#define DEFINE_FWK_MODULE(type)
T const * product() const
std::vector< EcalRecHit >::const_iterator const_iterator
Log< level::Error, false > LogError
T getUntrackedParameter(std::string const &, T const &) const
bool filter(edm::Event &, const edm::EventSetup &) override
BeamSplash(const edm::ParameterSet &)