5#ifndef FLAVORTAGJETDECORATORS_VECTOR_EXPLODER_ALG_H
6#define FLAVORTAGJETDECORATORS_VECTOR_EXPLODER_ALG_H
39 virtual StatusCode
execute(
const EventContext& ctx)
const override;
44 this,
"Collection",
"AntiKt4EMPFlowJets",
45 "Input jet collection to read decorations from"};
50 "Name of the input vector decoration to explode"};
54 this,
"OutputNamesMap", {},
55 "Mapping between indices and names for the output scalar decorations"};
59 std::vector<std::pair<int, SG::WriteDecorHandleKey<xAOD::JetContainer>>>
m_outputKeys;
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
An algorithm that can be simultaneously executed in multiple threads.
VectorExploderAlg(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Property< std::map< int, std::string > > m_outputNamesMap
Mapping from vector index to output scalar decoration name.
SG::ReadHandleKey< xAOD::JetContainer > m_collectionKey
Input jet collection.
virtual StatusCode initialize() override
SG::ReadDecorHandleKey< xAOD::JetContainer > m_inputVectorKey
Name of the input vector<float> decoration to explode.
int m_maxIndex
Maximum index used in OutputNamesMap (for bounds check).
std::vector< std::pair< int, SG::WriteDecorHandleKey< xAOD::JetContainer > > > m_outputKeys
Initialized output keys (index, WriteDecorHandleKey) pairs.
virtual StatusCode execute(const EventContext &ctx) const override
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Property holding a SG store/key/clid from which a ReadHandle is made.