80 iEvent.getByToken(simtracksXFToken_, simtracksXF_);
81 iEvent.getByToken(simvertsXFToken_, simvertsXF_);
83 iEvent.getByToken(simtracksToken_, simtracks_);
84 iEvent.getByToken(simvertsToken_, simverts_);
92 <<
"reco::Track collection --- size = " << tC.size();
97 <<
"TrackingParticle collection --- size = " << tPC.size();
99 for (TrackingParticleCollection::const_iterator ITER = tPC.begin(); ITER != tPC.end(); ITER++,
j++) {
101 <<
"TrackingParticle " <<
j <<
", q = " << ITER->charge() <<
", p = " << ITER->p() <<
", pT = " << ITER->pt()
102 <<
", eta = " << ITER->eta() <<
", phi = " << ITER->phi();
105 <<
"\t pdg code = " << ITER->pdgId() <<
", made of " << ITER->numberOfHits() <<
" PSimHit"
106 <<
" (in " << ITER->numberOfTrackerLayers() <<
" layers)"
107 <<
" from " << ITER->g4Tracks().size() <<
" SimTrack:";
110 <<
"\t\t Id:" << g4T->trackId() <<
"/Evt:(" << g4T->eventId().event() <<
","
111 << g4T->eventId().bunchCrossing() <<
")";
119 <<
"CrossingFrame<SimTrack> collection with InputTag = " <<
simtracksXFTag <<
" has size = " << SimTk->size();
123 <<
"SimTrack " <<
k <<
" - Id:" << ITER->trackId() <<
"/Evt:(" << ITER->eventId().event() <<
","
124 << ITER->eventId().bunchCrossing() <<
")"
125 <<
", q = " << ITER->charge() <<
", p = " << ITER->momentum().P() <<
", pT = " << ITER->momentum().Pt()
126 <<
", eta = " << ITER->momentum().Eta() <<
", phi = " << ITER->momentum().Phi()
127 <<
"\n\t pdgId = " << ITER->type() <<
", Vertex index = " << ITER->vertIndex()
128 <<
", Gen Particle index = " << (ITER->genpartIndex() > 0 ? ITER->genpartIndex() - 1 : ITER->genpartIndex())
135 <<
"CrossingFrame<SimVertex> collection with InputTag = " <<
simtracksXFTag
136 <<
" has size = " << SimVtx->size();
140 <<
"SimVertex " << kv <<
" - Id:" << VITER->vertexId() <<
", position = " << VITER->position()
141 <<
", parent SimTrack Id = " << VITER->parentIndex() <<
", processType = " << VITER->processType();
147 <<
"SimTrack collection with InputTag = " <<
simtracksTag <<
" has size = " << simTC.size() << endl;
149 for (edm::SimTrackContainer::const_iterator ITER = simTC.begin(); ITER != simTC.end(); ITER++,
k++) {
151 <<
"SimTrack " <<
k <<
" - Id:" << ITER->trackId() <<
"/Evt:(" << ITER->eventId().event() <<
","
152 << ITER->eventId().bunchCrossing() <<
")"
153 <<
", q = " << ITER->charge() <<
", p = " << ITER->momentum().P() <<
", pT = " << ITER->momentum().Pt()
154 <<
", eta = " << ITER->momentum().Eta() <<
", phi = " << ITER->momentum().Phi()
155 <<
"\n\t pdgId = " << ITER->type() <<
", Vertex index = " << ITER->vertIndex()
156 <<
", Gen Particle index = " << (ITER->genpartIndex() > 0 ? ITER->genpartIndex() - 1 : ITER->genpartIndex())
161 <<
"SimVertex collection with InputTag = "
163 <<
" has size = " << simVC.size() << endl;
165 for (edm::SimVertexContainer::const_iterator VITER = simVC.begin(); VITER != simVC.end(); VITER++, kv++) {
167 <<
"SimVertex " << kv <<
" - Id:" << VITER->vertexId() <<
", position = " << VITER->position()
168 <<
", parent SimTrack Id = " << VITER->parentIndex() <<
", processType = " << VITER->processType();
213 trackerHitAssociatorConfig_(iConfig, consumesCollector()),
214 hitExtractor_(iConfig, consumesCollector()) {
216 produces<reco::MuonToTrackingParticleAssociator>();
225 <<
"\n constructing MuonToTrackingParticleAssociatorEDProducer"
229 diagnostics_ = std::make_unique<InputDumper>(iConfig, consumesCollector());
253 bool printRtS =
true;
282 std::unique_ptr<reco::MuonToTrackingParticleAssociatorBaseImpl>
impl{
284 std::unique_ptr<reco::MuonToTrackingParticleAssociator>
toPut(