#include <VertexAssociatorByPositionAndTracks.h>
Public Member Functions | |
reco::VertexRecoToSimCollection | associateRecoToSim (const edm::Handle< edm::View< reco::Vertex > > &vCH, const edm::Handle< TrackingVertexCollection > &tVCH) const override |
compare reco to sim the handle of reco::Vertex and TrackingVertex collections More... | |
reco::VertexSimToRecoCollection | associateSimToReco (const edm::Handle< edm::View< reco::Vertex > > &vCH, const edm::Handle< TrackingVertexCollection > &tVCH) const override |
compare reco to sim the handle of reco::Vertex and TrackingVertex collections More... | |
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 (const edm::EDProductGetter *productGetter, double absZ, double sigmaZ, double maxRecoZ, double sharedTrackFraction, const reco::RecoToSimCollection *trackRecoToSimAssociation, const reco::SimToRecoCollection *trackSimToRecoAssociation) | |
~VertexAssociatorByPositionAndTracks () override | |
Public Member Functions inherited from reco::VertexToTrackingVertexAssociatorBaseImpl | |
VertexToTrackingVertexAssociatorBaseImpl () | |
Constructor. More... | |
virtual | ~VertexToTrackingVertexAssociatorBaseImpl () |
Destructor. More... | |
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 | ||
) |
Definition at line 7 of file VertexAssociatorByPositionAndTracks.cc.
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 29 of file VertexAssociatorByPositionAndTracks.cc.
|
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(), dedxEstimators_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, edm::second(), sharedTrackFraction_, sigmaT_, sigmaZ_, ecalDetailedTimeRecHit_cfi::simVertex, edm::View< T >::size(), reco::Vertex::t(), reco::Vertex::tError(), trackRecoToSimAssociation_, reco::Vertex::tracksSize(), RecoVertex_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 121 of file VertexAssociatorByPositionAndTracks.cc.
References funct::abs(), absT_, absZ_, EncodedEventId::bunchCrossing(), calculateVertexSharedTracks(), EncodedEventId::event(), TrackingVertex::eventId(), dedxEstimators_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, edm::second(), sharedTrackFraction_, sigmaT_, sigmaZ_, ecalDetailedTimeRecHit_cfi::simVertex, edm::View< T >::size(), reco::Vertex::t(), reco::Vertex::tError(), trackSimToRecoAssociation_, reco::Vertex::tracksSize(), RecoVertex_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().