ATLAS Offline Software
ITrackVertexAssociationTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ITRACKVERTEXASSOCIATIONTOOL_H
6 #define ITRACKVERTEXASSOCIATIONTOOL_H
7 
8 #include "AsgTools/IAsgTool.h"
11 #include "xAODTracking/VertexFwd.h"
14 
16 #include "AthLinks/ElementLink.h"
17 
18 #include <vector>
19 
20 namespace CP
21 {
22 
24  {
26  public:
29  virtual bool isCompatible(const xAOD::TrackParticle& trk, const xAOD::Vertex& vx) const = 0; // return the decision of with the track match to the vertex
30  virtual bool isCompatible(const xAOD::TrackParticle& trk) const = 0; // return the decision of with the track match to the predetermined hardscatter vertex
31  virtual xAOD::TrackVertexAssociationMap getMatchMap(std::vector<const xAOD::TrackParticle*>& trk_list, std::vector<const xAOD::Vertex*>& vx_list) const = 0;
33 
36  virtual const xAOD::Vertex* getUniqueMatchVertex(const xAOD::TrackParticle& trk, std::vector<const xAOD::Vertex*> & vx_list) const = 0;
37 
39  virtual xAOD::TrackVertexAssociationMap getUniqueMatchMap(std::vector<const xAOD::TrackParticle*>& trk_list, std::vector<const xAOD::Vertex*>& vx_list) const = 0; // return the map of vertex matched with the tracks in the
40  virtual xAOD::TrackVertexAssociationMap getUniqueMatchMap(const xAOD::TrackParticleContainer& trkCont, const xAOD::VertexContainer& vxCont) const = 0 ; // return the map of vertex matched with the tracks in the
41 
42  };
43 }
44 
45 #endif
VertexContainerFwd.h
CP::ITrackVertexAssociationTool
Definition: ITrackVertexAssociationTool.h:24
CP::ITrackVertexAssociationTool::getMatchMap
virtual xAOD::TrackVertexAssociationMap getMatchMap(const xAOD::TrackParticleContainer &trkCont, const xAOD::VertexContainer &vxCont) const =0
CP::ITrackVertexAssociationTool::isCompatible
virtual bool isCompatible(const xAOD::TrackParticle &trk, const xAOD::Vertex &vx) const =0
This function just return the decision of whether the track is matched to the Vertex Not sure whether...
asg::IAsgTool
Base class for the dual-use tool interface classes.
Definition: IAsgTool.h:41
xAOD::TrackVertexAssociationMap
std::map< const xAOD::Vertex *, xAOD::TrackVertexAssociationList > TrackVertexAssociationMap
Definition: TrackVertexAssociationMap.h:19
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:48
CP::ITrackVertexAssociationTool::getUniqueMatchMap
virtual xAOD::TrackVertexAssociationMap getUniqueMatchMap(const xAOD::TrackParticleContainer &trkCont, const xAOD::VertexContainer &vxCont) const =0
TrackVertexAssociationMap.h
CP::ITrackVertexAssociationTool::getUniqueMatchVertex
virtual const xAOD::Vertex * getUniqueMatchVertex(const xAOD::TrackParticle &trk, std::vector< const xAOD::Vertex * > &vx_list) const =0
ASG_TOOL_INTERFACE
#define ASG_TOOL_INTERFACE(CLASSNAME)
Definition: AsgToolMacros.h:40
IAsgTool.h
CP::ITrackVertexAssociationTool::isCompatible
virtual bool isCompatible(const xAOD::TrackParticle &trk) const =0
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
VertexFwd.h
CP::ITrackVertexAssociationTool::getMatchMap
virtual xAOD::TrackVertexAssociationMap getMatchMap(std::vector< const xAOD::TrackParticle * > &trk_list, std::vector< const xAOD::Vertex * > &vx_list) const =0
xAOD::Vertex_v1
Class describing a Vertex.
Definition: Vertex_v1.h:42
TrackParticleFwd.h
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition: TrackParticle_v1.h:43
TrackParticleContainerFwd.h
CP::ITrackVertexAssociationTool::getUniqueMatchVertexLink
virtual ElementLink< xAOD::VertexContainer > getUniqueMatchVertexLink(const xAOD::TrackParticle &trk, const xAOD::VertexContainer &vxCont) const =0
This functions will return the best matched vertex.
AuxElement.h
Base class for elements of a container that can have aux data.
CP::ITrackVertexAssociationTool::getUniqueMatchMap
virtual xAOD::TrackVertexAssociationMap getUniqueMatchMap(std::vector< const xAOD::TrackParticle * > &trk_list, std::vector< const xAOD::Vertex * > &vx_list) const =0
This functions related to the previous functions, will return a 2D vector to store the best matched t...