ATLAS Offline Software
Loading...
Searching...
No Matches
FrontPanelCTP.cxx
Go to the documentation of this file.
1
2// FrontPanelCTP.cxx
3/*
4 Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
5*/
6// Implementation file for class FrontPanelCTP
7// Author: S.Binet<binet@cern.ch>
9
10// TrigT1Interfaces includes
12
13
14// Constructors
17
18LVL1::FrontPanelCTP::FrontPanelCTP( unsigned int cableword0clock0,
19 unsigned int cableword0clock1,
20 unsigned int cableword1clock0,
21 unsigned int cableword1clock1,
22 unsigned int cableword2clock0,
23 unsigned int cableword2clock1 ) :
24 m_cableWord0{ cableword0clock0, cableword0clock1 },
25 m_cableWord1{ cableword1clock0, cableword1clock1 },
26 m_cableWord2{ cableword2clock0, cableword2clock1 }
27{}
28
29
30// Destructor
33
34
36void
37LVL1::FrontPanelCTP::setCableWord0(unsigned int clock, uint32_t data) {
38 m_cableWord0[clock==0?0:1] = data;
39}
40
42void
43LVL1::FrontPanelCTP::setCableWord1(unsigned int clock, uint32_t data) {
44 m_cableWord1[clock==0?0:1] = data;
45}
46
48void
49LVL1::FrontPanelCTP::setCableWord2(unsigned int clock, uint32_t data) {
50 m_cableWord2[clock==0?0:1] = data;
51}
52
53
55unsigned int
56LVL1::FrontPanelCTP::cableWord0(unsigned int clock) const {
57 return m_cableWord0[clock==0?0:1];
58}
59
61unsigned int
62LVL1::FrontPanelCTP::cableWord1(unsigned int clock) const {
63 return m_cableWord1[clock==0?0:1];
64}
65
67unsigned int
68LVL1::FrontPanelCTP::cableWord2(unsigned int clock) const {
69 return m_cableWord2[clock==0?0:1];
70}
71
72
char data[hepevt_bytes_allocation_ATLAS]
Definition HepEvt.cxx:11
uint32_t m_cableWord2[2]
uint32_t m_cableWord0[2]
uint32_t m_cableWord1[2]
~FrontPanelCTP()
Destructor:
uint32_t cableWord0(unsigned int clock) const
return the data that is sent on cable 0
void setCableWord0(unsigned int clock, uint32_t data)
set the data that is sent on cable 0
uint32_t cableWord2(unsigned int clock) const
return the data that is sent on cable 2
void setCableWord2(unsigned int clock, uint32_t data)
set the data that is sent on cable 2
uint32_t cableWord1(unsigned int clock) const
return the data that it sent on cable 1
void setCableWord1(unsigned int clock, uint32_t data)
set the data that is sent on cable 1