ATLAS Offline Software
Loading...
Searching...
No Matches
SecVertexMergingTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4//Author: Lianyou Shan <lianyou.shan@cern.ch>
5
6 #ifndef TrkVertexTools_SecVertexMergingTool_H
7 #define TrkVertexTools_SecVertexMergingTool_H
8
10#include "GaudiKernel/ToolHandle.h"
13
14
15//xAOD include
22
36
37 namespace Trk
38 {
39 class IVertexFitter;
40
41 class SecVertexMergingTool : public AthAlgTool, virtual public IVertexMergingTool
42 {
43 public:
44 virtual StatusCode initialize() override;
45 virtual StatusCode finalize() override;
46
50 SecVertexMergingTool(const std::string& t, const std::string& n, const IInterface* p);
51
56
60 virtual std::pair<xAOD::VertexContainer*, xAOD::VertexAuxContainer*>
61 mergeVertexContainer(const xAOD::VertexContainer& MyVxCont) const override;
62
63 private:
64
65 int m_Compatidime ; // Lianyou added
66 float m_minDist ;
67 ToolHandle< Trk::IVertexFitter > m_iVertexFitter;
68
69 bool checkCompatibility( const xAOD::Vertex * vx1, const xAOD::Vertex * vx2 ) const;
70
71 }; //end of class description
72 }//end of namespace definition
73
74 #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.
SecVertexMergingTool(const std::string &t, const std::string &n, const IInterface *p)
constructor
virtual StatusCode initialize() override
bool checkCompatibility(const xAOD::Vertex *vx1, const xAOD::Vertex *vx2) const
virtual std::pair< xAOD::VertexContainer *, xAOD::VertexAuxContainer * > mergeVertexContainer(const xAOD::VertexContainer &MyVxCont) const override
Merging.
ToolHandle< Trk::IVertexFitter > m_iVertexFitter
virtual StatusCode finalize() override
EndOfInitialize.
virtual ~SecVertexMergingTool()
destructor
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.