ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigConfiguration
TrigConfxAOD
src
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
9
#include "
TrigConfxAOD/IKeyWriterTool.h
"
10
11
// Framework includes
12
#include "
AthenaBaseComps/AthAlgTool.h
"
13
#include "
StoreGate/ReadCondHandleKey.h
"
14
#include "
StoreGate/WriteHandleKey.h
"
15
16
// Data includes
17
#include "
TrigConfData/HLTMenu.h
"
18
#include "
TrigConfData/HLTPrescalesSet.h
"
19
#include "
TrigConfData/L1PrescalesSet.h
"
20
#include "
TrigConfData/L1BunchGroupSet.h
"
21
#include "
xAODTrigger/TrigConfKeys.h
"
22
#include "
xAODTrigger/BunchConfKey.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
AthAlgTool.h
BunchConfKey.h
HLTMenu.h
HLTPrescalesSet.h
IKeyWriterTool.h
L1BunchGroupSet.h
L1PrescalesSet.h
ReadCondHandleKey.h
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
TrigConfKeys.h
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
TrigConf::KeyWriterTool::m_bgInputKey
SG::ReadCondHandleKey< TrigConf::L1BunchGroupSet > m_bgInputKey
Definition
KeyWriterTool.h:54
TrigConf::KeyWriterTool::m_writeBgKey
SG::WriteHandleKey< xAOD::BunchConfKey > m_writeBgKey
Definition
KeyWriterTool.h:61
TrigConf::KeyWriterTool::m_hltPrescaleSetInputKey
SG::ReadCondHandleKey< TrigConf::HLTPrescalesSet > m_hltPrescaleSetInputKey
Definition
KeyWriterTool.h:53
TrigConf::KeyWriterTool::KeyWriterTool
KeyWriterTool()=delete
TrigConf::KeyWriterTool::m_includeL1PrescaleKey
Gaudi::Property< bool > m_includeL1PrescaleKey
Definition
KeyWriterTool.h:57
TrigConf::KeyWriterTool::writeKeys
virtual StatusCode writeKeys(const EventContext &ctx, uint32_t &smk, uint32_t &l1psk, uint32_t &hltpsk) const final
Definition
KeyWriterTool.cxx:40
TrigConf::KeyWriterTool::m_writeKeys
SG::WriteHandleKey< xAOD::TrigConfKeys > m_writeKeys
Definition
KeyWriterTool.h:60
TrigConf::KeyWriterTool::writeBunchgroupKey
virtual StatusCode writeBunchgroupKey(const EventContext &ctx, uint32_t &bgk) const final
Definition
KeyWriterTool.cxx:69
TrigConf::KeyWriterTool::~KeyWriterTool
virtual ~KeyWriterTool() override=default
TrigConf::KeyWriterTool::m_l1PrescaleSetInputKey
SG::ReadCondHandleKey< TrigConf::L1PrescalesSet > m_l1PrescaleSetInputKey
Definition
KeyWriterTool.h:52
TrigConf::KeyWriterTool::m_hltMenuInputKey
SG::ReadHandleKey< TrigConf::HLTMenu > m_hltMenuInputKey
Definition
KeyWriterTool.h:55
TrigConf::KeyWriterTool::m_includeBunchgroupKey
Gaudi::Property< bool > m_includeBunchgroupKey
Definition
KeyWriterTool.h:58
TrigConf::KeyWriterTool::initialize
virtual StatusCode initialize() final
Definition
KeyWriterTool.cxx:16
TrigConf::L1PrescalesSet
L1 menu configuration.
Definition
L1PrescalesSet.h:19
const
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
TrigConf
Forward iterator to traverse the main components of the trigger configuration.
Definition
Config.h:22
type
TrigConf::name
Definition
HLTChainList.h:35
private
#define private
Definition
testRead.cxx:27
Generated on
for ATLAS Offline Software by
1.17.0