#include <TrackGenAssociatorByChi2Impl.h>
Public Types | |
typedef std::map< double, SimTrack > | Chi2SimMap |
typedef std::pair< reco::Track, Chi2SimMap > | RecoToSimPair |
typedef std::vector< RecoToSimPair > | RecoToSimPairAssociation |
Private Member Functions | |
double | associateRecoToSim (reco::TrackCollection::const_iterator, TrackingParticleCollection::const_iterator, const reco::BeamSpot &) const |
compare reco::TrackCollection and TrackingParticleCollection iterators: returns the chi2 More... | |
double | getChi2 (const reco::TrackBase::ParameterVector &rParameters, const reco::TrackBase::CovarianceMatrix &recoTrackCovMatrix, const Basic3DVector< double > &momAtVtx, const Basic3DVector< double > &vert, int charge, const reco::BeamSpot &) const |
basic method where chi2 is computed More... | |
Private Attributes | |
double | chi2cut |
bool | onlyDiagonal |
const reco::BeamSpot * | theBeamSpot |
const MagneticField * | theMF |
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/TrackGenAssociatorByChi2.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 35 of file TrackGenAssociatorByChi2Impl.h.
typedef std::map<double, SimTrack> TrackGenAssociatorByChi2Impl::Chi2SimMap |
Definition at line 37 of file TrackGenAssociatorByChi2Impl.h.
typedef std::pair<reco::Track, Chi2SimMap> TrackGenAssociatorByChi2Impl::RecoToSimPair |
Definition at line 38 of file TrackGenAssociatorByChi2Impl.h.
typedef std::vector<RecoToSimPair> TrackGenAssociatorByChi2Impl::RecoToSimPairAssociation |
Definition at line 39 of file TrackGenAssociatorByChi2Impl.h.
|
inline |
Constructor with PSet.
Constructor with magnetic field, double, bool and InputTag
Definition at line 44 of file TrackGenAssociatorByChi2Impl.h.
|
overridevirtual |
Association Sim To Reco with Collections (Gen Particle version)
Implements reco::TrackToGenParticleAssociatorBaseImpl.
Definition at line 81 of file TrackGenAssociatorByChi2Impl.cc.
References edm::RefToBaseVector< T >::begin(), edm::RefVector< C, T, F >::begin(), cms::cuda::bs, ALCARECOTkAlJpsiMuMu_cff::charge, hltPixelTracks_cff::chi2, trackAssociatorByChi2_cfi::chi2cut, edm::RefToBaseVector< T >::end(), edm::RefVector< C, T, F >::end(), mps_fire::i, edm::AssociationMap< Tag >::insert(), dqmiolumiharvest::j, LogDebug, trackAssociatorByChi2_cfi::onlyDiagonal, edm::AssociationMap< Tag >::post_insert(), hcal_runs::rt, mathSSE::sqrt(), and cmsswSequenceInfo::tp.
Referenced by associateGenToReco().
|
inlineoverride |
compare reco to sim the handle of reco::Track and GenParticle collections
Definition at line 70 of file TrackGenAssociatorByChi2Impl.h.
References associateGenToReco(), edm::HandleBase::id(), dqmiolumiharvest::j, edm::RefToBaseVector< T >::push_back(), and edm::RefVector< C, T, F >::push_back().
|
overridevirtual |
Association Sim To Reco with Collections (Gen Particle version)
Implements reco::TrackToGenParticleAssociatorBaseImpl.
Definition at line 21 of file TrackGenAssociatorByChi2Impl.cc.
References edm::RefToBaseVector< T >::begin(), cms::cuda::bs, ALCARECOTkAlJpsiMuMu_cff::charge, hltPixelTracks_cff::chi2, trackAssociatorByChi2_cfi::chi2cut, edm::RefToBaseVector< T >::end(), mps_fire::i, edm::AssociationMap< Tag >::insert(), dqmiolumiharvest::j, LogDebug, trackAssociatorByChi2_cfi::onlyDiagonal, edm::AssociationMap< Tag >::post_insert(), hcal_runs::rt, edm::RefVector< C, T, F >::size(), and cmsswSequenceInfo::tp.
Referenced by associateRecoToGen().
|
inlineoverride |
compare reco to sim the handle of reco::Track and GenParticle collections
Definition at line 56 of file TrackGenAssociatorByChi2Impl.h.
References associateRecoToGen(), edm::HandleBase::id(), dqmiolumiharvest::j, edm::RefToBaseVector< T >::push_back(), and edm::RefVector< C, T, F >::push_back().
|
private |
compare reco::TrackCollection and TrackingParticleCollection iterators: returns the chi2
|
private |
basic method where chi2 is computed
Definition at line 12 of file TrackGenAssociatorByChi2Impl.cc.
References cms::cuda::bs, ALCARECOTkAlJpsiMuMu_cff::charge, and track_associator::trackAssociationChi2().
|
private |
Definition at line 99 of file TrackGenAssociatorByChi2Impl.h.
|
private |
Definition at line 100 of file TrackGenAssociatorByChi2Impl.h.
|
private |
Definition at line 98 of file TrackGenAssociatorByChi2Impl.h.
|
private |
Definition at line 97 of file TrackGenAssociatorByChi2Impl.h.