ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
JetTagging
FlavorTagDiscriminants
FlavorTagDiscriminants
TruthParticleDecoratorAlg.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 TRUTH_PARTICLE_DECORATOR_ALG_HH
6
#define TRUTH_PARTICLE_DECORATOR_ALG_HH
7
8
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
9
#include "GaudiKernel/ToolHandle.h"
10
#include "
AthContainers/AuxElement.h
"
11
#include "
StoreGate/WriteDecorHandleKey.h
"
12
#include "
StoreGate/ReadDecorHandleKey.h
"
13
14
#include "
xAODTruth/TruthParticleContainerFwd.h
"
15
#include "
xAODTruth/TruthVertexContainerFwd.h
"
16
#include "
InDetTrackSystematicsTools/InDetTrackTruthOriginTool.h
"
17
18
19
namespace
FlavorTagDiscriminants
{
20
21
class
TruthParticleDecoratorAlg
:
public
AthReentrantAlgorithm
{
22
public
:
23
TruthParticleDecoratorAlg
(
const
std::string& name,
24
ISvcLocator* pSvcLocator );
25
26
virtual
StatusCode
initialize
()
override
;
27
virtual
StatusCode
execute
(
const
EventContext& )
const override
;
28
29
private
:
30
31
// Input Containers
32
SG::ReadHandleKey< xAOD::TruthParticleContainer >
m_TruthContainerKey
{
33
this
,
"truthContainer"
,
"TruthParticles"
,
34
"Key for the input truth particle collection"
};
35
SG::ReadHandleKey< xAOD::TruthVertexContainer >
m_TruthPVsKey
{
36
this
,
"TruthPrimaryVertices"
,
"TruthPrimaryVertices"
,
37
"Key for the input truth PV collection"
};
38
39
// Decorators for truth particles
40
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer >
m_dec_origin_label
{
41
this
,
"ftagTruthOriginLabel"
,
m_TruthContainerKey
,
"ftagTruthOriginLabel"
,
42
"Exclusive origin label of the truth particle"
};
43
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer >
m_dec_type_label
{
44
this
,
"ftagTruthTypeLabel"
,
m_TruthContainerKey
,
"ftagTruthTypeLabel"
,
45
"Exclusive truth type label of the truth particle"
};
46
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer >
m_dec_source_label
{
47
this
,
"ftagTruthSourceLabel"
,
m_TruthContainerKey
,
"ftagTruthSourceLabel"
,
48
"Exclusive truth label for the source of secondary particles"
};
49
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer >
m_dec_vertex_index
{
50
this
,
"ftagTruthVertexIndex"
,
m_TruthContainerKey
,
"ftagTruthVertexIndex"
,
51
"ftagTruth vertex index of the truth particle"
};
52
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer >
m_dec_parent_uniqueID
{
53
this
,
"ftagTruthParentBarcode"
,
m_TruthContainerKey
,
"ftagTruthParentBarcode"
,
54
"UniqueID of parent of linked truth particle"
};
55
56
// truth origin tool
57
ToolHandle<InDet::InDetTrackTruthOriginTool>
m_truthOriginTool
{
58
this
,
"trackTruthOriginTool"
,
"InDet::InDetTrackTruthOriginTool"
,
59
"track truth origin tool"
};
60
61
Gaudi::Property<float>
m_truthVertexMergeDistance
{
62
this
,
"truthVertexMergeDistance"
, 0.1,
63
"Merge any truth vertices within this distance [mm]"
};
64
65
// ATLASRECTS-8290: this is for backward compatability, remove eventually
66
Gaudi::Property<bool>
m_use_barcode
{
67
this
,
"useBarcode"
,
false
,
"use barcode rather than UID"
68
};
69
SG::ConstAccessor<int>
m_uid
{
"uid"
};
70
71
};
72
}
73
74
#endif
AthReentrantAlgorithm.h
AuxElement.h
Base class for elements of a container that can have aux data.
InDetTrackTruthOriginTool.h
ReadDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
TruthParticleContainerFwd.h
TruthVertexContainerFwd.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
FlavorTagDiscriminants::TruthParticleDecoratorAlg::m_truthOriginTool
ToolHandle< InDet::InDetTrackTruthOriginTool > m_truthOriginTool
Definition
TruthParticleDecoratorAlg.h:57
FlavorTagDiscriminants::TruthParticleDecoratorAlg::m_use_barcode
Gaudi::Property< bool > m_use_barcode
Definition
TruthParticleDecoratorAlg.h:66
FlavorTagDiscriminants::TruthParticleDecoratorAlg::m_dec_origin_label
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_dec_origin_label
Definition
TruthParticleDecoratorAlg.h:40
FlavorTagDiscriminants::TruthParticleDecoratorAlg::m_TruthPVsKey
SG::ReadHandleKey< xAOD::TruthVertexContainer > m_TruthPVsKey
Definition
TruthParticleDecoratorAlg.h:35
FlavorTagDiscriminants::TruthParticleDecoratorAlg::m_dec_parent_uniqueID
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_dec_parent_uniqueID
Definition
TruthParticleDecoratorAlg.h:52
FlavorTagDiscriminants::TruthParticleDecoratorAlg::m_dec_type_label
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_dec_type_label
Definition
TruthParticleDecoratorAlg.h:43
FlavorTagDiscriminants::TruthParticleDecoratorAlg::m_truthVertexMergeDistance
Gaudi::Property< float > m_truthVertexMergeDistance
Definition
TruthParticleDecoratorAlg.h:61
FlavorTagDiscriminants::TruthParticleDecoratorAlg::m_TruthContainerKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_TruthContainerKey
Definition
TruthParticleDecoratorAlg.h:32
FlavorTagDiscriminants::TruthParticleDecoratorAlg::execute
virtual StatusCode execute(const EventContext &) const override
Definition
TruthParticleDecoratorAlg.cxx:53
FlavorTagDiscriminants::TruthParticleDecoratorAlg::initialize
virtual StatusCode initialize() override
Definition
TruthParticleDecoratorAlg.cxx:27
FlavorTagDiscriminants::TruthParticleDecoratorAlg::m_uid
SG::ConstAccessor< int > m_uid
Definition
TruthParticleDecoratorAlg.h:69
FlavorTagDiscriminants::TruthParticleDecoratorAlg::m_dec_source_label
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_dec_source_label
Definition
TruthParticleDecoratorAlg.h:46
FlavorTagDiscriminants::TruthParticleDecoratorAlg::m_dec_vertex_index
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_dec_vertex_index
Definition
TruthParticleDecoratorAlg.h:49
FlavorTagDiscriminants::TruthParticleDecoratorAlg::TruthParticleDecoratorAlg
TruthParticleDecoratorAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
TruthParticleDecoratorAlg.cxx:23
SG::ConstAccessor
Helper class to provide constant type-safe access to aux data.
Definition
ConstAccessor.h:55
SG::ReadHandleKey< xAOD::TruthParticleContainer >
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer >
FlavorTagDiscriminants
Definition
CaloChargedFlowDecoratorAlg.h:15
Generated on
for ATLAS Offline Software by
1.17.0