ATLAS Offline Software
ROBData_t.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
6 #ifndef XAOD_ANALYSIS
9 
10 // Test at compiler time ROBData class
11 
12 namespace ByteStreamDataTest {
13 
15 
16  typedef ROBData::iterator IT;
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; robData = 0;
31  return;
32  }
33 }
34 #endif
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
ROBData
ROBData_T< OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment, OFFLINE_FRAGMENTS_NAMESPACE::PointerType > ROBData
Definition: ROBData.h:225
ROBData.h
Defines the ROB data entity. The ROB data is an abstract entity that is used to discase the raw event...
ROBData_T
templete data class to wrap ROB fragment for accessing ROD data
Definition: ROBData.h:46
skel.it
it
Definition: skel.GENtoEVGEN.py:423
ByteStreamDataTest
Definition: ROBData_t.cxx:12
ROBData_T::module_identifier
uint16_t module_identifier() const
Return the current module identifier.
Definition: ROBData.h:172
ROBData_T::end
iterator end(void) const
Instantiates an iterator over 32-bit integers to the last+1 element.
Definition: ROBData.h:161
ROBData_T::begin
iterator begin(void) const
Instantiates an iterator over 32-bit integers to the first element.
Definition: ROBData.h:156
eformat::ROBFragment
Definition: L1CaloBsDecoderUtil.h:12
lumiFormat.i
int i
Definition: lumiFormat.py:92
RawEvent.h
ROBData_T::iterator
This class defines how to iterate over the ROBData_T, in different formats.
Definition: ROBData.h:88
ROBData_T::sub_detector
eformat::SubDetector sub_detector() const
Return the current subdetector type.
Definition: ROBData.h:166
ByteStreamDataTest::ROBDataT
void ROBDataT(OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment *robFrag)
Definition: ROBData_t.cxx:14