53 <<
"reco::Track collection --- size = " << tC.size();
57 <<
"TrackingParticle collection --- size = " << tPC.size();
59 for (TrackingParticleCollection::const_iterator ITER = tPC.begin(); ITER != tPC.end(); ITER++,
j++) {
61 <<
"TrackingParticle " <<
j <<
", q = " << ITER->charge() <<
", p = " << ITER->p() <<
", pT = " << ITER->pt()
62 <<
", eta = " << ITER->eta() <<
", phi = " << ITER->phi();
65 <<
"\t pdg code = " << ITER->pdgId() <<
", made of " << ITER->numberOfHits() <<
" PSimHit"
66 <<
" (in " << ITER->numberOfTrackerLayers() <<
" layers)"
67 <<
" from " << ITER->g4Tracks().size() <<
" SimTrack:";
69 edm::LogVerbatim(
"MuonAssociatorByHits") <<
"\t\t Id:" << g4T->trackId() <<
"/Evt:(" << g4T->eventId().event()
70 <<
"," << g4T->eventId().bunchCrossing() <<
")";
87 <<
"CrossingFrame<SimTrack> collection with InputTag = " <<
simtracksXFTag <<
" has size = " << SimTk->size();
91 <<
"SimTrack " <<
k <<
" - Id:" << ITER->trackId() <<
"/Evt:(" << ITER->eventId().event() <<
","
92 << ITER->eventId().bunchCrossing() <<
")"
93 <<
" pdgId = " << ITER->type() <<
", q = " << ITER->charge() <<
", p = " << ITER->momentum().P()
94 <<
", pT = " << ITER->momentum().Pt() <<
", eta = " << ITER->momentum().Eta()
95 <<
", phi = " << ITER->momentum().Phi() <<
"\n * " << *ITER << endl;
101 <<
"CrossingFrame<SimVertex> collection with InputTag = " <<
simtracksXFTag
102 <<
" has size = " << SimVtx->size();
105 edm::LogVerbatim(
"MuonAssociatorByHits") <<
"SimVertex " << kv <<
" : " << *VITER << endl;
112 <<
"SimTrack collection with InputTag = " <<
simtracksTag <<
" has size = " << simTC.size() << endl;
114 for (edm::SimTrackContainer::const_iterator ITER = simTC.begin(); ITER != simTC.end(); ITER++,
k++) {
116 <<
"SimTrack " <<
k <<
" - Id:" << ITER->trackId() <<
"/Evt:(" << ITER->eventId().event() <<
","
117 << ITER->eventId().bunchCrossing() <<
")"
118 <<
" pdgId = " << ITER->type() <<
", q = " << ITER->charge() <<
", p = " << ITER->momentum().P()
119 <<
", pT = " << ITER->momentum().Pt() <<
", eta = " << ITER->momentum().Eta()
120 <<
", phi = " << ITER->momentum().Phi() <<
"\n * " << *ITER << endl;
125 <<
"SimVertex collection with InputTag = "
127 <<
" has size = " << simVC.size() << endl;
129 for (edm::SimVertexContainer::const_iterator VITER = simVC.begin(); VITER != simVC.end(); VITER++, kv++) {
130 edm::LogVerbatim(
"MuonAssociatorByHits") <<
"SimVertex " << kv <<
" : " << *VITER << endl;
138 : helper_(conf), conf_(conf), trackerHitAssociatorConfig_(conf,
std::
move(iC)) {
159 for (
auto it = tC.
begin(), ed = tC.
end(); it != ed; ++it) {
160 tH.push_back(std::make_pair((*it)->recHitsBegin(), (*it)->recHitsEnd()));
181 tTopo, &trackertruth, &csctruth, &dttruth, &rpctruth, &gemtruth, {}};
190 for (
auto it = bareAssoc.begin(), ed = bareAssoc.end(); it != ed; ++it) {
191 for (
auto itma = it->second.begin(), edma = it->second.end(); itma != edma; ++itma) {
192 outputCollection.insert(tC[it->first], std::make_pair(TPCollectionH[itma->idx], itma->quality));
196 outputCollection.post_insert();
197 return outputCollection;
207 for (
auto it = tC.
begin(), ed = tC.
end(); it != ed; ++it) {
208 tH.push_back(std::make_pair((*it)->recHitsBegin(), (*it)->recHitsEnd()));
221 bool printRtS =
false;
229 tTopo, &trackertruth, &csctruth, &dttruth, &rpctruth, &gemtruth, {}};
232 for (
auto it = bareAssoc.begin(), ed = bareAssoc.end(); it != ed; ++it) {
233 for (
auto itma = it->second.begin(), edma = it->second.end(); itma != edma; ++itma) {
234 outputCollection.insert(TPCollectionH[it->first], std::make_pair(tC[itma->idx], itma->quality));
238 outputCollection.post_insert();
239 return outputCollection;