ATLAS Offline Software
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 
7 #include <iostream>
8 
9 ITkStripOnlineId::ITkStripOnlineId(const std::uint32_t onlineId):m_onlineId(onlineId){
10  //nop
11 }
12 
13 
15  m_onlineId = rodId + (fibre<<24);
16 }
17 
20  return m_onlineId & 0xFFFFFF;
21 }
22 
23 //
26  return m_onlineId>>24;
27 }
28 
29 bool
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::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
ITkStripOnlineId::INVALID_ONLINE_ID
@ INVALID_ONLINE_ID
Definition: ITkStripOnlineId.h:38
operator<<
std::ostream & operator<<(std::ostream &os, const ITkStripOnlineId &id)
Definition: ITkStripOnlineId.cxx:34