ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
DerivationFramework
DerivationFrameworkTools
DerivationFrameworkTools
DeltaRTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef DERIVATIONFRAMEWORK_DELTARTOOL_H
6
#define DERIVATIONFRAMEWORK_DELTARTOOL_H
7
8
9
10
#include "
AthenaBaseComps/AthAlgTool.h
"
11
#include "
DerivationFrameworkInterfaces/IAugmentationTool.h
"
12
#include "
ExpressionEvaluation/ExpressionParserUser.h
"
13
#include "
StoreGate/ReadHandleKey.h
"
14
#include "
StoreGate/WriteHandleKey.h
"
15
#include "
xAODBase/IParticleContainer.h
"
16
17
#include <vector>
18
#include <string>
19
class
EventContext;
20
21
namespace
DerivationFramework
{
22
23
enum
EDeltaRToolParser
{
kDeltaRToolParser1
,
kDeltaRToolParser2
,
kDeltaRToolParserNum
};
24
class
DeltaRTool
:
public
extends<ExpressionParserUser<AthAlgTool,kDeltaRToolParserNum>, IAugmentationTool> {
25
public
:
26
27
using
base_class::base_class;
28
29
virtual
StatusCode
initialize
()
override
final
;
30
virtual
StatusCode
finalize
()
override
final
;
31
virtual
StatusCode
addBranches
(
const
EventContext& ctx)
const
override
final
;
32
33
private
:
34
Gaudi::Property<std::string>
m_expression
{
this
,
"ObjectRequirements"
,
""
};
35
Gaudi::Property<std::string>
m_2ndExpression
{
this
,
"SecondObjectRequirements"
,
""
};
36
SG::WriteHandleKey<std::vector<float>
>
m_sgName
{
this
,
"StoreGateEntryName"
,
""
,
"SG key of output object"
};
37
SG::ReadHandleKey<xAOD::IParticleContainer>
m_containerName
{
this
,
"ContainerName"
,
""
,
"SG key of first container"
};
38
SG::ReadHandleKey<xAOD::IParticleContainer>
m_containerName2
{
this
,
"SecondContainerName"
,
""
,
"SG key of first container"
};
39
40
StatusCode
getDeltaRs
(std::vector<float>*,
const
EventContext& ctx)
const
;
41
static
float
calculateDeltaR
(
float
,
float
,
float
,
float
) ;
42
};
43
}
44
45
#endif
// DERIVATIONFRAMEWORK_DELTARTOOL_H
AthAlgTool.h
ExpressionParserUser.h
IAugmentationTool.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
DerivationFramework::DeltaRTool
Definition
DeltaRTool.h:24
DerivationFramework::DeltaRTool::m_expression
Gaudi::Property< std::string > m_expression
Definition
DeltaRTool.h:34
DerivationFramework::DeltaRTool::m_2ndExpression
Gaudi::Property< std::string > m_2ndExpression
Definition
DeltaRTool.h:35
DerivationFramework::DeltaRTool::m_containerName2
SG::ReadHandleKey< xAOD::IParticleContainer > m_containerName2
Definition
DeltaRTool.h:38
DerivationFramework::DeltaRTool::getDeltaRs
StatusCode getDeltaRs(std::vector< float > *, const EventContext &ctx) const
Definition
DeltaRTool.cxx:52
DerivationFramework::DeltaRTool::initialize
virtual StatusCode initialize() override final
Definition
DeltaRTool.cxx:13
DerivationFramework::DeltaRTool::finalize
virtual StatusCode finalize() override final
Definition
DeltaRTool.cxx:30
DerivationFramework::DeltaRTool::m_containerName
SG::ReadHandleKey< xAOD::IParticleContainer > m_containerName
Definition
DeltaRTool.h:37
DerivationFramework::DeltaRTool::m_sgName
SG::WriteHandleKey< std::vector< float > > m_sgName
Definition
DeltaRTool.h:36
DerivationFramework::DeltaRTool::addBranches
virtual StatusCode addBranches(const EventContext &ctx) const override final
Definition
DeltaRTool.cxx:36
DerivationFramework::DeltaRTool::calculateDeltaR
static float calculateDeltaR(float, float, float, float)
Definition
DeltaRTool.cxx:138
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
DerivationFramework
THE reconstruction tool.
Definition
CascadeTools.h:16
DerivationFramework::EDeltaRToolParser
EDeltaRToolParser
Definition
DeltaRTool.h:23
DerivationFramework::kDeltaRToolParser1
@ kDeltaRToolParser1
Definition
DeltaRTool.h:23
DerivationFramework::kDeltaRToolParser2
@ kDeltaRToolParser2
Definition
DeltaRTool.h:23
DerivationFramework::kDeltaRToolParserNum
@ kDeltaRToolParserNum
Definition
DeltaRTool.h:23
IParticleContainer.h
Generated on
for ATLAS Offline Software by
1.17.0