#include <TrackAssociatorByChi2Impl.h>
Public Types | |
typedef std::map< double, SimTrack > | Chi2SimMap |
typedef std::pair< reco::Track, Chi2SimMap > | RecoToSimPair |
typedef std::vector< RecoToSimPair > | RecoToSimPairAssociation |
Private Attributes | |
const reco::BeamSpot * | beamSpot_ |
double | chi2cut_ |
const MagneticField * | mF_ |
bool | onlyDiagonal_ |
edm::EDProductGetter const * | productGetter_ |
Class that performs the association of reco::Tracks and TrackingParticles evaluating the chi2 of reco tracks parameters and sim tracks parameters. The cut can be tuned from the config file: see data/TrackAssociatorByChi2.cfi. Note that the Association Map is filled with -ch2 and not chi2 because it is ordered using std::greater: the track with the lowest association chi2 will be the first in the output map.It is possible to use only diagonal terms (associator by pulls) seeting onlyDiagonal = true in the PSet
Definition at line 38 of file TrackAssociatorByChi2Impl.h.
typedef std::map<double, SimTrack> TrackAssociatorByChi2Impl::Chi2SimMap |
Definition at line 40 of file TrackAssociatorByChi2Impl.h.
typedef std::pair<reco::Track, Chi2SimMap> TrackAssociatorByChi2Impl::RecoToSimPair |
Definition at line 41 of file TrackAssociatorByChi2Impl.h.
typedef std::vector<RecoToSimPair> TrackAssociatorByChi2Impl::RecoToSimPairAssociation |
Definition at line 42 of file TrackAssociatorByChi2Impl.h.
|
inline |
Constructor.
Definition at line 59 of file TrackAssociatorByChi2Impl.h.
|
inlineoverride |
compare reco to sim the handle of reco::Track and TrackingParticle collections
Definition at line 77 of file TrackAssociatorByChi2Impl.h.
|
overridevirtual |
Association Reco To Sim with Collections.
Implements reco::TrackToTrackingParticleAssociatorBaseImpl.
Definition at line 14 of file TrackAssociatorByChi2Impl.cc.
References edm::RefToBaseVector< T >::begin(), cms::cuda::bs, ALCARECOTkAlJpsiMuMu_cff::charge, hltPixelTracks_cff::chi2, edm::RefToBaseVector< T >::end(), edm::first(), mps_fire::i, edm::AssociationMap< Tag >::insert(), dqmiolumiharvest::j, LogDebug, edm::AssociationMap< Tag >::post_insert(), hcal_runs::rt, edm::second(), edm::RefVector< C, T, F >::size(), cmsswSequenceInfo::tp, track_associator::trackAssociationChi2(), and reco::trackingParametersAtClosestApproachToBeamSpot().
|
inlineoverride |
compare reco to sim the handle of reco::Track and TrackingParticle collections
Definition at line 84 of file TrackAssociatorByChi2Impl.h.
|
overridevirtual |
Association Sim To Reco with Collections.
Implements reco::TrackToTrackingParticleAssociatorBaseImpl.
Definition at line 80 of file TrackAssociatorByChi2Impl.cc.
References edm::RefVector< C, T, F >::begin(), cms::cuda::bs, ALCARECOTkAlJpsiMuMu_cff::charge, hltPixelTracks_cff::chi2, edm::RefVector< C, T, F >::end(), mps_fire::i, edm::AssociationMap< Tag >::insert(), dqmiolumiharvest::j, LogDebug, edm::AssociationMap< Tag >::post_insert(), edm::RefToBaseVector< T >::size(), mathSSE::sqrt(), cmsswSequenceInfo::tp, track_associator::trackAssociationChi2(), and reco::trackingParametersAtClosestApproachToBeamSpot().
|
private |
Definition at line 92 of file TrackAssociatorByChi2Impl.h.
|
private |
Definition at line 93 of file TrackAssociatorByChi2Impl.h.
|
private |
Definition at line 91 of file TrackAssociatorByChi2Impl.h.
|
private |
Definition at line 94 of file TrackAssociatorByChi2Impl.h.
|
private |
Definition at line 90 of file TrackAssociatorByChi2Impl.h.