#include <VertexAssociatorByPositionAndTracks.h>
Private Attributes | |
const double | absT_ |
const double | absZ_ |
const double | maxRecoT_ |
const double | maxRecoZ_ |
const edm::EDProductGetter * | productGetter_ |
const double | sharedTrackFraction_ |
const double | sigmaT_ |
const double | sigmaZ_ |
const reco::RecoToSimCollection * | trackRecoToSimAssociation_ |
const reco::SimToRecoCollection * | trackSimToRecoAssociation_ |
This class associates reco::Vertices and TrackingVertices by their position (maximum distance in Z should be smaller than absZ and sigmaZ*zError of reco::Vertex), and (optionally) by the fraction of tracks shared by reco::Vertex and TrackingVertex divided by the number of tracks in reco::Vertex. This fraction is always used as the quality in the association, i.e. multiple associations are sorted by it in descending order.
Definition at line 16 of file VertexAssociatorByPositionAndTracks.h.
VertexAssociatorByPositionAndTracks::VertexAssociatorByPositionAndTracks | ( | const edm::EDProductGetter * | productGetter, |
double | absZ, | ||
double | sigmaZ, | ||
double | maxRecoZ, | ||
double | absT, | ||
double | sigmaT, | ||
double | maxRecoT, | ||
double | sharedTrackFraction, | ||
const reco::RecoToSimCollection * | trackRecoToSimAssociation, | ||
const reco::SimToRecoCollection * | trackSimToRecoAssociation | ||
) |
VertexAssociatorByPositionAndTracks::VertexAssociatorByPositionAndTracks | ( | const edm::EDProductGetter * | productGetter, |
double | absZ, | ||
double | sigmaZ, | ||
double | maxRecoZ, | ||
double | sharedTrackFraction, | ||
const reco::RecoToSimCollection * | trackRecoToSimAssociation, | ||
const reco::SimToRecoCollection * | trackSimToRecoAssociation | ||
) |
|
override |
Definition at line 48 of file VertexAssociatorByPositionAndTracks.cc.
|
overridevirtual |
compare reco to sim the handle of reco::Vertex and TrackingVertex collections
Implements reco::VertexToTrackingVertexAssociatorBaseImpl.
Definition at line 50 of file VertexAssociatorByPositionAndTracks.cc.
References funct::abs(), absT_, absZ_, EncodedEventId::bunchCrossing(), calculateVertexSharedTracks(), EncodedEventId::event(), TrackingVertex::eventId(), HLT_2018_cff::fraction, edm::AssociationMap< Tag >::insert(), reco::Vertex::isFake(), reco::Vertex::isValid(), LogDebug, LogTrace, SiStripPI::max, maxRecoZ_, TrackingVertex::nDaughterTracks(), reco::Vertex::ndof(), TrackingVertex::position(), edm::AssociationMap< Tag >::post_insert(), productGetter_, ecalDetailedTimeRecHit_cfi::recoVertex, runTheMatrix::ret, edm::second(), sharedTrackFraction_, sigmaT_, sigmaZ_, ecalDetailedTimeRecHit_cfi::simVertex, HGCalValidator_cfi::simVertices, edm::View< T >::size(), reco::Vertex::t(), reco::Vertex::tError(), trackRecoToSimAssociation_, reco::Vertex::tracksSize(), RecoVertex_phase2_timing_cff::useTiming, reco::Vertex::z(), and reco::Vertex::zError().
|
overridevirtual |
compare reco to sim the handle of reco::Vertex and TrackingVertex collections
Implements reco::VertexToTrackingVertexAssociatorBaseImpl.
Definition at line 127 of file VertexAssociatorByPositionAndTracks.cc.
References funct::abs(), absT_, absZ_, EncodedEventId::bunchCrossing(), calculateVertexSharedTracks(), EncodedEventId::event(), TrackingVertex::eventId(), HLT_2018_cff::fraction, edm::AssociationMap< Tag >::insert(), reco::Vertex::isFake(), reco::Vertex::isValid(), LogDebug, LogTrace, SiStripPI::max, maxRecoZ_, TrackingVertex::nDaughterTracks(), reco::Vertex::ndof(), TrackingVertex::position(), edm::AssociationMap< Tag >::post_insert(), productGetter_, ecalDetailedTimeRecHit_cfi::recoVertex, runTheMatrix::ret, edm::second(), sharedTrackFraction_, sigmaT_, sigmaZ_, ecalDetailedTimeRecHit_cfi::simVertex, HGCalValidator_cfi::simVertices, edm::View< T >::size(), reco::Vertex::t(), reco::Vertex::tError(), trackSimToRecoAssociation_, reco::Vertex::tracksSize(), RecoVertex_phase2_timing_cff::useTiming, reco::Vertex::z(), and reco::Vertex::zError().
|
private |
Definition at line 53 of file VertexAssociatorByPositionAndTracks.h.
Referenced by associateRecoToSim(), and associateSimToReco().
|
private |
Definition at line 50 of file VertexAssociatorByPositionAndTracks.h.
Referenced by associateRecoToSim(), and associateSimToReco().
|
private |
Definition at line 55 of file VertexAssociatorByPositionAndTracks.h.
|
private |
Definition at line 52 of file VertexAssociatorByPositionAndTracks.h.
Referenced by associateRecoToSim(), and associateSimToReco().
|
private |
Definition at line 48 of file VertexAssociatorByPositionAndTracks.h.
Referenced by associateRecoToSim(), and associateSimToReco().
|
private |
Definition at line 56 of file VertexAssociatorByPositionAndTracks.h.
Referenced by associateRecoToSim(), and associateSimToReco().
|
private |
Definition at line 54 of file VertexAssociatorByPositionAndTracks.h.
Referenced by associateRecoToSim(), and associateSimToReco().
|
private |
Definition at line 51 of file VertexAssociatorByPositionAndTracks.h.
Referenced by associateRecoToSim(), and associateSimToReco().
|
private |
Definition at line 58 of file VertexAssociatorByPositionAndTracks.h.
Referenced by associateRecoToSim().
|
private |
Definition at line 59 of file VertexAssociatorByPositionAndTracks.h.
Referenced by associateSimToReco().