ATLAS Offline Software
Loading...
Searching...
No Matches
L1TopoFPGA.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef L1TOPORDO_L1TOPOFPGA_H
6#define L1TOPORDO_L1TOPOFPGA_H
7
8#include <cstdint>
9#include <iostream>
10
11
12namespace L1Topo {
13
14 class L1TopoFPGA {
15 public:
17 L1TopoFPGA(const uint32_t trailer1, const uint32_t trailer2);
19 uint32_t fpgaTrailer1() const;
20 uint32_t fpgaTrailer2() const;
21 size_t fpgaBlockSize() const;
22 uint32_t topoNumber() const;
23 uint32_t fpgaNumber() const;
24 uint32_t numSlices() const;
25 uint32_t sliceNumber() const;
26 uint32_t crc() const;
27 bool ct() const;
28 bool sm() const;
29 bool pe() const;
30 bool lm() const;
31 bool hm() const;
32 bool pt() const;
33
34 protected:
36 void decode();
37 private:
41
43
44 uint32_t m_topoNumber;
45 uint32_t m_fpgaNumber;
46 uint32_t m_numSlices;
47 uint32_t m_sliceNumber;
48 uint32_t m_crc;
49
50 bool m_ct;
51 bool m_sm;
52 bool m_pe;
53 bool m_lm;
54 bool m_hm;
55 bool m_pt;
56
57 };
58 std::ostream& operator<<(std::ostream&, const L1TopoFPGA&);
59
60} // namespace L1Topo
61
62#endif // L1TOPORDO_L1TOPOFPGA_H
uint32_t m_fpgaNumber
Definition L1TopoFPGA.h:45
uint32_t m_fpgaTrailer2
Definition L1TopoFPGA.h:40
bool sm() const
uint32_t fpgaNumber() const
void decode()
method used by constructor to decode word
uint32_t m_sliceNumber
Definition L1TopoFPGA.h:47
uint32_t crc() const
size_t fpgaBlockSize() const
uint32_t fpgaTrailer1() const
access methods
bool ct() const
L1TopoFPGA(const uint32_t trailer1, const uint32_t trailer2)
Construct from contents and decode trailers.
uint32_t topoNumber() const
bool lm() const
bool pe() const
uint32_t m_fpgaTrailer1
variables
Definition L1TopoFPGA.h:39
uint32_t m_topoNumber
Definition L1TopoFPGA.h:44
uint32_t fpgaTrailer2() const
bool pt() const
uint32_t numSlices() const
uint32_t m_numSlices
Definition L1TopoFPGA.h:46
uint32_t sliceNumber() const
bool hm() const
std::ostream & operator<<(std::ostream &, const Error)
Helper to print errors as text rather than numbers.
Definition Error.cxx:8