55 <<
"reco::Track collection --- size = " << tC.size();
59 <<
"TrackingParticle collection --- size = " << tPC.size();
61 for (TrackingParticleCollection::const_iterator ITER = tPC.begin(); ITER != tPC.end(); ITER++,
j++) {
63 <<
"TrackingParticle " <<
j <<
", q = " << ITER->charge() <<
", p = " << ITER->p() <<
", pT = " << ITER->pt()
64 <<
", eta = " << ITER->eta() <<
", phi = " << ITER->phi();
67 <<
"\t pdg code = " << ITER->pdgId() <<
", made of " << ITER->numberOfHits() <<
" PSimHit"
68 <<
" (in " << ITER->numberOfTrackerLayers() <<
" layers)"
69 <<
" from " << ITER->g4Tracks().size() <<
" SimTrack:";
71 edm::LogVerbatim(
"MuonAssociatorByHits") <<
"\t\t Id:" << g4T->trackId() <<
"/Evt:(" << g4T->eventId().event()
72 <<
"," << g4T->eventId().bunchCrossing() <<
")";
89 <<
"CrossingFrame<SimTrack> collection with InputTag = " <<
simtracksXFTag <<
" has size = " << SimTk->size();
93 <<
"SimTrack " <<
k <<
" - Id:" << ITER->trackId() <<
"/Evt:(" << ITER->eventId().event() <<
","
94 << ITER->eventId().bunchCrossing() <<
")"
95 <<
" pdgId = " << ITER->type() <<
", q = " << ITER->charge() <<
", p = " << ITER->momentum().P()
96 <<
", pT = " << ITER->momentum().Pt() <<
", eta = " << ITER->momentum().Eta()
97 <<
", phi = " << ITER->momentum().Phi() <<
"\n * " << *ITER << endl;
103 <<
"CrossingFrame<SimVertex> collection with InputTag = " <<
simtracksXFTag
104 <<
" has size = " << SimVtx->size();
107 edm::LogVerbatim(
"MuonAssociatorByHits") <<
"SimVertex " << kv <<
" : " << *VITER << endl;
114 <<
"SimTrack collection with InputTag = " <<
simtracksTag <<
" has size = " << simTC.size() << endl;
116 for (edm::SimTrackContainer::const_iterator ITER = simTC.begin(); ITER != simTC.end(); ITER++,
k++) {
118 <<
"SimTrack " <<
k <<
" - Id:" << ITER->trackId() <<
"/Evt:(" << ITER->eventId().event() <<
","
119 << ITER->eventId().bunchCrossing() <<
")"
120 <<
" pdgId = " << ITER->type() <<
", q = " << ITER->charge() <<
", p = " << ITER->momentum().P()
121 <<
", pT = " << ITER->momentum().Pt() <<
", eta = " << ITER->momentum().Eta()
122 <<
", phi = " << ITER->momentum().Phi() <<
"\n * " << *ITER << endl;
127 <<
"SimVertex collection with InputTag = "
129 <<
" has size = " << simVC.size() << endl;
131 for (edm::SimVertexContainer::const_iterator VITER = simVC.begin(); VITER != simVC.end(); VITER++, kv++) {
132 edm::LogVerbatim(
"MuonAssociatorByHits") <<
"SimVertex " << kv <<
" : " << *VITER << endl;
140 : helper_(conf), conf_(conf), trackerHitAssociatorConfig_(conf,
std::
move(iC)) {
161 for (
auto it = tC.
begin(), ed = tC.
end(); it != ed; ++it) {
162 tH.push_back(std::make_pair((*it)->recHitsBegin(), (*it)->recHitsEnd()));
183 tTopo, &trackertruth, &csctruth, &dttruth, &rpctruth, &gemtruth, {}};
192 for (
auto it = bareAssoc.begin(), ed = bareAssoc.end(); it != ed; ++it) {
193 for (
auto itma = it->second.begin(), edma = it->second.end(); itma != edma; ++itma) {
194 outputCollection.insert(tC[it->first], std::make_pair(TPCollectionH[itma->idx], itma->quality));
198 outputCollection.post_insert();
199 return outputCollection;
209 for (
auto it = tC.
begin(), ed = tC.
end(); it != ed; ++it) {
210 tH.push_back(std::make_pair((*it)->recHitsBegin(), (*it)->recHitsEnd()));
223 bool printRtS =
false;
231 tTopo, &trackertruth, &csctruth, &dttruth, &rpctruth, &gemtruth, {}};
234 for (
auto it = bareAssoc.begin(), ed = bareAssoc.end(); it != ed; ++it) {
235 for (
auto itma = it->second.begin(), edma = it->second.end(); itma != edma; ++itma) {
236 outputCollection.insert(TPCollectionH[it->first], std::make_pair(tC[itma->idx], itma->quality));
240 outputCollection.post_insert();
241 return outputCollection;