ATLAS Offline Software
Loading...
Searching...
No Matches
GNNVertexWeightCalculator.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
5
9
10// class constructor implementation
12 const std::string& n,
13 const IInterface* p)
14 : AthAlgTool(t, n, p)
15{
16 declareInterface<IVertexWeightCalculator>(this);
17}
18
20
22 ATH_MSG_DEBUG("Initializing " << name() << "...");
23
24 ATH_CHECK(m_gnnScoreKey.initialize());
25
26 return StatusCode::SUCCESS;
27}
28
30 const xAOD::Vertex &vertex) const {
31
32 const EventContext &ctx = Gaudi::Hive::currentContext();
34 ctx);
35
36 if (acc_gnnScore.isAvailable()) {
37 return acc_gnnScore(vertex);
38 } else {
39 return -1;
40 }
41
42}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x)
Handle class for reading a decoration on an object.
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
virtual StatusCode initialize() override
virtual double estimateSignalCompatibility(const xAOD::Vertex &vertex) const override
Estimate the compatibility of the vertex with a hard scatter vertex, with respect to pileup vertices.
GNNVertexWeightCalculator(const std::string &t, const std::string &n, const IInterface *p)
virtual ~GNNVertexWeightCalculator() override
SG::ReadDecorHandleKey< xAOD::VertexContainer > m_gnnScoreKey
Handle class for reading a decoration on an object.
bool isAvailable()
Test to see if this variable exists in the store, for the referenced object.
Vertex_v1 Vertex
Define the latest version of the vertex class.