ATLAS Offline Software
DecorateVertexScoreAlg.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 #ifndef DECORATEVERTEXSCOREALG_H
6 #define DECORATEVERTEXSCOREALG_H
7 
11 #include <AsgTools/ToolHandle.h>
14 
15 #include <string>
16 
26  public:
27  DecorateVertexScoreAlg(const std::string& name,
28  ISvcLocator* svcLoc = nullptr);
29 
30  virtual StatusCode initialize() override;
31  StatusCode execute() override;
32 
33  private:
35  this, "VertexContainer", "PrimaryVertices", "The input Vertex container"};
36 
38  this, "VertexScoreDecor", m_vertexContainer_key, "score",
39  "The output decoration for the score vertices"};
40 
41  ToolHandle<Trk::IVertexWeightCalculator> m_vertexWeightCalculator{
42  this, "VertexWeightCalculator", "BDTVertexWeightCalculator",
43  "The tool to compute the score"};
44 };
45 
46 #endif // DECORATEVERTEXSCOREALG_H
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition: StoreGate/StoreGate/WriteDecorHandleKey.h:89
VertexContainerFwd.h
DecorateVertexScoreAlg
An algorithm to decorate vertices with a score.
Definition: DecorateVertexScoreAlg.h:25
DecorateVertexScoreAlg::m_vertexWeightCalculator
ToolHandle< Trk::IVertexWeightCalculator > m_vertexWeightCalculator
Definition: DecorateVertexScoreAlg.h:41
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
IVertexWeightCalculator.h
AnaAlgorithm.h
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition: AnaAlgorithm.h:73
DecorateVertexScoreAlg::initialize
virtual StatusCode initialize() override
Definition: DecorateVertexScoreAlg.cxx:15
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
DecorateVertexScoreAlg::m_vertexScoreDecor_key
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_vertexScoreDecor_key
Definition: DecorateVertexScoreAlg.h:37
DecorateVertexScoreAlg::DecorateVertexScoreAlg
DecorateVertexScoreAlg(const std::string &name, ISvcLocator *svcLoc=nullptr)
Definition: DecorateVertexScoreAlg.cxx:11
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
DecorateVertexScoreAlg::execute
StatusCode execute() override
Definition: DecorateVertexScoreAlg.cxx:22
WriteDecorHandleKey.h
DecorateVertexScoreAlg::m_vertexContainer_key
SG::ReadHandleKey< xAOD::VertexContainer > m_vertexContainer_key
Definition: DecorateVertexScoreAlg.h:34
ToolHandle.h