ATLAS Offline Software
Loading...
Searching...
No Matches
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
11namespace L1Topo {
12
17 class L1TopoTOB {
18 public:
20 L1TopoTOB(const uint32_t ctp_signal, uint32_t overflow_bits, uint32_t trigger_bits, uint32_t error_bits);
22 L1TopoTOB(const uint32_t ctp_signal, uint32_t overflow_bits, uint32_t trigger_bits);
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:
57 uint32_t m_ctp_signal;
58 uint32_t m_overflow_bits;
59 uint32_t m_trigger_bits;
60 uint32_t m_error_bits;
61 uint32_t m_word;
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
Represents the L1Topo TOB word of the L1Topo ROI data, with decode and encoder.
Definition L1TopoTOB.h:17
bool crc_Tau() const
flag true if Tau TOB input links have errors (bit 17)
Definition L1TopoTOB.cxx:69
bool crc_Jet() const
flag true if Jet TOB input links have errors (bit 19)
Definition L1TopoTOB.cxx:75
uint32_t clock() const
clock cycle bit, 0 or 1, part ofthe ctp_signal
Definition L1TopoTOB.cxx:96
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
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
bool crc_Muon() const
flag true if Muon TOB input links have errors (bit 18)
Definition L1TopoTOB.cxx:72
void encode()
method used by constructor to encode word
Definition L1TopoTOB.cxx:51
uint32_t m_ctp_signal
Definition L1TopoTOB.h:57
uint32_t m_error_bits
Definition L1TopoTOB.h:60
uint32_t m_overflow_bits
Definition L1TopoTOB.h:58
uint32_t overflow_bits() const
accessor method for overflow bits
Definition L1TopoTOB.cxx:81
uint32_t index() const
index bit, 0 or 1, part ofthe ctp_signal
Definition L1TopoTOB.cxx:93
uint32_t m_word
Definition L1TopoTOB.h:61
uint32_t m_trigger_bits
Definition L1TopoTOB.h:59
uint32_t ctp_signal() const
access method for ctp signal bits
Definition L1TopoTOB.cxx:60
uint32_t fpga() const
fpga number bit , 0 or 1, part ofthe ctp_signal
Definition L1TopoTOB.cxx:99
uint32_t word() const
accessor method for data word
Definition L1TopoTOB.cxx:87
uint32_t trigger_bits() const
accessor method for trigger bits
Definition L1TopoTOB.cxx:84
void decode()
method used by constructor to decode word
Definition L1TopoTOB.cxx:42
bool crc_Energy() const
flag true if Energy TOB input links have errors (bit 20)
Definition L1TopoTOB.cxx:78
bool crc_EM() const
flag true if EM TOB input links have errors (bit 16)
Definition L1TopoTOB.cxx:66
bool operator!=(const L1TopoTOB &, const L1TopoTOB &)
Comparison operators, based on word.
Definition L1TopoTOB.cxx:30
bool operator<(const L1TopoTOB &, const L1TopoTOB &)
Comparison operators, based on word.
Definition L1TopoTOB.cxx:33
bool operator>(const L1TopoTOB &, const L1TopoTOB &)
Comparison operators, based on word.
Definition L1TopoTOB.cxx:36
std::ostream & operator<<(std::ostream &, const Error)
Helper to print errors as text rather than numbers.
Definition Error.cxx:8
bool operator==(const L1TopoTOB &, const L1TopoTOB &)
Comparison operators, based on word.
Definition L1TopoTOB.cxx:27