ATLAS Offline Software
InDetPriVxResorter.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 /***************************************************************************
6  InDetPriVxResorter.h - Description
7  -------------------
8  begin : 15-08-2024
9  authors : Teng Jian Khoo
10  email : teng.jian.khoo@cern.ch
11  changes :
12 
13  ***************************************************************************/
14 
15 #ifndef INDETPRIVXRESORTER_INDETPRIVXRESORTER_H
16 #define INDETPRIVXRESORTER_INDETPRIVXRESORTER_H
18 #include "GaudiKernel/ToolHandle.h"
22 
24 
31 namespace InDet
32 {
33  class InDetPriVxResorter : public AthReentrantAlgorithm
34  {
35  public:
36  InDetPriVxResorter(const std::string &name, ISvcLocator *pSvcLocator);
37 
38  virtual ~InDetPriVxResorter() = default;
39 
40  // Gaudi algorithm hooks
41  virtual StatusCode initialize() override;
42  virtual StatusCode execute(const EventContext& ctx) const override;
43 
44  private:
45 
46  SG::ReadHandleKey<xAOD::VertexContainer> m_verticesInKey{this,"VerticesIn","PrimaryVertices","Input Vertex Collection"};
47  SG::WriteHandleKey<xAOD::VertexContainer> m_verticesOutKey{this,"VerticesOut","PrimaryVertices_resorted","Output Vertex Collection"};
48  ToolHandle<Trk::IVertexCollectionSortingTool > m_VertexCollectionSortingTool{this, "VertexCollectionSortingTool", "", "Vertex collection sorting tool"};
49 
50  };
51 }
52 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
IVertexCollectionSortingTool.h
InDet
Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
InDet::InDetPriVxResorter::InDetPriVxResorter
InDetPriVxResorter(const std::string &name, ISvcLocator *pSvcLocator)
Definition: InDetPriVxResorter.cxx:29
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
InDet::InDetPriVxResorter::m_VertexCollectionSortingTool
ToolHandle< Trk::IVertexCollectionSortingTool > m_VertexCollectionSortingTool
Definition: InDetPriVxResorter.h:64
AthReentrantAlgorithm.h
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
InDet::InDetPriVxResorter::initialize
virtual StatusCode initialize() override
Definition: InDetPriVxResorter.cxx:33
InDet::InDetPriVxResorter::m_verticesInKey
SG::ReadHandleKey< xAOD::VertexContainer > m_verticesInKey
Definition: InDetPriVxResorter.h:62
VertexContainer.h
InDet::InDetPriVxResorter::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: InDetPriVxResorter.cxx:48
InDet::InDetPriVxResorter::~InDetPriVxResorter
virtual ~InDetPriVxResorter()=default
InDet::InDetPriVxResorter::m_verticesOutKey
SG::WriteHandleKey< xAOD::VertexContainer > m_verticesOutKey
Definition: InDetPriVxResorter.h:63