13 #include <boost/regex.hpp>
54 return std::make_unique<AlCaHBHEMuons::Counters>();
81 : nRun_(0), nAll_(0), nGood_(0) {
99 edm::LogInfo(
"HcalHBHEMuon") <<
"Parameters read from config file \n"
118 edm::LogInfo(
"HcalHBHEMuon") <<
"AlCaHBHEMuonProducer::Run " <<
iEvent.id().run() <<
" Event " <<
iEvent.id().event()
119 <<
" Luminosity " <<
iEvent.luminosityBlock() <<
" Bunch " <<
iEvent.bunchCrossing();
139 if (!barrelRecHitsHandle.
isValid()) {
146 if (!endcapRecHitsHandle.
isValid()) {
153 if (!
hbhe.isValid()) {
166 edm::LogInfo(
"HcalHBHEMuon") <<
"AlCaHBHEMuonProducer::obtained the collections with validity flag " <<
valid;
170 auto outputBeamSpot = std::make_unique<reco::BeamSpot>();
171 auto outputVColl = std::make_unique<reco::VertexCollection>();
172 auto outputEBColl = std::make_unique<EBRecHitCollection>();
173 auto outputEEColl = std::make_unique<EERecHitCollection>();
174 auto outputHBHEColl = std::make_unique<HBHERecHitCollection>();
175 auto outputMColl = std::make_unique<reco::MuonCollection>();
179 outputBeamSpot = std::make_unique<reco::BeamSpot>(
192 for (reco::VertexCollection::const_iterator vtr =
vtx.begin(); vtr !=
vtx.end(); ++vtr)
193 outputVColl->push_back(*vtr);
196 outputEBColl->push_back(*ehit);
199 outputEEColl->push_back(*ehit);
201 for (std::vector<HBHERecHit>::const_iterator hhit = hbhecoll.
begin(); hhit != hbhecoll.
end(); ++hhit)
202 outputHBHEColl->push_back(*hhit);
205 outputMColl->push_back(*
muon);
218 globalCache()->nAll_ +=
nAll_;
219 globalCache()->nGood_ +=
nGood_;
223 edm::LogInfo(
"HcalHBHEMuon") <<
"Finds " <<
count->nGood_ <<
" good tracks in " <<
count->nAll_ <<
" events";
237 for (
unsigned int k = 0;
k <
muons.size(); ++
k) {