#include <TrackAssociatorByChi2Impl.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 | compareTracksParam (reco::TrackCollection::const_iterator, edm::SimTrackContainer::const_iterator, const math::XYZTLorentzVectorD &, const GlobalVector &, const reco::TrackBase::CovarianceMatrix &, const reco::BeamSpot &) const |
compare reco::TrackCollection and edm::SimTrackContainer iterators: returns the chi2 More... | |
RecoToSimPairAssociation | compareTracksParam (const reco::TrackCollection &, const edm::SimTrackContainer &, const edm::SimVertexContainer &, const reco::BeamSpot &) const |
compare collections reco to sim 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... | |
std::pair< bool, reco::TrackBase::ParameterVector > | parametersAtClosestApproach (const Basic3DVector< double > &, const Basic3DVector< double > &, float, const reco::BeamSpot &) const |
propagate the track parameters of TrackinParticle from production vertex to the point of closest approach to the beam line. 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/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 35 of file TrackAssociatorByChi2Impl.h.
typedef std::map<double, SimTrack> TrackAssociatorByChi2Impl::Chi2SimMap |
Definition at line 38 of file TrackAssociatorByChi2Impl.h.
typedef std::pair< reco::Track, Chi2SimMap> TrackAssociatorByChi2Impl::RecoToSimPair |
Definition at line 39 of file TrackAssociatorByChi2Impl.h.
typedef std::vector< RecoToSimPair > TrackAssociatorByChi2Impl::RecoToSimPairAssociation |
Definition at line 40 of file TrackAssociatorByChi2Impl.h.
|
inline |
Constructor.
Definition at line 57 of file TrackAssociatorByChi2Impl.h.
|
overridevirtual |
Association Reco To Sim with Collections.
Implements reco::TrackToTrackingParticleAssociatorBaseImpl.
Definition at line 121 of file TrackAssociatorByChi2Impl.cc.
References edm::RefToBaseVector< T >::begin(), HLT_FULL_cff::chi2, edm::RefToBaseVector< T >::end(), track_associator::getChi2(), i, edm::AssociationMap< Tag >::insert(), j, LogDebug, edm::AssociationMap< Tag >::post_insert(), and edm::RefVector< C, T, F >::size().
|
inlineoverridevirtual |
compare reco to sim the handle of reco::Track and TrackingParticle collections
Reimplemented from reco::TrackToTrackingParticleAssociatorBaseImpl.
Definition at line 78 of file TrackAssociatorByChi2Impl.h.
|
private |
compare reco::TrackCollection and TrackingParticleCollection iterators: returns the chi2
|
overridevirtual |
Association Sim To Reco with Collections.
Implements reco::TrackToTrackingParticleAssociatorBaseImpl.
Definition at line 179 of file TrackAssociatorByChi2Impl.cc.
References edm::RefToBaseVector< T >::begin(), edm::RefVector< C, T, F >::begin(), HLT_FULL_cff::chi2, edm::RefToBaseVector< T >::end(), edm::RefVector< C, T, F >::end(), track_associator::getChi2(), i, edm::AssociationMap< Tag >::insert(), j, LogDebug, edm::AssociationMap< Tag >::post_insert(), and mathSSE::sqrt().
|
inlineoverridevirtual |
compare reco to sim the handle of reco::Track and TrackingParticle collections
Reimplemented from reco::TrackToTrackingParticleAssociatorBaseImpl.
Definition at line 85 of file TrackAssociatorByChi2Impl.h.
|
private |
compare reco::TrackCollection and edm::SimTrackContainer iterators: returns the chi2
|
private |
compare collections reco to sim
Definition at line 40 of file TrackAssociatorByChi2Impl.cc.
References HLT_FULL_cff::chi2, reco::deltaPhi(), f, i, and j.
|
private |
basic method where chi2 is computed
Definition at line 83 of file TrackAssociatorByChi2Impl.cc.
References track_associator::getChi2().
|
private |
propagate the track parameters of TrackinParticle from production vertex to the point of closest approach to the beam line.
Definition at line 114 of file TrackAssociatorByChi2Impl.cc.
References reco::trackingParametersAtClosestApproachToBeamSpot().
|
private |
Definition at line 128 of file TrackAssociatorByChi2Impl.h.
|
private |
Definition at line 129 of file TrackAssociatorByChi2Impl.h.
|
private |
Definition at line 127 of file TrackAssociatorByChi2Impl.h.
|
private |
Definition at line 126 of file TrackAssociatorByChi2Impl.h.