ATLAS Offline Software
Loading...
Searching...
No Matches
OnlineIdGenerator.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef OnlineIdGenerator_h
6#define OnlineIdGenerator_h
7
16#include <cstdint> //uint32_t
17
18
20class Identifier;
21class SCT_ID;
22
23
24
25namespace ITkStripCabling{
27 public:
28 enum RodId : std::uint32_t {
29 BARREL_A = 0x210000,
30 BARREL_C = 0x220000,
31 ENDCAP_A = 0x230000,
32 ENDCAP_C = 0x240000,
33 UNKNOWN = 0xFF0000
34 };
35 static constexpr std::uint32_t INVALID_LINK{0x0000FFFF};
36 OnlineIdGenerator(SCT_ID * pITkIdHelper);
38 //get rod by Identifier
39 std::uint32_t rod(const Identifier & offId) const;
40 //get rod by bec, layer_disk, eta
41 std::uint32_t rod32(int bec, int layer_disk, int phi, int eta=0) const;
42 //get link as lower 16 bits of 32 bit word
43 std::uint32_t barrelLink16(int eta) const;
44 std::uint32_t endcapLink16(int phi) const;
45
46 private:
48
49 };
50}
51
52
53
54
55 #endif
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
std::uint32_t rod(const Identifier &offId) const
std::uint32_t barrelLink16(int eta) const
std::uint32_t rod32(int bec, int layer_disk, int phi, int eta=0) const
ITkStripOnlineId operator()(const Identifier &offId)
static constexpr std::uint32_t INVALID_LINK
std::uint32_t endcapLink16(int phi) const
This is an Identifier helper class for the SCT subdetector.
Definition SCT_ID.h:68