ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
HighGranularityTimingDetector
HGTDMapping
HGTDMapping
HGTDOnlineID.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef HGTDOnlineID_H
5
#define HGTDOnlineID_H
11
12
#include<ostream>
13
#include<cstdint>
14
#include <typeindex>
//provides std::hash
15
16
class
HGTDOnlineID
{
17
public
:
18
friend
std::ostream&
operator<<
(std::ostream & os,
const
HGTDOnlineID
&
id
);
19
20
// Default constructor
21
HGTDOnlineID
() =
default
;
22
23
// Construct from uint32
24
HGTDOnlineID
(
const
std::uint32_t onlineId);
25
26
// construct from RobID and felix elink ?
27
HGTDOnlineID
(
const
std::uint32_t rodId,
const
std::uint32_t
elink
);
28
29
// return ROB/ROD ID
30
std::uint32_t
rod
()
const
;
31
32
// return elink
33
std::uint32_t
elink
()
const
;
34
35
// comparison - spaceship operator
36
auto
operator<=>
(
const
HGTDOnlineID
& other)
const
=
default
;
37
38
// check if the Online ID is valid
39
bool
isValid
()
const
;
40
41
enum
{
42
INVALID_ELINK
=255,
43
INVALID_ROD
=16777215,
44
INVALID_ONLINE_ID
=0xFFFFFFFF
45
};
46
47
48
private
:
49
std::uint32_t
m_onlineId
{
INVALID_ONLINE_ID
};
50
51
};
52
53
#endif
HGTDOnlineID::INVALID_ELINK
@ INVALID_ELINK
Definition
HGTDOnlineID.h:42
HGTDOnlineID::INVALID_ROD
@ INVALID_ROD
Definition
HGTDOnlineID.h:43
HGTDOnlineID::INVALID_ONLINE_ID
@ INVALID_ONLINE_ID
Definition
HGTDOnlineID.h:44
HGTDOnlineID::HGTDOnlineID
HGTDOnlineID()=default
HGTDOnlineID::operator<<
friend std::ostream & operator<<(std::ostream &os, const HGTDOnlineID &id)
Definition
HGTDOnlineID.cxx:29
HGTDOnlineID::isValid
bool isValid() const
Definition
HGTDOnlineID.cxx:25
HGTDOnlineID::m_onlineId
std::uint32_t m_onlineId
Definition
HGTDOnlineID.h:49
HGTDOnlineID::operator<=>
auto operator<=>(const HGTDOnlineID &other) const =default
HGTDOnlineID::elink
std::uint32_t elink() const
Definition
HGTDOnlineID.cxx:21
HGTDOnlineID::rod
std::uint32_t rod() const
Definition
HGTDOnlineID.cxx:17
Generated on
for ATLAS Offline Software by
1.17.0