CP::LooseTrackVertexAssociationTool Class Reference

#include <LooseTrackVertexAssociationTool.h>

Inheritance diagram for CP::LooseTrackVertexAssociationTool:
asg::AsgTool CP::ITrackVertexAssociationTool asg::IAsgTool asg::IAsgTool

List of all members.

Public Member Functions

 LooseTrackVertexAssociationTool (std::string name)
StatusCode initialize ()
void print () const
 Print the state of the tool.
bool isCompatible (const xAOD::TrackParticle &trk, const xAOD::Vertex &vx) const
xAOD::TrackVertexAssociationMap getMatchMap (std::vector< const xAOD::TrackParticle * > &trk_list, std::vector< const xAOD::Vertex * > &vx_list) const
xAOD::TrackVertexAssociationMap getMatchMap (const xAOD::TrackParticleContainer &trkCont, const xAOD::VertexContainer &vxCont) const
ElementLink
< xAOD::VertexContainer
getUniqueMatchVertexLink (const xAOD::TrackParticle &, const xAOD::VertexContainer &vxCont) const
const xAOD::VertexgetUniqueMatchVertex (const xAOD::TrackParticle &trk, std::vector< const xAOD::Vertex * > &vx_list) const
xAOD::TrackVertexAssociationMap getUniqueMatchMap (std::vector< const xAOD::TrackParticle * > &trk_list, std::vector< const xAOD::Vertex * > &vx_list) const
xAOD::TrackVertexAssociationMap getUniqueMatchMap (const xAOD::TrackParticleContainer &trkCont, const xAOD::VertexContainer &vxCont) const

Detailed Description

LooseTrackVertexAssociationTool: using loose track-vertex association method.


Member Function Documentation

xAOD::TrackVertexAssociationMap CP::LooseTrackVertexAssociationTool::getUniqueMatchMap ( std::vector< const xAOD::TrackParticle * > &  trk_list,
std::vector< const xAOD::Vertex * > &  vx_list 
) const [virtual]

This functions related to the previous functions, will return a map<const xAOD::Vertex*, std::vector<const xAOD::TrackParticle*> > (defined as TrackVertexAssociationMap) to store the best matched tracks for each vertex. Note: the dummy vertex will be also stored in the map but the track stored vector which assigned to this vertex will be empty

Implements CP::ITrackVertexAssociationTool.

ElementLink< xAOD::VertexContainer > CP::LooseTrackVertexAssociationTool::getUniqueMatchVertexLink ( const xAOD::TrackParticle trk,
const xAOD::VertexContainer vxCont 
) const [virtual]

This functions will return the best matched vertex Match method is same as isCompatible. but will only keep the best vertex(with mini_dz) with more than one vertices match to the same track

Implements CP::ITrackVertexAssociationTool.

StatusCode CP::LooseTrackVertexAssociationTool::initialize ( void   )  [virtual]

Dummy implementation of the initialisation function

It's here to allow the dual-use tools to skip defining an initialisation function. Since many are doing so...

Reimplemented from asg::AsgTool.

bool CP::LooseTrackVertexAssociationTool::isCompatible ( const xAOD::TrackParticle trk,
const xAOD::Vertex vx 
) const [virtual]

This function will return the decision of whether the track is matched to the Vertex after matching method Not sure whether the track is matched to best choice Note: Only apply to good vertex(vx->vertexType()!=xAODVxType::NoVtx), return false if vertex is a dummy one

Implements CP::ITrackVertexAssociationTool.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 1 Dec 2017 for RootCore Packages by  doxygen 1.6.1