#include <TrackGenAssociatorByChi2.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 | |
edm::InputTag | bsSrc |
double | chi2cut |
bool | onlyDiagonal |
edm::ESHandle< 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 43 of file TrackGenAssociatorByChi2.h.
typedef std::map<double, SimTrack> TrackGenAssociatorByChi2::Chi2SimMap |
Definition at line 46 of file TrackGenAssociatorByChi2.h.
typedef std::pair< reco::Track, Chi2SimMap> TrackGenAssociatorByChi2::RecoToSimPair |
Definition at line 47 of file TrackGenAssociatorByChi2.h.
typedef std::vector< RecoToSimPair > TrackGenAssociatorByChi2::RecoToSimPairAssociation |
Definition at line 48 of file TrackGenAssociatorByChi2.h.
|
inline |
Constructor with PSet.
Definition at line 51 of file TrackGenAssociatorByChi2.h.
References onlyDiagonal, and theMF.
|
inline |
Constructor with magnetic field, double, bool and InputTag.
Definition at line 63 of file TrackGenAssociatorByChi2.h.
References bsSrc, chi2cut, onlyDiagonal, and theMF.
|
virtual |
Association Sim To Reco with Collections (Gen Particle version)
Implements TrackGenAssociatorBase.
Definition at line 83 of file TrackGenAssociatorByChi2.cc.
References edm::RefToBaseVector< T >::begin(), RecoTauCleanerPlugins::charge, edm::RefToBaseVector< T >::end(), edm::Event::getByLabel(), track_associator::getChi2(), i, edm::AssociationMap< Tag >::insert(), j, LogDebug, edm::AssociationMap< Tag >::post_insert(), edm::RefVector< C, T, F >::size(), and mathSSE::sqrt().
Referenced by associateGenToReco().
|
inlinevirtual |
compare reco to sim the handle of reco::Track and GenParticle collections
Implements TrackGenAssociatorBase.
Definition at line 98 of file TrackGenAssociatorByChi2.h.
References associateGenToReco(), event(), edm::HandleBase::id(), j, edm::RefToBaseVector< T >::push_back(), edm::RefVector< C, T, F >::push_back(), and HcalObjRepresent::setup().
|
virtual |
Association Sim To Reco with Collections (Gen Particle version)
Implements TrackGenAssociatorBase.
Definition at line 21 of file TrackGenAssociatorByChi2.cc.
References edm::RefToBaseVector< T >::begin(), RecoTauCleanerPlugins::charge, edm::RefToBaseVector< T >::end(), edm::Event::getByLabel(), track_associator::getChi2(), i, edm::AssociationMap< Tag >::insert(), j, LogDebug, edm::AssociationMap< Tag >::post_insert(), and edm::RefVector< C, T, F >::size().
Referenced by associateRecoToGen().
|
inlinevirtual |
compare reco to sim the handle of reco::Track and GenParticle collections
Implements TrackGenAssociatorBase.
Definition at line 82 of file TrackGenAssociatorByChi2.h.
References associateRecoToGen(), event(), edm::HandleBase::id(), j, edm::RefToBaseVector< T >::push_back(), edm::RefVector< C, T, F >::push_back(), and HcalObjRepresent::setup().
|
private |
compare reco::TrackCollection and TrackingParticleCollection iterators: returns the chi2
|
private |
basic method where chi2 is computed
Definition at line 12 of file TrackGenAssociatorByChi2.cc.
References track_associator::getChi2().
|
private |
Definition at line 133 of file TrackGenAssociatorByChi2.h.
Referenced by TrackGenAssociatorByChi2().
|
private |
Definition at line 131 of file TrackGenAssociatorByChi2.h.
Referenced by TrackGenAssociatorByChi2().
|
private |
Definition at line 132 of file TrackGenAssociatorByChi2.h.
Referenced by TrackGenAssociatorByChi2().
|
private |
Definition at line 130 of file TrackGenAssociatorByChi2.h.
Referenced by TrackGenAssociatorByChi2().