ATLAS Offline Software
Loading...
Searching...
No Matches
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
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 {
43 INVALID_ROD=16777215,
45 };
46
47
48 private:
50
51};
52
53#endif
HGTDOnlineID()=default
friend std::ostream & operator<<(std::ostream &os, const HGTDOnlineID &id)
bool isValid() const
std::uint32_t m_onlineId
auto operator<=>(const HGTDOnlineID &other) const =default
std::uint32_t elink() const
std::uint32_t rod() const