ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
TrigT1ResultByteStream
src
ExampleL1TriggerByteStreamTool.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 TRIGT1RESULTBYTESTREAM_EXAMPLEL1TRIGGERBYTESTREAMTOOL_H
6
#define TRIGT1RESULTBYTESTREAM_EXAMPLEL1TRIGGERBYTESTREAMTOOL_H
7
8
// Trigger includes
9
#include "
TrigT1ResultByteStream/IL1TriggerByteStreamTool.h
"
10
#include "
xAODTrigger/MuonRoIContainer.h
"
11
12
// Athena includes
13
#include "
AthenaBaseComps/AthAlgTool.h
"
14
15
// Gaudi includes
16
#include "Gaudi/Property.h"
17
27
class
ExampleL1TriggerByteStreamTool
:
public
extends<AthAlgTool, IL1TriggerByteStreamTool> {
28
public
:
29
ExampleL1TriggerByteStreamTool
(
const
std::string&
type
,
const
std::string& name,
const
IInterface* parent);
30
virtual
~ExampleL1TriggerByteStreamTool
()
override
=
default
;
31
32
// ------------------------- IAlgTool methods --------------------------------
33
virtual
StatusCode
initialize
()
override
;
34
35
// ------------------------- IL1TriggerByteStreamTool methods ----------------
37
virtual
StatusCode
convertFromBS
(
const
std::vector<const OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment*>& vrobf,
38
const
EventContext& eventContext)
const override
;
40
virtual
StatusCode
convertToBS
(std::vector<OFFLINE_FRAGMENTS_NAMESPACE_WRITE::ROBFragment*>& vrobf,
41
const
xAOD::TrigCompositeContainer
*
tc
,
42
const
EventContext& eventContext)
override
;
44
virtual
const
std::vector<uint32_t>&
robIds
()
const override
{
return
m_robIds
.value();}
45
46
private
:
47
// ------------------------- Properties --------------------------------------
48
// ROBIDs property required by the interface
49
Gaudi::Property<std::vector<uint32_t>>
m_robIds
{
50
this
,
"ROBIDs"
, {},
"List of ROB IDs required for conversion to/from xAOD RoI"
};
51
52
// Only write key should be set to non-empty string in python configuration if the tool is in BS->xAOD mode of operation
53
SG::WriteHandleKey<xAOD::MuonRoIContainer>
m_roiWriteKey
{
54
this
,
"MuonRoIContainerWriteKey"
,
""
,
"Write handle key to MuonRoIContainer for conversion from ByteStream"
};
55
// Only read key should be set to non-empty string in python configuration if the tool is in xAOD->BS mode of operation
56
SG::ReadHandleKey<xAOD::MuonRoIContainer>
m_roiReadKey
{
57
this
,
"MuonRoIContainerReadKey"
,
""
,
"Read handle key to MuonRoIContainer for conversion to ByteStream"
};
58
59
};
60
61
#endif
// TRIGT1RESULTBYTESTREAM_EXAMPLEL1TRIGGERBYTESTREAMTOOL_H
AthAlgTool.h
IL1TriggerByteStreamTool.h
tc
static Double_t tc
Definition
LArPhysWaveHECTool.cxx:38
MuonRoIContainer.h
ExampleL1TriggerByteStreamTool::convertToBS
virtual StatusCode convertToBS(std::vector< OFFLINE_FRAGMENTS_NAMESPACE_WRITE::ROBFragment * > &vrobf, const xAOD::TrigCompositeContainer *tc, const EventContext &eventContext) override
xAOD->BS conversion
Definition
ExampleL1TriggerByteStreamTool.cxx:79
ExampleL1TriggerByteStreamTool::m_roiReadKey
SG::ReadHandleKey< xAOD::MuonRoIContainer > m_roiReadKey
Definition
ExampleL1TriggerByteStreamTool.h:56
ExampleL1TriggerByteStreamTool::convertFromBS
virtual StatusCode convertFromBS(const std::vector< const OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment * > &vrobf, const EventContext &eventContext) const override
BS->xAOD conversion.
Definition
ExampleL1TriggerByteStreamTool.cxx:37
ExampleL1TriggerByteStreamTool::ExampleL1TriggerByteStreamTool
ExampleL1TriggerByteStreamTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
ExampleL1TriggerByteStreamTool.cxx:21
ExampleL1TriggerByteStreamTool::m_robIds
Gaudi::Property< std::vector< uint32_t > > m_robIds
Definition
ExampleL1TriggerByteStreamTool.h:49
ExampleL1TriggerByteStreamTool::~ExampleL1TriggerByteStreamTool
virtual ~ExampleL1TriggerByteStreamTool() override=default
ExampleL1TriggerByteStreamTool::initialize
virtual StatusCode initialize() override
Definition
ExampleL1TriggerByteStreamTool.cxx:26
ExampleL1TriggerByteStreamTool::m_roiWriteKey
SG::WriteHandleKey< xAOD::MuonRoIContainer > m_roiWriteKey
Definition
ExampleL1TriggerByteStreamTool.h:53
ExampleL1TriggerByteStreamTool::robIds
virtual const std::vector< uint32_t > & robIds() const override
Declare ROB IDs for conversion.
Definition
ExampleL1TriggerByteStreamTool.h:44
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
xAOD::TrigCompositeContainer
TrigCompositeContainer_v1 TrigCompositeContainer
Declare the latest version of the container.
Definition
TrigCompositeContainer.h:17
type
Generated on
for ATLAS Offline Software by
1.17.0