ATLAS Offline Software
InnerDetector
InDetDetDescr
ITkStripCabling
ITkStripCabling
ITkStripOnlineId.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 ITkStripOnlineId_h
5
#define ITkStripOnlineId_h
6
12
#include <cstdint>
13
#include <iosfwd>
14
#include <compare>
15
16
class
ITkStripOnlineId
{
17
public
:
19
friend
std::ostream&
operator<<
(std::ostream &
os
,
const
ITkStripOnlineId
&
id
);
21
ITkStripOnlineId
() =
default
;
23
ITkStripOnlineId
(
const
std::uint32_t
onlineId);
25
ITkStripOnlineId
(
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
ITkStripOnlineId
&
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
ITkStripOnlineId::rod
std::uint32_t rod() const
Return the rod/rob Id.
Definition:
ITkStripOnlineId.cxx:19
CaloCellPos2Ntuple.int
int
Definition:
CaloCellPos2Ntuple.py:24
xAOD::uint32_t
setEventNumber uint32_t
Definition:
EventInfo_v1.cxx:127
ITkStripOnlineId::INVALID_ROD
@ INVALID_ROD
Definition:
ITkStripOnlineId.h:38
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::operator<<
friend std::ostream & operator<<(std::ostream &os, const ITkStripOnlineId &id)
representation for debugging, messages
Definition:
ITkStripOnlineId.cxx:34
ITkStripOnlineId::INVALID_FIBRE
@ INVALID_FIBRE
Definition:
ITkStripOnlineId.h:38
ReadFromCoolCompare.os
os
Definition:
ReadFromCoolCompare.py:231
InDetDD::other
@ other
Definition:
InDetDD_Defs.h:16
ITkStripOnlineId::ITkStripOnlineId
ITkStripOnlineId()=default
Default constructor produces an invalid serial number.
ITkStripOnlineId
Definition:
ITkStripOnlineId.h:16
Generated on Thu Nov 7 2024 21:17:38 for ATLAS Offline Software by
1.8.18