ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
JetTagging
FlavorTagDiscriminants
FlavorTagDiscriminants
GNNAuxTaskDecoratorAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
4
This algorithm reads the aux-task outputs from a jet object and decorates the associated tracks with the same outputs.
5
The mapping between the aux-task names for jets and tracks needs to be supplied in the job options.
6
*/
7
8
#ifndef GNN_AUXTASK_DECORATOR_ALG_H
9
#define GNN_AUXTASK_DECORATOR_ALG_H
10
11
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
12
13
#include "
xAODTracking/TrackParticleContainer.h
"
14
#include "
xAODJet/JetContainer.h
"
15
16
#include "Gaudi/Property.h"
17
18
#include "
StoreGate/WriteDecorHandleKeyArray.h
"
19
#include "
StoreGate/ReadDecorHandleKeyArray.h
"
20
21
#include <vector>
22
23
namespace
FlavorTagDiscriminants
{
24
class
GNNAuxTaskDecoratorAlg
:
public
AthReentrantAlgorithm
25
{
26
public
:
27
GNNAuxTaskDecoratorAlg
(
const
std::string& name, ISvcLocator* svcloc);
28
virtual
StatusCode
initialize
()
override
;
29
virtual
StatusCode
execute
(
const
EventContext& cxt)
const override
;
30
virtual
StatusCode
finalize
()
override
;
31
32
private
:
33
34
SG::ReadHandleKey<xAOD::JetContainer>
m_jetContainerKey
{
35
this
,
"jet_container"
,
"AntiKt4EMPFlow"
,
"Jet container name to read the aux-task outputs from"
36
};
37
SG::ReadHandleKey<xAOD::TrackParticleContainer>
m_trackContainerKey
{
38
this
,
"track_container"
,
"InDetTrackParticles"
,
"Track container name to decorate with the aux-task outputs"
39
};
40
SG::ReadDecorHandleKey<xAOD::TrackParticleContainer>
m_trackLinksKey
{
41
this
,
"track_links"
,
m_jetContainerKey
,
"GN2v01_TrackLinks"
,
"TrackLinks name associated with the jet object"
42
};
43
Gaudi::Property<std::map<std::string,std::string>>
m_trackAuxTasks
{
44
this
,
"track_aux_tasks"
, {},
"Map between aux-task decorations for jets and decorations for tracks"
45
};
46
47
SG::WriteDecorHandleKeyArray<xAOD::TrackParticleContainer>
m_trackAuxTasksDecorKeys
{
this
,
"TrackDecorations"
, {}};
48
SG::ReadDecorHandleKeyArray<xAOD::JetContainer>
m_readDecorKeys
{
this
,
"JetDecorations"
, {}};
49
};
50
}
51
52
#endif
AthReentrantAlgorithm.h
TrackParticleContainer.h
JetContainer.h
ReadDecorHandleKeyArray.h
WriteDecorHandleKeyArray.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
FlavorTagDiscriminants::GNNAuxTaskDecoratorAlg::m_trackContainerKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trackContainerKey
Definition
GNNAuxTaskDecoratorAlg.h:37
FlavorTagDiscriminants::GNNAuxTaskDecoratorAlg::initialize
virtual StatusCode initialize() override
Definition
GNNAuxTaskDecoratorAlg.cxx:22
FlavorTagDiscriminants::GNNAuxTaskDecoratorAlg::m_trackAuxTasksDecorKeys
SG::WriteDecorHandleKeyArray< xAOD::TrackParticleContainer > m_trackAuxTasksDecorKeys
Definition
GNNAuxTaskDecoratorAlg.h:47
FlavorTagDiscriminants::GNNAuxTaskDecoratorAlg::execute
virtual StatusCode execute(const EventContext &cxt) const override
Definition
GNNAuxTaskDecoratorAlg.cxx:41
FlavorTagDiscriminants::GNNAuxTaskDecoratorAlg::m_trackLinksKey
SG::ReadDecorHandleKey< xAOD::TrackParticleContainer > m_trackLinksKey
Definition
GNNAuxTaskDecoratorAlg.h:40
FlavorTagDiscriminants::GNNAuxTaskDecoratorAlg::m_trackAuxTasks
Gaudi::Property< std::map< std::string, std::string > > m_trackAuxTasks
Definition
GNNAuxTaskDecoratorAlg.h:43
FlavorTagDiscriminants::GNNAuxTaskDecoratorAlg::GNNAuxTaskDecoratorAlg
GNNAuxTaskDecoratorAlg(const std::string &name, ISvcLocator *svcloc)
Definition
GNNAuxTaskDecoratorAlg.cxx:17
FlavorTagDiscriminants::GNNAuxTaskDecoratorAlg::m_jetContainerKey
SG::ReadHandleKey< xAOD::JetContainer > m_jetContainerKey
Definition
GNNAuxTaskDecoratorAlg.h:34
FlavorTagDiscriminants::GNNAuxTaskDecoratorAlg::m_readDecorKeys
SG::ReadDecorHandleKeyArray< xAOD::JetContainer > m_readDecorKeys
Definition
GNNAuxTaskDecoratorAlg.h:48
FlavorTagDiscriminants::GNNAuxTaskDecoratorAlg::finalize
virtual StatusCode finalize() override
Definition
GNNAuxTaskDecoratorAlg.cxx:89
SG::ReadDecorHandleKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Definition
StoreGate/StoreGate/ReadDecorHandleKey.h:86
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
FlavorTagDiscriminants
Definition
CaloChargedFlowDecoratorAlg.h:15
SG::ReadDecorHandleKeyArray
DecorHandleKeyArray< ReadDecorHandle< T, S >, ReadDecorHandleKey< T >, Gaudi::DataHandle::Reader > ReadDecorHandleKeyArray
Definition
StoreGate/StoreGate/ReadDecorHandleKeyArray.h:35
SG::WriteDecorHandleKeyArray
DecorHandleKeyArray< WriteDecorHandle< T, S >, WriteDecorHandleKey< T >, Gaudi::DataHandle::Writer > WriteDecorHandleKeyArray
Definition
StoreGate/StoreGate/WriteDecorHandleKeyArray.h:35
Generated on
for ATLAS Offline Software by
1.17.0