ATLAS Offline Software
L1TopoTOB.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef L1TOPORDO_L1TOPOTOB_H
6 #define L1TOPORDO_L1TOPOTOB_H
7 
8 #include <iostream>
9 #include <cstdint>
10 
11 namespace L1Topo {
12 
17  class L1TopoTOB {
18  public:
24  L1TopoTOB(const uint32_t word);
26  uint32_t ctp_signal() const;
28  uint32_t overflow_bits() const;
30  uint32_t trigger_bits() const;
32  uint32_t word() const;
34  uint32_t index() const;
36  uint32_t clock() const;
38  uint32_t fpga() const;
40  uint32_t error_bits() const;
42  bool crc_EM() const;
44  bool crc_Tau() const;
46  bool crc_Muon() const;
48  bool crc_Jet() const;
50  bool crc_Energy() const;
51  protected:
53  void decode();
55  void encode();
56  private:
62  };
63 
65  std::ostream& operator<<(std::ostream&, const L1TopoTOB&);
66 
68  bool operator==(const L1TopoTOB&, const L1TopoTOB&);
70  bool operator!=(const L1TopoTOB&, const L1TopoTOB&);
72  bool operator< (const L1TopoTOB&, const L1TopoTOB&);
74  bool operator> (const L1TopoTOB&, const L1TopoTOB&);
75 
76 } // namespace L1Topo
77 
78 
79 #endif // L1TOPORDO_L1TOPOTOB_H
L1Topo::L1TopoTOB::m_overflow_bits
uint32_t m_overflow_bits
Definition: L1TopoTOB.h:58
L1Topo::operator<<
std::ostream & operator<<(std::ostream &, const Error)
Helper to print errors as text rather than numbers.
Definition: Error.cxx:8
L1Topo::L1TopoTOB::error_bits
uint32_t error_bits() const
access to five bits which flag CRC errors on the input links. They are available as individual flags ...
Definition: L1TopoTOB.cxx:63
L1Topo::L1TopoTOB::clock
uint32_t clock() const
clock cycle bit, 0 or 1, part ofthe ctp_signal
Definition: L1TopoTOB.cxx:96
L1Topo::L1TopoTOB::m_word
uint32_t m_word
Definition: L1TopoTOB.h:61
L1Topo::L1TopoTOB
Represents the L1Topo TOB word of the L1Topo ROI data, with decode and encoder.
Definition: L1TopoTOB.h:17
L1Topo::L1TopoTOB::crc_Jet
bool crc_Jet() const
flag true if Jet TOB input links have errors (bit 19)
Definition: L1TopoTOB.cxx:75
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
L1Topo::L1TopoTOB::L1TopoTOB
L1TopoTOB(const uint32_t ctp_signal, uint32_t overflow_bits, uint32_t trigger_bits, uint32_t error_bits)
Construct from contents and encode word.
Definition: L1TopoTOB.cxx:14
L1Topo::L1TopoTOB::crc_Energy
bool crc_Energy() const
flag true if Energy TOB input links have errors (bit 20)
Definition: L1TopoTOB.cxx:78
L1Topo::operator!=
bool operator!=(const L1TopoTOB &, const L1TopoTOB &)
Comparison operators, based on word.
Definition: L1TopoTOB.cxx:30
L1Topo::L1TopoTOB::decode
void decode()
method used by constructor to decode word
Definition: L1TopoTOB.cxx:42
L1Topo::L1TopoTOB::encode
void encode()
method used by constructor to encode word
Definition: L1TopoTOB.cxx:51
L1Topo::L1TopoTOB::index
uint32_t index() const
index bit, 0 or 1, part ofthe ctp_signal
Definition: L1TopoTOB.cxx:93
L1Topo::operator<
bool operator<(const L1TopoTOB &, const L1TopoTOB &)
Comparison operators, based on word.
Definition: L1TopoTOB.cxx:33
L1Topo::L1TopoTOB::m_error_bits
uint32_t m_error_bits
Definition: L1TopoTOB.h:60
L1Topo::L1TopoTOB::crc_EM
bool crc_EM() const
flag true if EM TOB input links have errors (bit 16)
Definition: L1TopoTOB.cxx:66
L1Topo::operator==
bool operator==(const L1TopoTOB &, const L1TopoTOB &)
Comparison operators, based on word.
Definition: L1TopoTOB.cxx:27
L1Topo::L1TopoTOB::m_trigger_bits
uint32_t m_trigger_bits
Definition: L1TopoTOB.h:59
L1Topo::L1TopoTOB::m_ctp_signal
uint32_t m_ctp_signal
Definition: L1TopoTOB.h:57
L1Topo::L1TopoTOB::trigger_bits
uint32_t trigger_bits() const
accessor method for trigger bits
Definition: L1TopoTOB.cxx:84
L1Topo::L1TopoTOB::overflow_bits
uint32_t overflow_bits() const
accessor method for overflow bits
Definition: L1TopoTOB.cxx:81
L1Topo::L1TopoTOB::crc_Muon
bool crc_Muon() const
flag true if Muon TOB input links have errors (bit 18)
Definition: L1TopoTOB.cxx:72
L1Topo::L1TopoTOB::fpga
uint32_t fpga() const
fpga number bit , 0 or 1, part ofthe ctp_signal
Definition: L1TopoTOB.cxx:99
L1Topo::L1TopoTOB::crc_Tau
bool crc_Tau() const
flag true if Tau TOB input links have errors (bit 17)
Definition: L1TopoTOB.cxx:69
L1Topo
Definition: BlockTypes.h:11
L1Topo::L1TopoTOB::ctp_signal
uint32_t ctp_signal() const
access method for ctp signal bits
Definition: L1TopoTOB.cxx:60
L1Topo::operator>
bool operator>(const L1TopoTOB &, const L1TopoTOB &)
Comparison operators, based on word.
Definition: L1TopoTOB.cxx:36
L1Topo::L1TopoTOB::word
uint32_t word() const
accessor method for data word
Definition: L1TopoTOB.cxx:87