ATLAS Offline Software
Loading...
Searching...
No Matches
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
12
15
16#include "Gaudi/Property.h"
17
20
21#include <vector>
22
23namespace FlavorTagDiscriminants {
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
35 this, "jet_container", "AntiKt4EMPFlow", "Jet container name to read the aux-task outputs from"
36 };
38 this, "track_container", "InDetTrackParticles", "Track container name to decorate with the aux-task outputs"
39 };
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
49 };
50}
51
52#endif
An algorithm that can be simultaneously executed in multiple threads.
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trackContainerKey
SG::WriteDecorHandleKeyArray< xAOD::TrackParticleContainer > m_trackAuxTasksDecorKeys
virtual StatusCode execute(const EventContext &cxt) const override
SG::ReadDecorHandleKey< xAOD::TrackParticleContainer > m_trackLinksKey
Gaudi::Property< std::map< std::string, std::string > > m_trackAuxTasks
GNNAuxTaskDecoratorAlg(const std::string &name, ISvcLocator *svcloc)
SG::ReadHandleKey< xAOD::JetContainer > m_jetContainerKey
SG::ReadDecorHandleKeyArray< xAOD::JetContainer > m_readDecorKeys
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.
DecorHandleKeyArray< ReadDecorHandle< T, S >, ReadDecorHandleKey< T >, Gaudi::DataHandle::Reader > ReadDecorHandleKeyArray
DecorHandleKeyArray< WriteDecorHandle< T, S >, WriteDecorHandleKey< T >, Gaudi::DataHandle::Writer > WriteDecorHandleKeyArray