ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
JetTagging
FlavorTagJetDecorators
src
VectorExploderAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef FLAVORTAGJETDECORATORS_VECTOR_EXPLODER_ALG_H
6
#define FLAVORTAGJETDECORATORS_VECTOR_EXPLODER_ALG_H
7
8
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
9
#include "
StoreGate/ReadHandleKey.h
"
10
#include "
StoreGate/ReadDecorHandleKey.h
"
11
#include "
StoreGate/WriteDecorHandleKey.h
"
12
13
#include "
xAODJet/JetContainer.h
"
14
15
#include <map>
16
#include <string>
17
#include <vector>
18
#include <utility>
19
20
namespace
FlavorTagJetDecorators
{
21
33
34
class
VectorExploderAlg
:
public
AthReentrantAlgorithm
{
35
public
:
36
VectorExploderAlg
(
const
std::string& name, ISvcLocator* pSvcLocator);
37
38
virtual
StatusCode
initialize
()
override
;
39
virtual
StatusCode
execute
(
const
EventContext& ctx)
const override
;
40
41
private
:
43
SG::ReadHandleKey<xAOD::JetContainer>
m_collectionKey
{
44
this
,
"Collection"
,
"AntiKt4EMPFlowJets"
,
45
"Input jet collection to read decorations from"
};
46
48
SG::ReadDecorHandleKey<xAOD::JetContainer>
m_inputVectorKey
{
49
this
,
"InputVectorName"
,
m_collectionKey
,
""
,
50
"Name of the input vector decoration to explode"
};
51
53
Gaudi::Property<std::map<int, std::string>>
m_outputNamesMap
{
54
this
,
"OutputNamesMap"
, {},
55
"Mapping between indices and names for the output scalar decorations"
};
56
59
std::vector<std::pair<int, SG::WriteDecorHandleKey<xAOD::JetContainer>>>
m_outputKeys
;
60
62
int
m_maxIndex
{-1};
63
};
64
65
}
// namespace FlavorTagJetDecorators
66
67
#endif
// FLAVORTAGJETDECORATORS_VECTOR_EXPLODER_ALG_H
AthReentrantAlgorithm.h
JetContainer.h
ReadDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
FlavorTagJetDecorators::VectorExploderAlg::VectorExploderAlg
VectorExploderAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
VectorExploderAlg.cxx:21
FlavorTagJetDecorators::VectorExploderAlg::m_outputNamesMap
Gaudi::Property< std::map< int, std::string > > m_outputNamesMap
Mapping from vector index to output scalar decoration name.
Definition
VectorExploderAlg.h:53
FlavorTagJetDecorators::VectorExploderAlg::m_collectionKey
SG::ReadHandleKey< xAOD::JetContainer > m_collectionKey
Input jet collection.
Definition
VectorExploderAlg.h:43
FlavorTagJetDecorators::VectorExploderAlg::initialize
virtual StatusCode initialize() override
Definition
VectorExploderAlg.cxx:25
FlavorTagJetDecorators::VectorExploderAlg::m_inputVectorKey
SG::ReadDecorHandleKey< xAOD::JetContainer > m_inputVectorKey
Name of the input vector<float> decoration to explode.
Definition
VectorExploderAlg.h:48
FlavorTagJetDecorators::VectorExploderAlg::m_maxIndex
int m_maxIndex
Maximum index used in OutputNamesMap (for bounds check).
Definition
VectorExploderAlg.h:62
FlavorTagJetDecorators::VectorExploderAlg::m_outputKeys
std::vector< std::pair< int, SG::WriteDecorHandleKey< xAOD::JetContainer > > > m_outputKeys
Initialized output keys (index, WriteDecorHandleKey) pairs.
Definition
VectorExploderAlg.h:59
FlavorTagJetDecorators::VectorExploderAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
VectorExploderAlg.cxx:54
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
FlavorTagJetDecorators
Definition
JetOverlapLeptonDecoratorAlg.cxx:25
Generated on
for ATLAS Offline Software by
1.17.0