ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
TrigT1ResultByteStream
src
CTPResultByteStreamTool.h
Go to the documentation of this file.
1
// Dear emacs, this is -*- c++ -*-
2
3
/*
4
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
#ifndef TRIGT1RESULTBYTESTREAM_CTPRESULTBYTESTREAMTOOL_H
8
#define TRIGT1RESULTBYTESTREAM_CTPRESULTBYTESTREAMTOOL_H
9
10
// Trigger includes
11
#include "
TrigT1ResultByteStream/IL1TriggerByteStreamTool.h
"
12
#include "
xAODTrigger/CTPResult.h
"
13
14
// Gaudi/Athena include(s):
15
#include "
AthenaBaseComps/AthAlgTool.h
"
16
21
class
CTPResultByteStreamTool
:
public
extends<AthAlgTool, IL1TriggerByteStreamTool> {
22
23
public
:
24
25
// To use base class functions (e.g. constructor)
26
using
base_class::base_class;
27
28
// ------------------------- IAlgTool methods --------------------------------
29
virtual
StatusCode
initialize
()
override
;
30
31
// ------------------------- IL1TriggerByteStreamTool methods ----------------
32
33
// BS->xAOD conversion
34
virtual
StatusCode
convertFromBS
(
const
std::vector<const OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment*>& vrobf,
const
EventContext& eventContext)
const override
;
35
36
// xAOD->BS conversion
37
virtual
StatusCode
convertToBS
(std::vector<OFFLINE_FRAGMENTS_NAMESPACE_WRITE::ROBFragment*>& vrobf,
38
const
xAOD::TrigCompositeContainer
*
tc
,
39
const
EventContext& eventContext)
override
;
40
41
// Declare ROB IDs for conversion
42
virtual
const
std::vector<uint32_t>&
robIds
()
const override
{
return
m_robIds
.value();}
43
44
private
:
45
46
// ------------------------- Private types -----------------------------------
47
// Struct holding the status words and rob/rod error flags
48
struct
DataStatus
{
49
bool
rob_error
{
false
};
50
bool
rod_error
{
false
};
51
uint32_t
status_word
{0};
52
uint32_t
status_info
{0};
53
};
54
55
// ------------------------- Data handles ------------------------------------
56
SG::ReadHandleKey<xAOD::CTPResult>
m_inKeyCTPResult
{
this
,
"CTPResultReadKey"
,
""
,
"Read handle key to CTPResult for conversion to ByteStream"
};
57
SG::WriteHandleKey<xAOD::CTPResult>
m_outKeyCTPResult
{
this
,
"CTPResultWriteKey"
,
""
,
"Write handle key to CTPResult for conversion from ByteStream"
};
58
59
// ------------------------- Other properties --------------------------------
60
Gaudi::Property<std::vector<uint32_t>>
m_robIds
{
this
,
"ROBIDs"
, {},
"List of ROB IDs required for conversion to/from xAOD"
};
61
Gaudi::Property<uint16_t>
m_detEvType
{
this
,
"DetEvType"
, 1,
"Detector event type to write when converting to ByteStream"
};
62
63
};
// class CTPResultByteStreamTool
64
65
#endif
// TRIGT1RESULTBYTESTREAM_CTPRESULTBYTESTREAMTOOL_H
AthAlgTool.h
CTPResult.h
IL1TriggerByteStreamTool.h
tc
static Double_t tc
Definition
LArPhysWaveHECTool.cxx:38
CTPResultByteStreamTool
Tool for converting CTP ROB from BS to xAOD::CTPResult and from xAOD::CTPResult to BS (IL1TriggerByte...
Definition
CTPResultByteStreamTool.h:21
CTPResultByteStreamTool::initialize
virtual StatusCode initialize() override
Definition
CTPResultByteStreamTool.cxx:29
CTPResultByteStreamTool::m_detEvType
Gaudi::Property< uint16_t > m_detEvType
Definition
CTPResultByteStreamTool.h:61
CTPResultByteStreamTool::m_robIds
Gaudi::Property< std::vector< uint32_t > > m_robIds
Definition
CTPResultByteStreamTool.h:60
CTPResultByteStreamTool::m_inKeyCTPResult
SG::ReadHandleKey< xAOD::CTPResult > m_inKeyCTPResult
Definition
CTPResultByteStreamTool.h:56
CTPResultByteStreamTool::convertToBS
virtual StatusCode convertToBS(std::vector< OFFLINE_FRAGMENTS_NAMESPACE_WRITE::ROBFragment * > &vrobf, const xAOD::TrigCompositeContainer *tc, const EventContext &eventContext) override
Definition
CTPResultByteStreamTool.cxx:182
CTPResultByteStreamTool::m_outKeyCTPResult
SG::WriteHandleKey< xAOD::CTPResult > m_outKeyCTPResult
Definition
CTPResultByteStreamTool.h:57
CTPResultByteStreamTool::robIds
virtual const std::vector< uint32_t > & robIds() const override
Definition
CTPResultByteStreamTool.h:42
CTPResultByteStreamTool::convertFromBS
virtual StatusCode convertFromBS(const std::vector< const OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment * > &vrobf, const EventContext &eventContext) const override
Definition
CTPResultByteStreamTool.cxx:47
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
CTPResultByteStreamTool::DataStatus
Definition
CTPResultByteStreamTool.h:48
CTPResultByteStreamTool::DataStatus::rob_error
bool rob_error
Definition
CTPResultByteStreamTool.h:49
CTPResultByteStreamTool::DataStatus::status_word
uint32_t status_word
Definition
CTPResultByteStreamTool.h:51
CTPResultByteStreamTool::DataStatus::status_info
uint32_t status_info
Definition
CTPResultByteStreamTool.h:52
CTPResultByteStreamTool::DataStatus::rod_error
bool rod_error
Definition
CTPResultByteStreamTool.h:50
Generated on
for ATLAS Offline Software by
1.17.0