ATLAS Offline Software
FrontPanelCTP.h
Go to the documentation of this file.
1 // FrontPanelCTP.h
3 /*
4  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
5 */
6 // Header file for class FrontPanelCTP
7 // Author: S.Binet<binet@cern.ch>
9 #ifndef TRIGT1INTERFACES_FRONTPANELCTP_H
10 #define TRIGT1INTERFACES_FRONTPANELCTP_H 1
11 
12 // STL includes
13 #include <iosfwd>
14 
15 #include <bitset>
16 #include <map>
17 #include <string>
18 
19 // Gaudi includes
20 #include "GaudiKernel/DataObject.h"
21 
22 
23 namespace LVL1 {
35 class FrontPanelCTP: public DataObject {
36 public:
37 
38  // default constructor
39  FrontPanelCTP();
40 
41  // Constructor with parameters:
42  FrontPanelCTP( uint32_t cableword0clock0,
43  uint32_t cableword0clock1,
44  uint32_t cableword1clock0,
45  uint32_t cableword1clock1,
46  uint32_t cableword2clock0,
47  uint32_t cableword2clock1 );
48 
51 
52 
54  void setCableWord0(unsigned int clock, uint32_t data);
55 
57  void setCableWord1(unsigned int clock, uint32_t data);
58 
60  void setCableWord2(unsigned int clock, uint32_t data);
61 
63  void setOptCableWord(const std::string& conn, const std::bitset<128>& data) { m_optcableWord[conn] = data; }
64 
65 
66 
68  uint32_t cableWord0(unsigned int clock) const;
69 
71  uint32_t cableWord1(unsigned int clock) const;
72 
74  uint32_t cableWord2(unsigned int clock) const;
75 
77  std::bitset<128> optcableWord(const std::string& conn) const { return m_optcableWord.find(conn)->second; }
78 
80  // Private data:
82 private:
83  uint32_t m_cableWord0[2] { 0, 0 };
84  uint32_t m_cableWord1[2] { 0, 0 };
85  uint32_t m_cableWord2[2] { 0, 0 };
86 
87  std::map<std::string,std::bitset<128>> m_optcableWord;
88 
89 };
90 
91 
92 } //> end namespace LVL1
93 
94 #include "AthenaKernel/CLASS_DEF.h"
95 CLASS_DEF( LVL1::FrontPanelCTP , 33637034 , 1 )
96 
97 #endif //> !TRIGT1INTERFACES_FRONTPANELCTP_H
LVL1::FrontPanelCTP::cableWord1
uint32_t cableWord1(unsigned int clock) const
return the data that it sent on cable 1
Definition: FrontPanelCTP.cxx:62
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
checkCorrelInHIST.conn
conn
Definition: checkCorrelInHIST.py:25
LVL1::FrontPanelCTP::setOptCableWord
void setOptCableWord(const std::string &conn, const std::bitset< 128 > &data)
set the data that is sent on the optical cables
Definition: FrontPanelCTP.h:63
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
LVL1::FrontPanelCTP::setCableWord0
void setCableWord0(unsigned int clock, uint32_t data)
set the data that is sent on cable 0
Definition: FrontPanelCTP.cxx:37
LVL1::FrontPanelCTP::m_cableWord0
uint32_t m_cableWord0[2]
Definition: FrontPanelCTP.h:83
LVL1::FrontPanelCTP
Front panel input class to the CTP simulation.
Definition: FrontPanelCTP.h:35
LVL1::FrontPanelCTP::optcableWord
std::bitset< 128 > optcableWord(const std::string &conn) const
return the data that is sent on the optical cables by index
Definition: FrontPanelCTP.h:77
LVL1::FrontPanelCTP::cableWord0
uint32_t cableWord0(unsigned int clock) const
return the data that is sent on cable 0
Definition: FrontPanelCTP.cxx:56
LVL1::FrontPanelCTP::setCableWord2
void setCableWord2(unsigned int clock, uint32_t data)
set the data that is sent on cable 2
Definition: FrontPanelCTP.cxx:49
LVL1::FrontPanelCTP::FrontPanelCTP
FrontPanelCTP()
Definition: FrontPanelCTP.cxx:15
LVL1::FrontPanelCTP::setCableWord1
void setCableWord1(unsigned int clock, uint32_t data)
set the data that is sent on cable 1
Definition: FrontPanelCTP.cxx:43
LVL1::FrontPanelCTP::~FrontPanelCTP
~FrontPanelCTP()
Destructor:
Definition: FrontPanelCTP.cxx:31
LVL1::FrontPanelCTP::cableWord2
uint32_t cableWord2(unsigned int clock) const
return the data that is sent on cable 2
Definition: FrontPanelCTP.cxx:68
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
LVL1::FrontPanelCTP::FrontPanelCTP
FrontPanelCTP(uint32_t cableword0clock0, uint32_t cableword0clock1, uint32_t cableword1clock0, uint32_t cableword1clock1, uint32_t cableword2clock0, uint32_t cableword2clock1)
LVL1::FrontPanelCTP::m_cableWord2
uint32_t m_cableWord2[2]
Definition: FrontPanelCTP.h:85
LVL1::FrontPanelCTP::m_optcableWord
std::map< std::string, std::bitset< 128 > > m_optcableWord
Definition: FrontPanelCTP.h:87
LVL1::FrontPanelCTP::m_cableWord1
uint32_t m_cableWord1[2]
Definition: FrontPanelCTP.h:84
CLASS_DEF.h
macros to associate a CLID to a type