ATLAS Offline Software
ITkPixelOnlineId.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 ITkPixelOnlineId::ITkPixelOnlineId(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 ITkPixelOnlineId & id){
35  os<<std::hex<<std::showbase<<id.m_onlineId<<std::dec<<std::noshowbase;
36  return os;
37 }
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
ITkPixelOnlineId.h
ITkPixelOnlineId::isValid
bool isValid() const
Definition: ITkPixelOnlineId.cxx:30
ITkPixelOnlineId::ITkPixelOnlineId
ITkPixelOnlineId()=default
Default constructor produces an invalid serial number.
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
operator<<
std::ostream & operator<<(std::ostream &os, const ITkPixelOnlineId &id)
Definition: ITkPixelOnlineId.cxx:34
ITkPixelOnlineId::fibre
std::uint32_t fibre() const
Return the fibre.
Definition: ITkPixelOnlineId.cxx:25
ITkPixelOnlineId
Definition: ITkPixelOnlineId.h:16
ITkPixelOnlineId::m_onlineId
std::uint32_t m_onlineId
Definition: ITkPixelOnlineId.h:41
ITkPixelOnlineId::rod
std::uint32_t rod() const
Return the rod/rob Id.
Definition: ITkPixelOnlineId.cxx:19
ITkPixelOnlineId::INVALID_ONLINE_ID
@ INVALID_ONLINE_ID
Definition: ITkPixelOnlineId.h:38