Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 
6 #include "xAODTracking/Vertex.h"
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 }
GNNVertexWeightCalculator::m_gnnScoreKey
SG::ReadDecorHandleKey< xAOD::VertexContainer > m_gnnScoreKey
Definition: GNNVertexWeightCalculator.h:43
GNNVertexWeightCalculator.h
GNNVertexWeightCalculator::GNNVertexWeightCalculator
GNNVertexWeightCalculator(const std::string &t, const std::string &n, const IInterface *p)
Definition: GNNVertexWeightCalculator.cxx:11
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
SG::ReadDecorHandle
Handle class for reading a decoration on an object.
Definition: StoreGate/StoreGate/ReadDecorHandle.h:94
beamspotman.n
n
Definition: beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
GNNVertexWeightCalculator::estimateSignalCompatibility
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.
Definition: GNNVertexWeightCalculator.cxx:29
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
Vertex.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
Trk::vertex
@ vertex
Definition: MeasurementType.h:21
VertexContainer.h
xAOD::Vertex_v1
Class describing a Vertex.
Definition: Vertex_v1.h:42
ReadDecorHandle.h
Handle class for reading a decoration on an object.
GNNVertexWeightCalculator::initialize
virtual StatusCode initialize() override
Definition: GNNVertexWeightCalculator.cxx:21
AthAlgTool
Definition: AthAlgTool.h:26
SG::ReadDecorHandle::isAvailable
bool isAvailable()
Test to see if this variable exists in the store, for the referenced object.
GNNVertexWeightCalculator::~GNNVertexWeightCalculator
virtual ~GNNVertexWeightCalculator() override