ATLAS Offline Software
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 
12 namespace 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:
42 
47 
49  bool m_linkErrs;
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
L1Topo::L1TopoROD::m_linkErrs
bool m_linkErrs
Definition: L1TopoROD.h:49
L1Topo::operator<<
std::ostream & operator<<(std::ostream &, const Error)
Helper to print errors as text rather than numbers.
Definition: Error.cxx:8
L1Topo::L1TopoROD::ct
bool ct() const
Definition: L1TopoROD.cxx:65
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
L1Topo::L1TopoROD::payloadLength
uint32_t payloadLength() const
Definition: L1TopoROD.cxx:53
L1Topo::L1TopoROD::m_rodTrailer1
uint32_t m_rodTrailer1
variables
Definition: L1TopoROD.h:40
L1Topo::L1TopoROD::m_crc
uint32_t m_crc
Definition: L1TopoROD.h:48
L1Topo::L1TopoROD::lm
bool lm() const
Definition: L1TopoROD.cxx:81
L1Topo::L1TopoROD::pc
bool pc() const
Definition: L1TopoROD.cxx:69
L1Topo::L1TopoROD::m_ct
bool m_ct
Definition: L1TopoROD.h:50
L1Topo::L1TopoROD::pe
bool pe() const
Definition: L1TopoROD.cxx:77
L1Topo::L1TopoROD::m_shelf
uint32_t m_shelf
Definition: L1TopoROD.h:43
L1Topo::L1TopoROD::m_hc
bool m_hc
Definition: L1TopoROD.h:52
L1Topo::L1TopoROD::m_pc
bool m_pc
Definition: L1TopoROD.h:51
L1Topo::L1TopoROD::pt
bool pt() const
Definition: L1TopoROD.cxx:89
L1Topo::L1TopoROD::m_pe
bool m_pe
Definition: L1TopoROD.h:53
L1Topo::L1TopoROD::rodTrailer2
uint32_t rodTrailer2() const
Definition: L1TopoROD.cxx:37
L1Topo::L1TopoROD::m_pt
bool m_pt
Definition: L1TopoROD.h:56
L1Topo::L1TopoROD
Definition: L1TopoROD.h:14
L1Topo::L1TopoROD::L1TopoROD
L1TopoROD(const uint32_t trailer1, const uint32_t trailer2)
Construct from contents and decode trailers.
Definition: L1TopoROD.cxx:11
L1Topo::L1TopoROD::m_rodTrailer2
uint32_t m_rodTrailer2
Definition: L1TopoROD.h:41
L1Topo::L1TopoROD::hm
bool hm() const
Definition: L1TopoROD.cxx:85
L1Topo::L1TopoROD::shelf
uint32_t shelf() const
Definition: L1TopoROD.cxx:41
L1Topo::L1TopoROD::linkErrMap
uint32_t linkErrMap() const
Definition: L1TopoROD.cxx:49
L1Topo::L1TopoROD::m_payloadLength
uint32_t m_payloadLength
Definition: L1TopoROD.h:46
L1Topo::L1TopoROD::m_linkErrMap
uint32_t m_linkErrMap
Definition: L1TopoROD.h:45
L1Topo::L1TopoROD::m_rod
uint32_t m_rod
Definition: L1TopoROD.h:44
L1Topo::L1TopoROD::m_lm
bool m_lm
Definition: L1TopoROD.h:54
L1Topo::L1TopoROD::m_hm
bool m_hm
Definition: L1TopoROD.h:55
L1Topo::L1TopoROD::decode
void decode()
method used by constructor to decode word
Definition: L1TopoROD.cxx:16
L1Topo::L1TopoROD::linkErrs
bool linkErrs() const
Definition: L1TopoROD.cxx:61
L1Topo::L1TopoROD::hc
bool hc() const
Definition: L1TopoROD.cxx:73
L1Topo::L1TopoROD::crc
uint32_t crc() const
Definition: L1TopoROD.cxx:57
L1Topo
Definition: BlockTypes.h:11
L1Topo::L1TopoROD::rod
uint32_t rod() const
Definition: L1TopoROD.cxx:45
L1Topo::L1TopoROD::rodTrailer1
uint32_t rodTrailer1() const
access methods
Definition: L1TopoROD.cxx:33