#include <VertexAssociatorByPositionAndTracks.h>
Private Attributes | |
const double | absZ_ |
const double | maxRecoZ_ |
const edm::EDProductGetter * | productGetter_ |
const double | sharedTrackFraction_ |
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 | sharedTrackFraction, | ||
const reco::RecoToSimCollection * | trackRecoToSimAssociation, | ||
const reco::SimToRecoCollection * | trackSimToRecoAssociation | ||
) |
Definition at line 6 of file VertexAssociatorByPositionAndTracks.cc.
|
virtual |
Definition at line 22 of file VertexAssociatorByPositionAndTracks.cc.
|
virtual |
compare reco to sim the handle of reco::Vertex and TrackingVertex collections
Implements reco::VertexToTrackingVertexAssociatorBaseImpl.
Definition at line 24 of file VertexAssociatorByPositionAndTracks.cc.
References funct::abs(), absZ_, EncodedEventId::bunchCrossing(), calculateVertexSharedTracks(), EncodedEventId::event(), TrackingVertex::eventId(), HLT_25ns14e33_v1_cff::fraction, edm::AssociationMap< Tag >::insert(), reco::Vertex::isFake(), reco::Vertex::isValid(), LogDebug, LogTrace, maxRecoZ_, TrackingVertex::nDaughterTracks(), reco::Vertex::ndof(), TrackingVertex::position(), edm::AssociationMap< Tag >::post_insert(), productGetter_, run_regression::ret, sharedTrackFraction_, sigmaZ_, edm::View< T >::size(), trackRecoToSimAssociation_, reco::Vertex::tracksSize(), reco::Vertex::z(), and reco::Vertex::zError().
|
virtual |
compare reco to sim the handle of reco::Vertex and TrackingVertex collections
Implements reco::VertexToTrackingVertexAssociatorBaseImpl.
Definition at line 80 of file VertexAssociatorByPositionAndTracks.cc.
References funct::abs(), absZ_, EncodedEventId::bunchCrossing(), calculateVertexSharedTracks(), EncodedEventId::event(), TrackingVertex::eventId(), HLT_25ns14e33_v1_cff::fraction, edm::AssociationMap< Tag >::insert(), reco::Vertex::isFake(), reco::Vertex::isValid(), LogDebug, LogTrace, maxRecoZ_, TrackingVertex::nDaughterTracks(), reco::Vertex::ndof(), TrackingVertex::position(), edm::AssociationMap< Tag >::post_insert(), productGetter_, run_regression::ret, sharedTrackFraction_, sigmaZ_, edm::View< T >::size(), trackSimToRecoAssociation_, reco::Vertex::tracksSize(), reco::Vertex::z(), and reco::Vertex::zError().
|
private |
Definition at line 39 of file VertexAssociatorByPositionAndTracks.h.
Referenced by associateRecoToSim(), and associateSimToReco().
|
private |
Definition at line 41 of file VertexAssociatorByPositionAndTracks.h.
Referenced by associateRecoToSim(), and associateSimToReco().
|
private |
Definition at line 37 of file VertexAssociatorByPositionAndTracks.h.
Referenced by associateRecoToSim(), and associateSimToReco().
|
private |
Definition at line 42 of file VertexAssociatorByPositionAndTracks.h.
Referenced by associateRecoToSim(), and associateSimToReco().
|
private |
Definition at line 40 of file VertexAssociatorByPositionAndTracks.h.
Referenced by associateRecoToSim(), and associateSimToReco().
|
private |
Definition at line 44 of file VertexAssociatorByPositionAndTracks.h.
Referenced by associateRecoToSim().
|
private |
Definition at line 45 of file VertexAssociatorByPositionAndTracks.h.
Referenced by associateSimToReco().