ATLAS Offline Software
Loading...
Searching...
No Matches
KeyWriterTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRIGCONFXAOD_KEYWRITERTOOL_H
6#define TRIGCONFXAOD_KEYWRITERTOOL_H
7
8// Interface includes
10
11// Framework includes
15
16// Data includes
23
24
25namespace TrigConf {
26
31 class KeyWriterTool : public extends<AthAlgTool, IKeyWriterTool> {
32 public:
33
34 KeyWriterTool() = delete;
35
36 KeyWriterTool( const std::string& type, const std::string& name, const IInterface* parent );
37
38 virtual ~KeyWriterTool() override = default;
39
40 virtual StatusCode initialize() final;
41
42 virtual StatusCode writeKeys(const EventContext& ctx, uint32_t&smk, uint32_t& l1psk, uint32_t& hltpsk) const final;
43
44 virtual StatusCode writeKeys(const EventContext& ctx) const final;
45
46 virtual StatusCode writeBunchgroupKey(const EventContext& ctx, uint32_t&bgk) const final;
47
48 virtual StatusCode writeBunchgroupKey(const EventContext& ctx) const final;
49
50 private:
51
52 SG::ReadCondHandleKey<TrigConf::L1PrescalesSet> m_l1PrescaleSetInputKey{ this, "L1Prescales", "L1Prescales", "L1 prescales set condition handle key"};
53 SG::ReadCondHandleKey<TrigConf::HLTPrescalesSet> m_hltPrescaleSetInputKey{ this, "HLTPrescales", "HLTPrescales", "HLT prescales set condition handle key"};
54 SG::ReadCondHandleKey<TrigConf::L1BunchGroupSet> m_bgInputKey{this, "L1BunchGroup", "L1BunchGroup", "L1BunchGroupSet condition handle key"};
55 SG::ReadHandleKey<TrigConf::HLTMenu> m_hltMenuInputKey {this, "HLTMenu", "DetectorStore+HLTTriggerMenu", "HLT Menu key"};
56
57 Gaudi::Property<bool> m_includeL1PrescaleKey{this, "IncludeL1PrescaleKey", true, "Set this to false when running this tool online."};
58 Gaudi::Property<bool> m_includeBunchgroupKey{this, "IncludeBunchgroupKey", true, "Set this to false when running this tool online."};
59
60 SG::WriteHandleKey<xAOD::TrigConfKeys> m_writeKeys {this, "ConfKeys", "TrigConfKeys", "SG Key of key triplet object."};
61 SG::WriteHandleKey<xAOD::BunchConfKey> m_writeBgKey {this, "BunchConfKey", "BunchConfKey", "SG Key of bunchgroup key object."};
62
63 };
64
65}
66
67
68#endif
Property holding a SG store/key/clid from which a WriteHandle is made.
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
SG::ReadCondHandleKey< TrigConf::L1BunchGroupSet > m_bgInputKey
SG::WriteHandleKey< xAOD::BunchConfKey > m_writeBgKey
SG::ReadCondHandleKey< TrigConf::HLTPrescalesSet > m_hltPrescaleSetInputKey
Gaudi::Property< bool > m_includeL1PrescaleKey
virtual StatusCode writeKeys(const EventContext &ctx, uint32_t &smk, uint32_t &l1psk, uint32_t &hltpsk) const final
SG::WriteHandleKey< xAOD::TrigConfKeys > m_writeKeys
virtual StatusCode writeBunchgroupKey(const EventContext &ctx, uint32_t &bgk) const final
virtual ~KeyWriterTool() override=default
SG::ReadCondHandleKey< TrigConf::L1PrescalesSet > m_l1PrescaleSetInputKey
SG::ReadHandleKey< TrigConf::HLTMenu > m_hltMenuInputKey
Gaudi::Property< bool > m_includeBunchgroupKey
virtual StatusCode initialize() final
L1 menu configuration.
Forward declaration.
Forward iterator to traverse the main components of the trigger configuration.
Definition Config.h:22
#define private