ATLAS Offline Software
Loading...
Searching...
No Matches
VertexCollectionSortingTool.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_VertexCollectionSortingTool_H
6#define TrkVertexTools_VertexCollectionSortingTool_H
7
12#include "GaudiKernel/ToolHandle.h"
13// xAOD include
20
33
34namespace Trk {
36
38 : public AthAlgTool
39 , virtual public IVertexCollectionSortingTool
40{
41public:
42 virtual StatusCode initialize() override;
43 virtual StatusCode finalize() override;
47 VertexCollectionSortingTool(const std::string& t,
48 const std::string& n,
49 const IInterface* p);
53 virtual ~VertexCollectionSortingTool() = default;
55 virtual std::pair<xAOD::VertexContainer*, xAOD::VertexAuxContainer*>
56 sortVertexContainer(const xAOD::VertexContainer& MyVxCont) const override;
57
58private:
59 ToolHandle<Trk::IVertexWeightCalculator> m_iVertexWeightCalculator{
60 this,
61 "VertexWeightCalculator",
62 "Trk::IVertexWeightCalculator"
63 };
64 Gaudi::Property<std::string> m_decorationName{
65 this,
66 "decorationName",
67 "sumPt2",
68 "Name to use for the decoration"
69 };
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 Container Sorting.
ToolHandle< Trk::IVertexWeightCalculator > m_iVertexWeightCalculator
virtual ~VertexCollectionSortingTool()=default
destructor
virtual std::pair< xAOD::VertexContainer *, xAOD::VertexAuxContainer * > sortVertexContainer(const xAOD::VertexContainer &MyVxCont) const override
Sort.
Gaudi::Property< std::string > m_decorationName
virtual StatusCode finalize() override
EndOfInitialize.
VertexCollectionSortingTool(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".