ATLAS Offline Software
InnerDetector
InDetDetDescr
ITkPixelCabling
ITkPixelCabling
ITkPixelOnlineId.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef ITkPixelOnlineId_h
5
#define ITkPixelOnlineId_h
6
12
#include <cstdint>
13
#include <iosfwd>
14
#include <compare>
15
16
class
ITkPixelOnlineId
{
17
public
:
19
friend
std::ostream&
operator<<
(std::ostream &
os
,
const
ITkPixelOnlineId
&
id
);
21
ITkPixelOnlineId
() =
default
;
23
ITkPixelOnlineId
(
const
std::uint32_t
onlineId);
25
ITkPixelOnlineId
(
const
std::uint32_t
rodId,
const
std::uint32_t
fibre
);
27
std::uint32_t
rod
()
const
;
29
std::uint32_t
fibre
()
const
;
31
explicit
operator
unsigned
int
()
const
{
return
m_onlineId
;}
33
auto
operator<=>(
const
ITkPixelOnlineId
&
other
)
const
=
default
;
34
35
bool
isValid
()
const
;
36
37
enum
{
38
INVALID_FIBRE
=255,
INVALID_ROD
=16777215,
INVALID_ONLINE_ID
=0xFFFFFFFF
39
};
40
private
:
41
std::uint32_t
m_onlineId
{
INVALID_ONLINE_ID
};
42
43
};
44
45
#endif
ITkPixelOnlineId::INVALID_FIBRE
@ INVALID_FIBRE
Definition:
ITkPixelOnlineId.h:38
CaloCellPos2Ntuple.int
int
Definition:
CaloCellPos2Ntuple.py:24
xAOD::uint32_t
setEventNumber uint32_t
Definition:
EventInfo_v1.cxx:127
ITkPixelOnlineId::INVALID_ROD
@ INVALID_ROD
Definition:
ITkPixelOnlineId.h:38
ITkPixelOnlineId::isValid
bool isValid() const
Definition:
ITkPixelOnlineId.cxx:30
ITkPixelOnlineId::operator<<
friend std::ostream & operator<<(std::ostream &os, const ITkPixelOnlineId &id)
representation for debugging, messages
Definition:
ITkPixelOnlineId.cxx:34
ITkPixelOnlineId::ITkPixelOnlineId
ITkPixelOnlineId()=default
Default constructor produces an invalid serial number.
ReadFromCoolCompare.os
os
Definition:
ReadFromCoolCompare.py:231
ITkPixelOnlineId::fibre
std::uint32_t fibre() const
Return the fibre.
Definition:
ITkPixelOnlineId.cxx:25
InDetDD::other
@ other
Definition:
InDetDD_Defs.h:16
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
Generated on Sun Dec 22 2024 21:12:05 for ATLAS Offline Software by
1.8.18