ATLAS Offline Software
Loading...
Searching...
No Matches
Tracking/TrkVertexFitter/TrkVertexTools/TrkVertexTools/VertexMergingTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5 #ifndef TrkVertexTools_VertexMergingTool_H
6 #define TrkVertexTools_VertexMergingTool_H
7
9#include "GaudiKernel/ToolHandle.h"
13
14//xAOD include
21
35
36
37 namespace Trk
38 {
39 class IVertexFitter;
40
41 class VertexMergingTool : public AthAlgTool, virtual public IVertexMergingTool
42 {
43 public:
44 StatusCode initialize() override;
45
49 VertexMergingTool(const std::string& t, const std::string& n, const IInterface* p);
50
55
59 virtual std::pair<xAOD::VertexContainer*, xAOD::VertexAuxContainer*>
60 mergeVertexContainer(const xAOD::VertexContainer& MyVxCont) const override;
61
62 private:
63
64 SG::ReadCondHandleKey<InDet::BeamSpotData> m_beamSpotKey { this, "BeamSpotKey", "BeamSpotData", "SG key for beam spot" };
65 ToolHandle< Trk::IVertexFitter > m_iVertexFitter;
67
68 bool checkCompatibility( const xAOD::Vertex * vx1, const xAOD::Vertex * vx2 ) const;
69
70 }; //end of class description
71 }//end of namespace definition
72
73 #endif
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Interface class for vertex fitting AlgTools, for more detailed information, take a look at the header...
Interface class for merging compatible vertices in a single collection.
virtual std::pair< xAOD::VertexContainer *, xAOD::VertexAuxContainer * > mergeVertexContainer(const xAOD::VertexContainer &MyVxCont) const override
Merging.
bool checkCompatibility(const xAOD::Vertex *vx1, const xAOD::Vertex *vx2) const
virtual ~VertexMergingTool()
destructor
VertexMergingTool(const std::string &t, const std::string &n, const IInterface *p)
constructor
Ensure that the ATLAS eigen extensions are properly loaded.
VertexContainer_v1 VertexContainer
Definition of the current "Vertex container version".
Vertex_v1 Vertex
Define the latest version of the vertex class.