ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
AnalysisCommon
ParticleJetTools
src
TauSeedJetLabelCopyAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
// Copies jet decorations, e.g. the truth labels, from the seed jet of each
5
// tau to the tau. The seed jet is either the jet whose constituent indices are
6
// the tau cluster indices, for jets built from a shallow copy of the cluster
7
// container the taus link to, or the jet at the tau index, as from the
8
// TauSeedJetAlg.
9
10
#ifndef PARTICLEJETTOOLS_TAUSEEDJETLABELCOPYALG_H
11
#define PARTICLEJETTOOLS_TAUSEEDJETLABELCOPYALG_H
12
13
#include "
AthContainers/ConstAccessor.h
"
14
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
15
#include "
StoreGate/ReadHandleKey.h
"
16
#include "
StoreGate/WriteDecorHandleKeyArray.h
"
17
18
#include "
xAODJet/JetContainer.h
"
19
#include "
xAODTau/TauJetContainer.h
"
20
21
#include <string>
22
#include <vector>
23
24
namespace
ParticleJetTools
{
25
26
class
TauSeedJetLabelCopyAlg
:
public
AthReentrantAlgorithm
{
27
public
:
28
TauSeedJetLabelCopyAlg
(
const
std::string& name, ISvcLocator* loc);
29
virtual
StatusCode
initialize
()
override
;
30
virtual
StatusCode
execute
(
const
EventContext& ctx)
const override
;
31
32
private
:
33
SG::ReadHandleKey<xAOD::TauJetContainer>
m_tauKey
{
34
this
,
"TauJets"
,
"TauJets"
,
"Taus to decorate"
};
35
SG::ReadHandleKey<xAOD::JetContainer>
m_jetKey
{
36
this
,
"SeedJets"
,
"TauSeedJets"
,
"Seed jets holding the decorations"
};
37
Gaudi::Property<bool>
m_matchConstituents
{
38
this
,
"MatchConstituents"
,
false
,
"Match the seed jets by constituents, otherwise by index"
};
39
Gaudi::Property<std::vector<std::string>>
m_intNames
{
40
this
,
"IntDecorations"
, {},
"Integer jet decorations to copy, -1 without a seed jet"
};
41
Gaudi::Property<std::vector<std::string>>
m_floatNames
{
42
this
,
"FloatDecorations"
, {},
"Float jet decorations to copy, NaN without a seed jet"
};
43
44
SG::WriteDecorHandleKeyArray<xAOD::TauJetContainer, int>
m_intDecorKeys
{
45
this
,
"IntDecorKeys"
, {},
"Declared int decorations, filled in initialize"
};
46
SG::WriteDecorHandleKeyArray<xAOD::TauJetContainer, float>
m_floatDecorKeys
{
47
this
,
"FloatDecorKeys"
, {},
"Declared float decorations, filled in initialize"
};
48
49
std::vector<SG::ConstAccessor<int>>
m_intAccs
;
50
std::vector<SG::ConstAccessor<float>>
m_floatAccs
;
51
};
52
53
}
54
55
#endif
AthReentrantAlgorithm.h
ConstAccessor.h
Helper class to provide constant type-safe access to aux data.
JetContainer.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteDecorHandleKeyArray.h
TauJetContainer.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
ParticleJetTools::TauSeedJetLabelCopyAlg::m_intDecorKeys
SG::WriteDecorHandleKeyArray< xAOD::TauJetContainer, int > m_intDecorKeys
Definition
TauSeedJetLabelCopyAlg.h:44
ParticleJetTools::TauSeedJetLabelCopyAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
TauSeedJetLabelCopyAlg.cxx:48
ParticleJetTools::TauSeedJetLabelCopyAlg::m_tauKey
SG::ReadHandleKey< xAOD::TauJetContainer > m_tauKey
Definition
TauSeedJetLabelCopyAlg.h:33
ParticleJetTools::TauSeedJetLabelCopyAlg::m_floatAccs
std::vector< SG::ConstAccessor< float > > m_floatAccs
Definition
TauSeedJetLabelCopyAlg.h:50
ParticleJetTools::TauSeedJetLabelCopyAlg::m_jetKey
SG::ReadHandleKey< xAOD::JetContainer > m_jetKey
Definition
TauSeedJetLabelCopyAlg.h:35
ParticleJetTools::TauSeedJetLabelCopyAlg::m_intAccs
std::vector< SG::ConstAccessor< int > > m_intAccs
Definition
TauSeedJetLabelCopyAlg.h:49
ParticleJetTools::TauSeedJetLabelCopyAlg::initialize
virtual StatusCode initialize() override
Definition
TauSeedJetLabelCopyAlg.cxx:30
ParticleJetTools::TauSeedJetLabelCopyAlg::TauSeedJetLabelCopyAlg
TauSeedJetLabelCopyAlg(const std::string &name, ISvcLocator *loc)
Definition
TauSeedJetLabelCopyAlg.cxx:27
ParticleJetTools::TauSeedJetLabelCopyAlg::m_floatNames
Gaudi::Property< std::vector< std::string > > m_floatNames
Definition
TauSeedJetLabelCopyAlg.h:41
ParticleJetTools::TauSeedJetLabelCopyAlg::m_matchConstituents
Gaudi::Property< bool > m_matchConstituents
Definition
TauSeedJetLabelCopyAlg.h:37
ParticleJetTools::TauSeedJetLabelCopyAlg::m_intNames
Gaudi::Property< std::vector< std::string > > m_intNames
Definition
TauSeedJetLabelCopyAlg.h:39
ParticleJetTools::TauSeedJetLabelCopyAlg::m_floatDecorKeys
SG::WriteDecorHandleKeyArray< xAOD::TauJetContainer, float > m_floatDecorKeys
Definition
TauSeedJetLabelCopyAlg.h:46
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
ParticleJetTools
Definition
FatVertex.h:15
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