ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
ByteStreamData
src
ROBData_t.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
6
#ifndef XAOD_ANALYSIS
7
#include "
ByteStreamData/ROBData.h
"
8
#include "
ByteStreamData/RawEvent.h
"
9
10
// Test at compiler time ROBData class
11
12
namespace
ByteStreamDataTest
{
13
14
void
ROBDataT
(
OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment
* robFrag) {
15
16
using
IT = ROBData::iterator;
17
18
ROBData
* robData =
new
ROBData
(robFrag);
19
ROBData
robData2 = *robData;
20
21
for
(IT it = robData->
begin
(), it_e = robData->
end
(); it != it_e; ++it) {
22
[[maybe_unused]] uint32_t i = (*it);
23
++i;
24
}
25
26
robData->
sub_detector
();
27
robData->
module_identifier
();
28
robData2.
sub_detector
();
29
30
delete
robData;
31
robData =
nullptr
;
32
return
;
33
}
34
}
35
#endif
ROBData.h
Defines the ROB data entity. The ROB data is an abstract entity that is used to decouple the raw even...
ROBData
ROBData_T< OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment, OFFLINE_FRAGMENTS_NAMESPACE::PointerType > ROBData
Definition
ROBData.h:225
RawEvent.h
ROBData_T::sub_detector
eformat::SubDetector sub_detector() const
Return the current subdetector type.
Definition
ROBData.h:166
ROBData_T::end
iterator end() const
Instantiates an iterator over 32-bit integers to the last+1 element.
Definition
ROBData.h:161
ROBData_T::module_identifier
uint16_t module_identifier() const
Return the current module identifier.
Definition
ROBData.h:172
ROBData_T::begin
iterator begin() const
Instantiates an iterator over 32-bit integers to the first element.
Definition
ROBData.h:156
ByteStreamDataTest
Definition
ROBData_t.cxx:12
ByteStreamDataTest::ROBDataT
void ROBDataT(OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment *robFrag)
Definition
ROBData_t.cxx:14
OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment
eformat::ROBFragment< PointerType > ROBFragment
Definition
RawEvent.h:27
Generated on
for ATLAS Offline Software by
1.17.0