ATLAS Offline Software
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
17 #include "TrigConfData/HLTMenu.h"
23 
24 
25 namespace 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
TrigConf::KeyWriterTool::m_hltMenuInputKey
SG::ReadHandleKey< TrigConf::HLTMenu > m_hltMenuInputKey
Definition: KeyWriterTool.h:55
HLTPrescalesSet.h
TrigConf::KeyWriterTool::m_writeBgKey
SG::WriteHandleKey< xAOD::BunchConfKey > m_writeBgKey
Definition: KeyWriterTool.h:61
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
RunEBWeightsComputation.smk
smk
Definition: RunEBWeightsComputation.py:87
L1PrescalesSet.h
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:562
SG::ReadHandleKey< TrigConf::HLTMenu >
TrigConf
Forward iterator to traverse the main components of the trigger configuration.
Definition: Config.h:22
TrigConf::KeyWriterTool::m_l1PrescaleSetInputKey
SG::ReadCondHandleKey< TrigConf::L1PrescalesSet > m_l1PrescaleSetInputKey
Definition: KeyWriterTool.h:52
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
TrigConf::KeyWriterTool::KeyWriterTool
KeyWriterTool()=delete
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TrigConf::KeyWriterTool::writeBunchgroupKey
virtual StatusCode writeBunchgroupKey(const EventContext &ctx, uint32_t &bgk) const final
Definition: KeyWriterTool.cxx:69
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
TrigConf::KeyWriterTool::m_includeL1PrescaleKey
Gaudi::Property< bool > m_includeL1PrescaleKey
Definition: KeyWriterTool.h:57
TrigConf::KeyWriterTool::initialize
virtual StatusCode initialize() final
Definition: KeyWriterTool.cxx:16
TrigConf::KeyWriterTool
Definition: KeyWriterTool.h:31
TrigConf::KeyWriterTool::m_bgInputKey
SG::ReadCondHandleKey< TrigConf::L1BunchGroupSet > m_bgInputKey
Definition: KeyWriterTool.h:54
TrigConf::name
Definition: HLTChainList.h:35
TrigConf::L1PrescalesSet
L1 menu configuration.
Definition: L1PrescalesSet.h:19
ReadCondHandleKey.h
TrigConf::KeyWriterTool::m_writeKeys
SG::WriteHandleKey< xAOD::TrigConfKeys > m_writeKeys
Definition: KeyWriterTool.h:60
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
L1BunchGroupSet.h
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
TrigConf::KeyWriterTool::m_hltPrescaleSetInputKey
SG::ReadCondHandleKey< TrigConf::HLTPrescalesSet > m_hltPrescaleSetInputKey
Definition: KeyWriterTool.h:53
SG::ReadCondHandleKey< TrigConf::HLTPrescalesSet >
TrigConf::KeyWriterTool::~KeyWriterTool
virtual ~KeyWriterTool() override=default
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
IKeyWriterTool.h
TrigConfKeys.h
xAOD::l1psk
l1psk
Definition: TriggerMenu_v1.cxx:29
HLTMenu.h
BunchConfKey.h
TrigConf::KeyWriterTool::m_includeBunchgroupKey
Gaudi::Property< bool > m_includeBunchgroupKey
Definition: KeyWriterTool.h:58
TrigConf::KeyWriterTool::writeKeys
virtual StatusCode writeKeys(const EventContext &ctx, uint32_t &smk, uint32_t &l1psk, uint32_t &hltpsk) const final
Definition: KeyWriterTool.cxx:40