53 bool accepted =
false;
55 bool acceptedtot =
false;
56 bool acceptedEcal =
false;
57 bool acceptedHcal =
false;
60 int irun = iEvent.
id().
run();
77 if ( EBRecHitCollection_.label() !=
"" && EBRecHitCollection_.instance() !=
"" )
79 iEvent.
getByLabel( EBRecHitCollection_, pEBRecHits);
82 EBRecHits = pEBRecHits.
product();
86 edm::LogError(
"EcalRecHitError") <<
"Error! can't get the product " << EBRecHitCollection_.label() ;
90 if ( EERecHitCollection_.label() !=
"" && EERecHitCollection_.instance() !=
"" )
92 iEvent.
getByLabel( EERecHitCollection_, pEERecHits);
96 EERecHits = pEERecHits.
product();
100 edm::LogError(
"EcalRecHitError") <<
"Error! can't get the product " << EERecHitCollection_.label() ;
104 if ( HBHERecHitCollection_.label() !=
"" )
106 iEvent.
getByLabel( HBHERecHitCollection_, pHBHERecHits);
110 HBHERecHits = pHBHERecHits.
product();
114 edm::LogError(
"HcalRecHitError") <<
"Error! can't get the product " << HBHERecHitCollection_.label() ;
123 totene+=it->energy();
124 ecalene+=it->energy();
131 totene+=it->energy();
132 ecalene+=it->energy();
139 totene+=it->energy();
140 hcalene+=it->energy();
144 if(totene>EnergyCutTot) acceptedtot=
true;
145 if(ecalene>EnergyCutEcal) acceptedEcal=
true;
146 if(hcalene>EnergyCutHcal) acceptedHcal=
true;
148 accepted = acceptedtot|acceptedEcal|acceptedHcal;
153 edm::LogVerbatim(
"BeamSplash") <<
"!!!!!!!BeamSplash!!!!!!!: run:" << irun <<
" event:" << ievt <<
" ls:"<< ils <<
" bx= " << ibx <<
" totene=" << totene <<
" ecalene=" << ecalene <<
" hcalene=" << hcalene ;
154 std::cout <<
"!!!!!!!BeamSplash!!!!!!!: run:" << irun <<
" event:" << ievt <<
" ls:"<< ils <<
" bx= " << ibx <<
" totene=" <<totene <<
" ecalene=" << ecalene <<
" hcalene=" << hcalene << std::endl;
T getParameter(std::string const &) const
EventNumber_t event() const
T getUntrackedParameter(std::string const &, T const &) const
std::vector< T >::const_iterator const_iterator
int bunchCrossing() const
virtual bool filter(edm::Event &, const edm::EventSetup &)
edm::LuminosityBlockNumber_t luminosityBlock() const
DEFINE_FWK_MODULE(HiMixingModule)
BeamSplash(const edm::ParameterSet &)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
const_iterator end() const
T const * product() const
const_iterator begin() const