|
reco::RecoToSimCollection | associateRecoToSim (const edm::Handle< edm::View< reco::Track > > &tCH, const edm::Handle< TrackingParticleCollection > &tPCH) const override |
| compare reco to sim the handle of reco::Track and TrackingParticle collections More...
|
|
reco::RecoToSimCollection | associateRecoToSim (const edm::RefToBaseVector< reco::Track > &, const edm::RefVector< TrackingParticleCollection > &) const override |
| Association Reco To Sim with Collections. More...
|
|
reco::SimToRecoCollection | associateSimToReco (const edm::Handle< edm::View< reco::Track > > &tCH, const edm::Handle< TrackingParticleCollection > &tPCH) 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 |
| Association Sim To Reco with Collections. More...
|
|
| TrackAssociatorByChi2Impl (const MagneticField &mF, const reco::BeamSpot &bs, double chi2Cut, bool onlyDiag) |
| Constructor. More...
|
|
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 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
- Author
- cerati, magni
Definition at line 34 of file TrackAssociatorByChi2Impl.h.
Association Reco To Sim with Collections.
Implements reco::TrackToTrackingParticleAssociatorBaseImpl.
Definition at line 21 of file TrackAssociatorByChi2Impl.cc.
28 std::vector<TrackingParticle const*> tPC;
29 tPC.reserve(tPCH.
size());
30 for (
auto const& ref : tPCH) {
31 tPC.push_back(&(*ref));
36 LogDebug(
"TrackAssociator") <<
"=========LOOKING FOR ASSOCIATION==========="
38 <<
"rec::Track #" << tindex <<
" with pt=" << (*rt)->pt() <<
"\n"
39 <<
"==========================================="
46 for (
unsigned int i = 0;
i < 5;
i++) {
47 for (
unsigned int j = 0;
j < 5;
j++) {
49 recoTrackCovMatrix(
i,
j) = 0;
54 recoTrackCovMatrix.Invert();
57 for (
auto tp = tPC.begin();
tp != tPC.end();
tp++, ++tpindex) {
60 int charge = (*tp)->charge();
71 std::make_pair(tPCH[tpindex],
77 return outputCollection;
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.
Association Sim To Reco with Collections.
Implements reco::TrackToTrackingParticleAssociatorBaseImpl.
Definition at line 80 of file TrackAssociatorByChi2Impl.cc.
90 int charge = (*tp)->charge();
94 LogDebug(
"TrackAssociator") <<
"=========LOOKING FOR ASSOCIATION==========="
96 <<
"TrackingParticle #" << tpindex <<
" with pt=" <<
sqrt((*tp)->momentum().perp2())
98 <<
"==========================================="
109 for (
unsigned int i = 0;
i < 5;
i++) {
110 for (
unsigned int j = 0;
j < 5;
j++) {
112 recoTrackCovMatrix(
i,
j) = 0;
116 recoTrackCovMatrix.Invert();
123 std::make_pair(tC[tindex],
129 return outputCollection;
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.