ATLAS Offline Software
Loading...
Searching...
No Matches
L1TopoROD.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_L1TOPOROD_H
6#define L1TOPORDO_L1TOPOROD_H
7
8#include <cstdint>
9#include <iostream>
10
11
12namespace L1Topo {
13
14 class L1TopoROD {
15 public:
17 L1TopoROD(const uint32_t trailer1, const uint32_t trailer2);
19 uint32_t rodTrailer1() const;
20 uint32_t rodTrailer2() const;
21 uint32_t shelf() const;
22 uint32_t rod() const;
23 uint32_t linkErrMap() const;
24 uint32_t payloadLength() const;
25 uint32_t crc() const;
26 bool linkErrs() const;
27 bool ct() const;
28 bool pc() const;
29 bool hc() const;
30 bool pe() const;
31 bool lm() const;
32 bool hm() const;
33 bool pt() const;
34
35 protected:
37 void decode();
38 private:
40 uint32_t m_rodTrailer1;
41 uint32_t m_rodTrailer2;
42
43 uint32_t m_shelf;
44 uint32_t m_rod;
45 uint32_t m_linkErrMap;
47
48 uint32_t m_crc;
50 bool m_ct;
51 bool m_pc;
52 bool m_hc;
53 bool m_pe;
54 bool m_lm;
55 bool m_hm;
56 bool m_pt;
57 };
58 std::ostream& operator<<(std::ostream&, const L1TopoROD&);
59
60} // namespace L1Topo
61
62#endif // L1TOPORDO_L1TOPOROD_H
uint32_t shelf() const
Definition L1TopoROD.cxx:41
bool hm() const
Definition L1TopoROD.cxx:85
bool pc() const
Definition L1TopoROD.cxx:69
uint32_t crc() const
Definition L1TopoROD.cxx:57
uint32_t payloadLength() const
Definition L1TopoROD.cxx:53
L1TopoROD(const uint32_t trailer1, const uint32_t trailer2)
Construct from contents and decode trailers.
Definition L1TopoROD.cxx:11
void decode()
method used by constructor to decode word
Definition L1TopoROD.cxx:16
bool ct() const
Definition L1TopoROD.cxx:65
uint32_t rod() const
Definition L1TopoROD.cxx:45
uint32_t m_payloadLength
Definition L1TopoROD.h:46
bool pt() const
Definition L1TopoROD.cxx:89
uint32_t m_linkErrMap
Definition L1TopoROD.h:45
uint32_t m_rodTrailer1
variables
Definition L1TopoROD.h:40
bool pe() const
Definition L1TopoROD.cxx:77
uint32_t linkErrMap() const
Definition L1TopoROD.cxx:49
uint32_t rodTrailer2() const
Definition L1TopoROD.cxx:37
uint32_t rodTrailer1() const
access methods
Definition L1TopoROD.cxx:33
bool lm() const
Definition L1TopoROD.cxx:81
bool hc() const
Definition L1TopoROD.cxx:73
bool linkErrs() const
Definition L1TopoROD.cxx:61
uint32_t m_shelf
Definition L1TopoROD.h:43
uint32_t m_rodTrailer2
Definition L1TopoROD.h:41
std::ostream & operator<<(std::ostream &, const Error)
Helper to print errors as text rather than numbers.
Definition Error.cxx:8