ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
TrigT1CaloByteStream
src
RodHeaderByteStreamTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TRIGT1CALOBYTESTREAM_RODHEADERBYTESTREAMTOOL_H
6
#define TRIGT1CALOBYTESTREAM_RODHEADERBYTESTREAMTOOL_H
7
8
#include <stdint.h>
9
10
#include <string>
11
#include <vector>
12
13
#include "eformat/SourceIdentifier.h"
14
#include "GaudiKernel/ToolHandle.h"
15
16
#include "
L1CaloSrcIdMap.h
"
17
#include "
AthenaBaseComps/AthAlgTool.h
"
18
#include "
ByteStreamCnvSvcBase/IROBDataProviderSvc.h
"
19
#include "
ByteStreamData/RawEvent.h
"
20
#include "
AthContainers/DataVector.h
"
21
22
class
IInterface;
23
class
InterfaceID;
24
class
StatusCode
;
25
class
IROBDataProviderSvc
;
26
27
namespace
LVL1
{
28
class
RODHeader
;
29
}
30
31
namespace
LVL1BS
{
32
33
class
L1CaloErrorByteStreamTool
;
34
class
L1CaloSrcIdMap
;
35
42
43
class
RodHeaderByteStreamTool
:
public
AthAlgTool
{
44
45
public
:
46
RodHeaderByteStreamTool
(
const
std::string&
type
,
const
std::string& name,
47
const
IInterface* parent);
48
virtual
~RodHeaderByteStreamTool
();
49
51
static
const
InterfaceID&
interfaceID
();
52
53
virtual
StatusCode
initialize
()
override
;
54
virtual
StatusCode
finalize
()
override
;
55
57
StatusCode
convert
(
const
EventContext& ctx,
58
const
std::string& name,
59
DataVector<LVL1::RODHeader>
* rhCollection)
const
;
60
61
StatusCode
convert
(
const
IROBDataProviderSvc::VROBFRAG
& robFrags,
62
DataVector<LVL1::RODHeader>
* rhCollection)
const
;
63
65
const
std::vector<uint32_t>&
sourceIDs
(
const
std::string& sgKey)
const
;
66
67
private
:
68
typedef
DataVector<LVL1::RODHeader>
RodHeaderCollection
;
69
typedef
IROBDataProviderSvc::VROBFRAG::const_iterator
ROBIterator
;
70
typedef
OFFLINE_FRAGMENTS_NAMESPACE::PointerType
ROBPointer
;
71
typedef
OFFLINE_FRAGMENTS_NAMESPACE::PointerType
RODPointer
;
72
74
std::vector<uint32_t>
makeAllRobIds
()
const
;
75
std::vector<uint32_t>
76
makeRobIds
(
int
numCrates,
int
crateOffset,
77
const
std::vector<int>& slinks,
int
daqOrRoi,
78
eformat::SubDetector subdet,
79
const
std::vector<uint32_t>& prop)
const
;
80
82
bool
isAppended
(
const
std::string& sgKey,
const
std::string& flag)
const
;
83
85
ServiceHandle<IROBDataProviderSvc>
m_robDataProvider
;
87
ToolHandle<LVL1BS::L1CaloErrorByteStreamTool>
m_errorTool
;
88
90
std::vector<uint32_t>
m_sourceIDsProp
;
91
std::vector<uint32_t>
m_sourceIDsPPProp
;
92
std::vector<uint32_t>
m_sourceIDsCPProp
;
93
std::vector<uint32_t>
m_sourceIDsJEPProp
;
94
std::vector<uint32_t>
m_sourceIDsCPRoIProp
;
95
std::vector<uint32_t>
m_sourceIDsJEPRoIProp
;
96
std::vector<uint32_t>
m_sourceIDsCPRoIBProp
;
97
std::vector<uint32_t>
m_sourceIDsJEPRoIBProp
;
99
const
L1CaloSrcIdMap
m_srcIdMap
;
100
101
bool
m_useSWROD
=
false
;
102
};
103
104
}
// end namespace
105
106
#endif
AthAlgTool.h
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
IROBDataProviderSvc.h
L1CaloSrcIdMap.h
RawEvent.h
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
DataVector
Derived DataVector<T>.
Definition
DataVector.h:795
IROBDataProviderSvc
Interface class for managing ROB for both online and offline.
Definition
IROBDataProviderSvc.h:23
IROBDataProviderSvc::VROBFRAG
std::vector< const ROBF * > VROBFRAG
Definition
IROBDataProviderSvc.h:27
LVL1BS::L1CaloErrorByteStreamTool
Tool to accumulate ROB/ROD unpacking errors.
Definition
L1CaloErrorByteStreamTool.h:29
LVL1BS::L1CaloSrcIdMap
This class provides conversion between Lower level Source ID to higher level source ID for L1Calo Byt...
Definition
L1CaloSrcIdMap.h:24
LVL1BS::RodHeaderByteStreamTool::initialize
virtual StatusCode initialize() override
Definition
RodHeaderByteStreamTool.cxx:86
LVL1BS::RodHeaderByteStreamTool::~RodHeaderByteStreamTool
virtual ~RodHeaderByteStreamTool()
Definition
RodHeaderByteStreamTool.cxx:79
LVL1BS::RodHeaderByteStreamTool::m_errorTool
ToolHandle< LVL1BS::L1CaloErrorByteStreamTool > m_errorTool
Error collection tool.
Definition
RodHeaderByteStreamTool.h:87
LVL1BS::RodHeaderByteStreamTool::m_sourceIDsJEPProp
std::vector< uint32_t > m_sourceIDsJEPProp
Definition
RodHeaderByteStreamTool.h:93
LVL1BS::RodHeaderByteStreamTool::m_sourceIDsCPRoIBProp
std::vector< uint32_t > m_sourceIDsCPRoIBProp
Definition
RodHeaderByteStreamTool.h:96
LVL1BS::RodHeaderByteStreamTool::m_sourceIDsPPProp
std::vector< uint32_t > m_sourceIDsPPProp
Definition
RodHeaderByteStreamTool.h:91
LVL1BS::RodHeaderByteStreamTool::convert
StatusCode convert(const EventContext &ctx, const std::string &name, DataVector< LVL1::RODHeader > *rhCollection) const
Convert ROB fragments to RODHeaders.
Definition
RodHeaderByteStreamTool.cxx:107
LVL1BS::RodHeaderByteStreamTool::makeAllRobIds
std::vector< uint32_t > makeAllRobIds() const
Fill vector with ROB IDs for given sub-detector.
Definition
RodHeaderByteStreamTool.cxx:275
LVL1BS::RodHeaderByteStreamTool::RodHeaderByteStreamTool
RodHeaderByteStreamTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
RodHeaderByteStreamTool.cxx:46
LVL1BS::RodHeaderByteStreamTool::m_sourceIDsCPRoIProp
std::vector< uint32_t > m_sourceIDsCPRoIProp
Definition
RodHeaderByteStreamTool.h:94
LVL1BS::RodHeaderByteStreamTool::m_sourceIDsJEPRoIProp
std::vector< uint32_t > m_sourceIDsJEPRoIProp
Definition
RodHeaderByteStreamTool.h:95
LVL1BS::RodHeaderByteStreamTool::RodHeaderCollection
DataVector< LVL1::RODHeader > RodHeaderCollection
Definition
RodHeaderByteStreamTool.h:68
LVL1BS::RodHeaderByteStreamTool::m_srcIdMap
const L1CaloSrcIdMap m_srcIdMap
Source ID converter.
Definition
RodHeaderByteStreamTool.h:99
LVL1BS::RodHeaderByteStreamTool::ROBIterator
IROBDataProviderSvc::VROBFRAG::const_iterator ROBIterator
Definition
RodHeaderByteStreamTool.h:69
LVL1BS::RodHeaderByteStreamTool::RODPointer
OFFLINE_FRAGMENTS_NAMESPACE::PointerType RODPointer
Definition
RodHeaderByteStreamTool.h:71
LVL1BS::RodHeaderByteStreamTool::m_sourceIDsProp
std::vector< uint32_t > m_sourceIDsProp
ROB source IDs.
Definition
RodHeaderByteStreamTool.h:90
LVL1BS::RodHeaderByteStreamTool::finalize
virtual StatusCode finalize() override
Definition
RodHeaderByteStreamTool.cxx:99
LVL1BS::RodHeaderByteStreamTool::ROBPointer
OFFLINE_FRAGMENTS_NAMESPACE::PointerType ROBPointer
Definition
RodHeaderByteStreamTool.h:70
LVL1BS::RodHeaderByteStreamTool::makeRobIds
std::vector< uint32_t > makeRobIds(int numCrates, int crateOffset, const std::vector< int > &slinks, int daqOrRoi, eformat::SubDetector subdet, const std::vector< uint32_t > &prop) const
Definition
RodHeaderByteStreamTool.cxx:293
LVL1BS::RodHeaderByteStreamTool::interfaceID
static const InterfaceID & interfaceID()
AlgTool InterfaceID.
Definition
RodHeaderByteStreamTool.cxx:39
LVL1BS::RodHeaderByteStreamTool::isAppended
bool isAppended(const std::string &sgKey, const std::string &flag) const
Return true if StoreGate key ends in given string.
Definition
RodHeaderByteStreamTool.cxx:321
LVL1BS::RodHeaderByteStreamTool::m_sourceIDsCPProp
std::vector< uint32_t > m_sourceIDsCPProp
Definition
RodHeaderByteStreamTool.h:92
LVL1BS::RodHeaderByteStreamTool::m_useSWROD
bool m_useSWROD
Definition
RodHeaderByteStreamTool.h:101
LVL1BS::RodHeaderByteStreamTool::m_robDataProvider
ServiceHandle< IROBDataProviderSvc > m_robDataProvider
Service for reading bytestream.
Definition
RodHeaderByteStreamTool.h:85
LVL1BS::RodHeaderByteStreamTool::m_sourceIDsJEPRoIBProp
std::vector< uint32_t > m_sourceIDsJEPRoIBProp
Definition
RodHeaderByteStreamTool.h:97
LVL1BS::RodHeaderByteStreamTool::sourceIDs
const std::vector< uint32_t > & sourceIDs(const std::string &sgKey) const
Return reference to vector with all possible Source Identifiers.
Definition
RodHeaderByteStreamTool.cxx:209
LVL1::RODHeader
ROD Header data and status words.
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h:17
ServiceHandle
Definition
ClusterMakerTool.h:36
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LVL1BS
Definition
ZdcModifySlices.h:10
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition
IZdcDataAccess.h:13
OFFLINE_FRAGMENTS_NAMESPACE::PointerType
const DataType * PointerType
Definition
RawEvent.h:25
type
Generated on
for ATLAS Offline Software by
1.17.0