ATLAS Offline Software
InnerDetector
InDetDetDescr
ITkStripCabling
src
ITkStripOnlineId.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
6
#include "
ITkStripCabling/ITkStripOnlineId.h
"
7
#include <iostream>
8
9
ITkStripOnlineId::ITkStripOnlineId
(
const
std::uint32_t
onlineId):m_onlineId(onlineId){
10
//nop
11
}
12
13
14
ITkStripOnlineId::ITkStripOnlineId
(
const
std::uint32_t
rodId,
const
std::uint32_t
fibre){
15
m_onlineId
= rodId + (
fibre
<<24);
16
}
17
18
std::uint32_t
19
ITkStripOnlineId::rod
()
const
{
20
return
m_onlineId
& 0xFFFFFF;
21
}
22
23
//
24
std::uint32_t
25
ITkStripOnlineId::fibre
()
const
{
26
return
m_onlineId
>>24;
27
}
28
29
bool
30
ITkStripOnlineId::isValid
()
const
{
31
return
m_onlineId
!=
INVALID_ONLINE_ID
;
32
}
33
34
std::ostream&
operator<<
(std::ostream &
os
,
const
ITkStripOnlineId
&
id
){
35
os
<<std::hex<<std::showbase<<
id
.m_onlineId<<std::dec<<std::noshowbase;
36
return
os
;
37
}
ITkStripOnlineId::rod
std::uint32_t rod() const
Return the rod/rob Id.
Definition:
ITkStripOnlineId.cxx:19
xAOD::uint32_t
setEventNumber uint32_t
Definition:
EventInfo_v1.cxx:127
ITkStripOnlineId::isValid
bool isValid() const
Definition:
ITkStripOnlineId.cxx:30
ITkStripOnlineId::fibre
std::uint32_t fibre() const
Return the fibre.
Definition:
ITkStripOnlineId.cxx:25
ITkStripOnlineId::INVALID_ONLINE_ID
@ INVALID_ONLINE_ID
Definition:
ITkStripOnlineId.h:38
ITkStripOnlineId::m_onlineId
std::uint32_t m_onlineId
Definition:
ITkStripOnlineId.h:41
ITkStripOnlineId.h
ReadFromCoolCompare.os
os
Definition:
ReadFromCoolCompare.py:231
ITkStripOnlineId::ITkStripOnlineId
ITkStripOnlineId()=default
Default constructor produces an invalid serial number.
ITkStripOnlineId
Definition:
ITkStripOnlineId.h:16
operator<<
std::ostream & operator<<(std::ostream &os, const ITkStripOnlineId &id)
Definition:
ITkStripOnlineId.cxx:34
Generated on Thu Nov 7 2024 21:17:38 for ATLAS Offline Software by
1.8.18