ATLAS Offline Software
FrontPanelCTP.cxx
Go to the documentation of this file.
1 // 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
16 {}
17 
18 LVL1::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
32 {}
33 
34 
36 void
38  m_cableWord0[clock==0?0:1] = data;
39 }
40 
42 void
44  m_cableWord1[clock==0?0:1] = data;
45 }
46 
48 void
50  m_cableWord2[clock==0?0:1] = data;
51 }
52 
53 
55 unsigned int
56 LVL1::FrontPanelCTP::cableWord0(unsigned int clock) const {
57  return m_cableWord0[clock==0?0:1];
58 }
59 
61 unsigned int
62 LVL1::FrontPanelCTP::cableWord1(unsigned int clock) const {
63  return m_cableWord1[clock==0?0:1];
64 }
65 
67 unsigned int
68 LVL1::FrontPanelCTP::cableWord2(unsigned int clock) const {
69  return m_cableWord2[clock==0?0:1];
70 }
71 
72 
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
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
LVL1::FrontPanelCTP::setCableWord0
void setCableWord0(unsigned int clock, uint32_t data)
set the data that is sent on cable 0
Definition: FrontPanelCTP.cxx:37
FrontPanelCTP.h
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