ATLAS Offline Software
GNNAuxTaskDecoratorAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 
4  This algorithm reads the aux-task outputs from a BTagging 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 
23 namespace 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, "btagging_container", "BTagging_AntiKt4EMPFlow", "BTagging 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", "GN2v01_TrackLinks", "TrackLinks name associated with the BTagging 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  std::vector<SG::WriteDecorHandleKey<xAOD::TrackParticleContainer>> m_trackAuxTasksDecorKeys;
48  std::vector<SG::ReadDecorHandleKey<xAOD::BTaggingContainer>> m_readDecorKeys;
49  };
50 }
51 
52 #endif
FlavorTagDiscriminants::GNNAuxTaskDecoratorAlg::GNNAuxTaskDecoratorAlg
GNNAuxTaskDecoratorAlg(const std::string &name, ISvcLocator *svcloc)
Definition: GNNAuxTaskDecoratorAlg.cxx:17
ReadDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
FlavorTagDiscriminants
This file contains "getter" functions used for accessing tagger inputs from the EDM.
Definition: AssociationEnums.h:11
FlavorTagDiscriminants::GNNAuxTaskDecoratorAlg::execute
virtual StatusCode execute(const EventContext &cxt) const override
Definition: GNNAuxTaskDecoratorAlg.cxx:41
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
FlavorTagDiscriminants::GNNAuxTaskDecoratorAlg
Definition: GNNAuxTaskDecoratorAlg.h:25
FlavorTagDiscriminants::GNNAuxTaskDecoratorAlg::finalize
virtual StatusCode finalize() override
Definition: GNNAuxTaskDecoratorAlg.cxx:89
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
FlavorTagDiscriminants::GNNAuxTaskDecoratorAlg::m_jetContainerKey
SG::ReadHandleKey< xAOD::BTaggingContainer > m_jetContainerKey
Definition: GNNAuxTaskDecoratorAlg.h:34
FlavorTagDiscriminants::GNNAuxTaskDecoratorAlg::m_readDecorKeys
std::vector< SG::ReadDecorHandleKey< xAOD::BTaggingContainer > > m_readDecorKeys
Definition: GNNAuxTaskDecoratorAlg.h:48
FlavorTagDiscriminants::GNNAuxTaskDecoratorAlg::m_trackContainerKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trackContainerKey
Definition: GNNAuxTaskDecoratorAlg.h:37
AthReentrantAlgorithm.h
BTaggingContainer.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
FlavorTagDiscriminants::GNNAuxTaskDecoratorAlg::m_trackAuxTasks
Gaudi::Property< std::map< std::string, std::string > > m_trackAuxTasks
Definition: GNNAuxTaskDecoratorAlg.h:43
FlavorTagDiscriminants::GNNAuxTaskDecoratorAlg::m_trackAuxTasksDecorKeys
std::vector< SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > > m_trackAuxTasksDecorKeys
Definition: GNNAuxTaskDecoratorAlg.h:47
SG::ReadDecorHandleKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Definition: StoreGate/StoreGate/ReadDecorHandleKey.h:85
TrackParticleContainer.h
FlavorTagDiscriminants::GNNAuxTaskDecoratorAlg::initialize
virtual StatusCode initialize() override
Definition: GNNAuxTaskDecoratorAlg.cxx:22
FlavorTagDiscriminants::GNNAuxTaskDecoratorAlg::m_trackLinksKey
SG::ReadDecorHandleKey< xAOD::TrackParticleContainer > m_trackLinksKey
Definition: GNNAuxTaskDecoratorAlg.h:40