13 #include <boost/regex.hpp>
53 return std::make_unique<AlCaHBHEMuons::Counters>();
80 : nRun_(0), nAll_(0), nGood_(0) {
119 <<
iEvent.id().event() <<
" Luminosity " <<
iEvent.luminosityBlock() <<
" Bunch "
120 <<
iEvent.bunchCrossing();
140 if (!barrelRecHitsHandle.
isValid()) {
147 if (!endcapRecHitsHandle.
isValid()) {
154 if (!
hbhe.isValid()) {
167 edm::LogVerbatim(
"HcalHBHEMuon") <<
"AlCaHBHEMuonProducer::obtained the collections with validity flag " <<
valid;
171 auto outputBeamSpot = std::make_unique<reco::BeamSpot>();
172 auto outputVColl = std::make_unique<reco::VertexCollection>();
173 auto outputEBColl = std::make_unique<EBRecHitCollection>();
174 auto outputEEColl = std::make_unique<EERecHitCollection>();
175 auto outputHBHEColl = std::make_unique<HBHERecHitCollection>();
176 auto outputMColl = std::make_unique<reco::MuonCollection>();
180 outputBeamSpot = std::make_unique<reco::BeamSpot>(
193 for (reco::VertexCollection::const_iterator vtr =
vtx.begin(); vtr !=
vtx.end(); ++vtr)
194 outputVColl->push_back(*vtr);
197 outputEBColl->push_back(*ehit);
200 outputEEColl->push_back(*ehit);
202 for (std::vector<HBHERecHit>::const_iterator hhit = hbhecoll.
begin(); hhit != hbhecoll.
end(); ++hhit)
203 outputHBHEColl->push_back(*hhit);
206 outputMColl->push_back(*
muon);
219 globalCache()->nAll_ +=
nAll_;
220 globalCache()->nGood_ +=
nGood_;
238 for (
unsigned int k = 0;
k <
muons.size(); ++
k) {