ATLAS Offline Software
Loading...
Searching...
No Matches
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
17
20
21#include <string>
22#include <vector>
23
24namespace ParticleJetTools {
25
27public:
28 TauSeedJetLabelCopyAlg(const std::string& name, ISvcLocator* loc);
29 virtual StatusCode initialize() override;
30 virtual StatusCode execute(const EventContext& ctx) const override;
31
32private:
34 this, "TauJets", "TauJets", "Taus to decorate"};
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
45 this, "IntDecorKeys", {}, "Declared int decorations, filled in initialize"};
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
Helper class to provide constant type-safe access to aux data.
Property holding a SG store/key/clid from which a ReadHandle is made.
An algorithm that can be simultaneously executed in multiple threads.
SG::WriteDecorHandleKeyArray< xAOD::TauJetContainer, int > m_intDecorKeys
virtual StatusCode execute(const EventContext &ctx) const override
SG::ReadHandleKey< xAOD::TauJetContainer > m_tauKey
std::vector< SG::ConstAccessor< float > > m_floatAccs
SG::ReadHandleKey< xAOD::JetContainer > m_jetKey
std::vector< SG::ConstAccessor< int > > m_intAccs
TauSeedJetLabelCopyAlg(const std::string &name, ISvcLocator *loc)
Gaudi::Property< std::vector< std::string > > m_floatNames
Gaudi::Property< std::vector< std::string > > m_intNames
SG::WriteDecorHandleKeyArray< xAOD::TauJetContainer, float > m_floatDecorKeys
Property holding a SG store/key/clid from which a ReadHandle is made.
DecorHandleKeyArray< WriteDecorHandle< T, S >, WriteDecorHandleKey< T >, Gaudi::DataHandle::Writer > WriteDecorHandleKeyArray