ATLAS Offline Software
Loading...
Searching...
No Matches
ITrkToLeptonPV.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4//
5// ITrkToLeptonPV.h - Description
6//
7#ifndef ITrkToLeptonPV_H
8#define ITrkToLeptonPV_H
9
10#include <vector>
11#include <utility>
12#include <memory>
17
18class EventContext;
19
20//------------------------------------------------------------------------
21
33
34 class ITrkToLeptonPV : virtual public IAlgTool {
35 public:
37
41 virtual std::unique_ptr<xAOD::Vertex> matchTrkToPV(const EventContext& ctx, const xAOD::TrackParticle*, const xAOD::Vertex*, const xAOD::EventInfo* =0) const =0;
42
47 virtual std::unique_ptr<xAOD::Vertex> npartVertex(const EventContext& ctx, const std::vector<const xAOD::TrackParticle*>&, const xAOD::EventInfo * =0) const =0;
48 };
49
50
51#endif
Interaface class for xAOD/DAOD tools to match a track to a vertex assumed to be a Primary Vertex.
virtual std::unique_ptr< xAOD::Vertex > npartVertex(const EventContext &ctx, const std::vector< const xAOD::TrackParticle * > &, const xAOD::EventInfo *=0) const =0
Method to create a Primary Vertex using N(>=2) identified tracks (e.g.
virtual std::unique_ptr< xAOD::Vertex > matchTrkToPV(const EventContext &ctx, const xAOD::TrackParticle *, const xAOD::Vertex *, const xAOD::EventInfo *=0) const =0
Method to match any tracks to a known Primary Vertex.
DeclareInterfaceID(ITrkToLeptonPV, 1, 0)
EventInfo_v1 EventInfo
Definition of the latest event info version.
TrackParticle_v1 TrackParticle
Reference the current persistent version:
Vertex_v1 Vertex
Define the latest version of the vertex class.