13 #include <boost/regex.hpp>
54 return std::make_unique<AlCaHBHEMuons::Counters>();
81 : nRun_(0), nAll_(0), nGood_(0) {
120 <<
iEvent.id().event() <<
" Luminosity " <<
iEvent.luminosityBlock() <<
" Bunch "
121 <<
iEvent.bunchCrossing();
141 if (!barrelRecHitsHandle.
isValid()) {
148 if (!endcapRecHitsHandle.
isValid()) {
155 if (!
hbhe.isValid()) {
168 edm::LogVerbatim(
"HcalHBHEMuon") <<
"AlCaHBHEMuonProducer::obtained the collections with validity flag " <<
valid;
172 auto outputBeamSpot = std::make_unique<reco::BeamSpot>();
173 auto outputVColl = std::make_unique<reco::VertexCollection>();
174 auto outputEBColl = std::make_unique<EBRecHitCollection>();
175 auto outputEEColl = std::make_unique<EERecHitCollection>();
176 auto outputHBHEColl = std::make_unique<HBHERecHitCollection>();
177 auto outputMColl = std::make_unique<reco::MuonCollection>();
181 outputBeamSpot = std::make_unique<reco::BeamSpot>(
194 for (reco::VertexCollection::const_iterator vtr =
vtx.begin(); vtr !=
vtx.end(); ++vtr)
195 outputVColl->push_back(*vtr);
198 outputEBColl->push_back(*ehit);
201 outputEEColl->push_back(*ehit);
203 for (std::vector<HBHERecHit>::const_iterator hhit = hbhecoll.
begin(); hhit != hbhecoll.
end(); ++hhit)
204 outputHBHEColl->push_back(*hhit);
207 outputMColl->push_back(*
muon);
220 globalCache()->nAll_ +=
nAll_;
221 globalCache()->nGood_ +=
nGood_;
239 for (
unsigned int k = 0;
k <
muons.size(); ++
k) {