|
reco::RecoToSimCollection | associateRecoToSim (const edm::RefToBaseVector< reco::Track > &, const edm::RefVector< TrackingParticleCollection > &) const override |
| compare reco to sim the handle of reco::Track and TrackingParticle collections More...
|
|
reco::SimToRecoCollection | associateSimToReco (const edm::RefToBaseVector< reco::Track > &, const edm::RefVector< TrackingParticleCollection > &) const override |
| compare reco to sim the handle of reco::Track and TrackingParticle collections More...
|
|
| TrackAssociatorByPositionImpl (const TrackingGeometry *geo, const Propagator *prop, const SimHitTPAssociationList *assocList, double qMinCut, double qCut, double positionMinimumDistance, Method method, bool minIfNoMatch, bool considerAllSimHits) |
|
Public Member Functions inherited from reco::TrackToTrackingParticleAssociatorBaseImpl |
virtual reco::RecoToSimCollection | associateRecoToSim (const edm::Handle< edm::View< reco::Track >> &tCH, const edm::Handle< TrackingParticleCollection > &tPCH) const |
|
virtual reco::RecoToSimCollectionSeed | associateRecoToSim (const edm::Handle< edm::View< TrajectorySeed >> &, const edm::Handle< TrackingParticleCollection > &) const |
|
virtual reco::RecoToSimCollectionTCandidate | associateRecoToSim (const edm::Handle< TrackCandidateCollection > &, const edm::Handle< TrackingParticleCollection > &) const |
|
virtual reco::SimToRecoCollection | associateSimToReco (const edm::Handle< edm::View< reco::Track >> &tCH, const edm::Handle< TrackingParticleCollection > &tPCH) const |
|
virtual reco::SimToRecoCollectionSeed | associateSimToReco (const edm::Handle< edm::View< TrajectorySeed >> &, const edm::Handle< TrackingParticleCollection > &) const |
|
virtual reco::SimToRecoCollectionTCandidate | associateSimToReco (const edm::Handle< TrackCandidateCollection > &, const edm::Handle< TrackingParticleCollection > &) const |
|
| TrackToTrackingParticleAssociatorBaseImpl () |
| Constructor. More...
|
|
virtual | ~TrackToTrackingParticleAssociatorBaseImpl () |
| Destructor. More...
|
|
Class that performs the association of reco::Tracks and TrackingParticles based on position in muon detector
- Author
- vlimant
Definition at line 30 of file TrackAssociatorByPositionImpl.h.
compare reco to sim the handle of reco::Track and TrackingParticle collections
Implements reco::TrackToTrackingParticleAssociatorBaseImpl.
Definition at line 117 of file TrackAssociatorByPositionImpl.cc.
121 std::pair<unsigned int, unsigned int> minPair;
122 const double dQmin_default = 1542543;
123 double dQmin = dQmin_default;
130 for (
unsigned int Ti = 0; Ti != tCH.
size(); ++Ti) {
134 bool atLeastOne =
false;
136 for (
unsigned int TPi = 0; TPi != tPCH.
size(); ++TPi) {
139 if (!simReferenceState.
isValid())
144 if (!trackReferenceState.
isValid())
148 double dQ =
quality(trackReferenceState, simReferenceState);
151 outputCollection.
insert(tCH[Ti],
152 std::make_pair(tPCH[TPi], -dQ));
154 <<
"track number: " << Ti <<
" associated with dQ: " << dQ <<
" to TrackingParticle number: " << TPi;
158 minPair = std::make_pair(Ti, TPi);
162 outputCollection.
insert(tCH[minPair.first], std::make_pair(tPCH[minPair.second], -dQmin));
166 return outputCollection;
References edm::AssociationMap< Tag >::insert(), TrajectoryStateOnSurface::isValid(), edm::AssociationMap< Tag >::post_insert(), qcdUeDQM_cfi::quality, edm::RefToBaseVector< T >::size(), edm::RefVector< C, T, F >::size(), and TrajectoryStateOnSurface::surface().
compare reco to sim the handle of reco::Track and TrackingParticle collections
Implements reco::TrackToTrackingParticleAssociatorBaseImpl.
Definition at line 169 of file TrackAssociatorByPositionImpl.cc.
174 std::pair<unsigned int, unsigned int> minPair;
175 const double dQmin_default = 1542543;
176 double dQmin = dQmin_default;
183 for (
unsigned int TPi = 0; TPi != tPCH.
size(); ++TPi) {
187 if (!simReferenceState.
isValid())
189 bool atLeastOne =
false;
192 for (
unsigned int Ti = 0; Ti != tCH.
size(); ++Ti) {
198 if (!trackReferenceState.
isValid())
202 double dQ =
quality(trackReferenceState, simReferenceState);
205 outputCollection.
insert(tPCH[TPi],
206 std::make_pair(tCH[Ti], -dQ));
208 <<
"TrackingParticle number: " << TPi <<
" associated with dQ: " << dQ <<
" to track number: " << Ti;
212 minPair = std::make_pair(TPi, Ti);
216 outputCollection.
insert(tPCH[minPair.first], std::make_pair(tCH[minPair.second], -dQmin));
221 return outputCollection;
References edm::AssociationMap< Tag >::insert(), TrajectoryStateOnSurface::isValid(), edm::AssociationMap< Tag >::post_insert(), qcdUeDQM_cfi::quality, edm::RefToBaseVector< T >::size(), edm::RefVector< C, T, F >::size(), and TrajectoryStateOnSurface::surface().