ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkVertexFitter
TrkVertexWeightCalculators
src
VertexWeightCalculator.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
#include "
TrkVertexWeightCalculators/VertexWeightCalculator.h
"
5
6
#include "
xAODTracking/Vertex.h
"
7
#include "
xAODTracking/VertexContainer.h
"
8
#include "
StoreGate/ReadDecorHandle.h
"
9
10
// class constructor implementation
11
VertexWeightCalculator::VertexWeightCalculator
(
const
std::string& t,
12
const
std::string& n,
13
const
IInterface* p)
14
:
AthAlgTool
(t, n, p)
15
{
16
declareInterface<IVertexWeightCalculator>(
this
);
17
}
18
19
VertexWeightCalculator::~VertexWeightCalculator
() =
default
;
20
21
StatusCode
VertexWeightCalculator::initialize
() {
22
ATH_MSG_DEBUG
(
"Initializing "
<< name() <<
"..."
);
23
24
ATH_CHECK
(
m_ScoreKey
.initialize());
25
26
return
StatusCode::SUCCESS;
27
}
28
29
double
VertexWeightCalculator::estimateSignalCompatibility
(
30
const
xAOD::Vertex
&vertex)
const
{
31
32
const
EventContext &ctx = Gaudi::Hive::currentContext();
33
SG::ReadDecorHandle<xAOD::VertexContainer, float>
acc_score(
m_ScoreKey
,
34
ctx);
35
return
acc_score(vertex);
36
}
ATH_CHECK
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition
AthCheckMacros.h:40
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x,...)
Definition
AthMsgStreamMacros.h:43
Vertex.h
ReadDecorHandle.h
Handle class for reading a decoration on an object.
VertexContainer.h
VertexWeightCalculator.h
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
SG::ReadDecorHandle
Handle class for reading a decoration on an object.
Definition
StoreGate/StoreGate/ReadDecorHandle.h:94
VertexWeightCalculator::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
VertexWeightCalculator.cxx:29
VertexWeightCalculator::initialize
virtual StatusCode initialize() override
Definition
VertexWeightCalculator.cxx:21
VertexWeightCalculator::~VertexWeightCalculator
virtual ~VertexWeightCalculator() override
VertexWeightCalculator::m_ScoreKey
SG::ReadDecorHandleKey< xAOD::VertexContainer > m_ScoreKey
Definition
VertexWeightCalculator.h:39
VertexWeightCalculator::VertexWeightCalculator
VertexWeightCalculator(const std::string &t, const std::string &n, const IInterface *p)
Definition
VertexWeightCalculator.cxx:11
xAOD::Vertex
Vertex_v1 Vertex
Define the latest version of the vertex class.
Definition
Event/xAOD/xAODTracking/xAODTracking/Vertex.h:16
Generated on
for ATLAS Offline Software by
1.17.0