ATLAS Offline Software
Loading...
Searching...
No Matches
L1Topo/L1TopoRDO/L1TopoRDO/L1TopoResult.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 L1TOPORESULT_H
6#define L1TOPORESULT_H
7
10
11//xAOD
13
14//Athena
16
17// System includes
18#include <vector>
19#include <bitset>
20
21/*
22 * This class is for decoding phase1 L1Topo hardware results.
23 *
24 * @author Anil Sonay
25 */
26
27namespace L1Topo {
28
30
31 private:
33 static constexpr size_t s_nTopoOutputs{128};
34
35 public:
36
38
40
42
43 const std::shared_ptr<L1Topo::L1TopoROD> &getROD(unsigned index) const {return m_l1topoROD[index];}
44 const std::shared_ptr<L1Topo::L1TopoFPGA> &getFPGA(unsigned index) const {return m_l1topoFPGA[index];}
45 const std::bitset<s_nTopoOutputs> &getDecisions() const {return m_decisions;}
46 const std::bitset<s_nTopoOutputs> &getOverflows() const {return m_overflows;}
47 const std::bitset<s_nTopoOutputs> &getTopo1Opt0() const {return m_topo1opt0;}
48 const std::bitset<s_nTopoOutputs> &getTopo1Opt1() const {return m_topo1opt1;}
49 const std::bitset<s_nTopoOutputs> &getTopo1Opt2() const {return m_topo1opt2;}
50 const std::bitset<s_nTopoOutputs> &getTopo1Opt3() const {return m_topo1opt3;}
51 bool getStatus() {return m_status;}
52 unsigned getRODSize() {return m_l1topoROD.size();}
53 unsigned getFPGASize() {return m_l1topoFPGA.size();}
54
57
58 private:
59
60 std::vector<std::shared_ptr<L1Topo::L1TopoROD>> m_l1topoROD;
61 std::vector<std::shared_ptr<L1Topo::L1TopoFPGA>> m_l1topoFPGA;
62 std::bitset<s_nTopoOutputs> m_decisions;
63 std::bitset<s_nTopoOutputs> m_overflows;
64 std::bitset<s_nTopoOutputs> m_topo1opt0;
65 std::bitset<s_nTopoOutputs> m_topo1opt1;
66 std::bitset<s_nTopoOutputs> m_topo1opt2;
67 std::bitset<s_nTopoOutputs> m_topo1opt3;
68
70
71
72 };
73} // namespace L1Topo
74
75#endif // L1TOPORESULT_H
An STL vector of pointers that by default owns its pointed-to elements.
Derived DataVector<T>.
Definition DataVector.h:795
std::bitset< s_nTopoOutputs > m_topo1opt3
const std::bitset< s_nTopoOutputs > & getTopo1Opt1() const
const std::shared_ptr< L1Topo::L1TopoROD > & getROD(unsigned index) const
const std::bitset< s_nTopoOutputs > & getOverflows() const
std::bitset< s_nTopoOutputs > m_decisions
std::bitset< s_nTopoOutputs > m_topo1opt0
std::vector< std::shared_ptr< L1Topo::L1TopoFPGA > > m_l1topoFPGA
const std::bitset< s_nTopoOutputs > & getTopo1Opt0() const
std::bitset< s_nTopoOutputs > m_topo1opt2
static constexpr size_t s_nTopoOutputs
Number of topo outputs.
std::vector< std::shared_ptr< L1Topo::L1TopoROD > > m_l1topoROD
void decode(const DataVector< xAOD::L1TopoRawData > &container)
method used by constructor to decode xAOD
const std::bitset< s_nTopoOutputs > & getTopo1Opt2() const
std::bitset< s_nTopoOutputs > m_overflows
const std::bitset< s_nTopoOutputs > & getTopo1Opt3() const
std::bitset< s_nTopoOutputs > m_topo1opt1
const std::bitset< s_nTopoOutputs > & getDecisions() const
const std::shared_ptr< L1Topo::L1TopoFPGA > & getFPGA(unsigned index) const
Definition index.py:1