ATLAS Offline Software
Loading...
Searching...
No Matches
ITrkToLeptonPV.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// ITrkToLeptonPV.h - Description
6//
7#ifndef ITrkToLeptonPV_H
8#define ITrkToLeptonPV_H
9
10#include <vector>
11#include <utility>
12#include <memory>
17
18//------------------------------------------------------------------------
20 static const InterfaceID IID_TrkToLeptonPV("ITrkToLeptonPV", 1, 0);
21
33
34 class ITrkToLeptonPV : virtual public IAlgTool {
35 public:
36 static const InterfaceID& interfaceID() { return IID_TrkToLeptonPV;}
37//---------------------------------------------------------------------------
38
42 virtual std::unique_ptr<xAOD::Vertex> matchTrkToPV( const xAOD::TrackParticle*, const xAOD::Vertex*, const xAOD::EventInfo* =0) const =0;
43
48 virtual std::unique_ptr<xAOD::Vertex> npartVertex(const std::vector<const xAOD::TrackParticle*>&, const xAOD::EventInfo * =0) const =0;
49 };
50
51
52#endif
static const InterfaceID IID_TrkToLeptonPV("ITrkToLeptonPV", 1, 0)
Interface for PV creation based on identified tracks.
Interaface class for xAOD/DAOD tools to match a track to a vertex assumed to be a Primary Vertex.
static const InterfaceID & interfaceID()
virtual std::unique_ptr< xAOD::Vertex > npartVertex(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 xAOD::TrackParticle *, const xAOD::Vertex *, const xAOD::EventInfo *=0) const =0
Method to match any tracks to a known Primary Vertex.
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.