ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
LVL1::FrontPanelCTP Class Reference

Front panel input class to the CTP simulation. More...

#include <FrontPanelCTP.h>

Inheritance diagram for LVL1::FrontPanelCTP:
Collaboration diagram for LVL1::FrontPanelCTP:

Public Member Functions

 FrontPanelCTP ()
 
 FrontPanelCTP (uint32_t cableword0clock0, uint32_t cableword0clock1, uint32_t cableword1clock0, uint32_t cableword1clock1, uint32_t cableword2clock0, uint32_t cableword2clock1)
 
 ~FrontPanelCTP ()
 Destructor: More...
 
void setCableWord0 (unsigned int clock, uint32_t data)
 set the data that is sent on cable 0 More...
 
void setCableWord1 (unsigned int clock, uint32_t data)
 set the data that is sent on cable 1 More...
 
void setCableWord2 (unsigned int clock, uint32_t data)
 set the data that is sent on cable 2 More...
 
void setOptCableWord (const std::string &conn, const std::bitset< 128 > &data)
 set the data that is sent on the optical cables More...
 
uint32_t cableWord0 (unsigned int clock) const
 return the data that is sent on cable 0 More...
 
uint32_t cableWord1 (unsigned int clock) const
 return the data that it sent on cable 1 More...
 
uint32_t cableWord2 (unsigned int clock) const
 return the data that is sent on cable 2 More...
 
std::bitset< 128 > optcableWord (const std::string &conn) const
 return the data that is sent on the optical cables by index More...
 

Private Attributes

uint32_t m_cableWord0 [2] { 0, 0 }
 
uint32_t m_cableWord1 [2] { 0, 0 }
 
uint32_t m_cableWord2 [2] { 0, 0 }
 
std::map< std::string, std::bitset< 128 > > m_optcableWord
 

Detailed Description

Front panel input class to the CTP simulation.

   This class holds the multiplicities of the inputs
   that are received via the front panel of the 
   CTPCORE+ module.
Author
R. Pöttgen

Definition at line 35 of file FrontPanelCTP.h.

Constructor & Destructor Documentation

◆ FrontPanelCTP() [1/2]

LVL1::FrontPanelCTP::FrontPanelCTP ( )

Definition at line 15 of file FrontPanelCTP.cxx.

16 {}

◆ FrontPanelCTP() [2/2]

LVL1::FrontPanelCTP::FrontPanelCTP ( uint32_t  cableword0clock0,
uint32_t  cableword0clock1,
uint32_t  cableword1clock0,
uint32_t  cableword1clock1,
uint32_t  cableword2clock0,
uint32_t  cableword2clock1 
)

◆ ~FrontPanelCTP()

LVL1::FrontPanelCTP::~FrontPanelCTP ( )

Destructor:

Definition at line 31 of file FrontPanelCTP.cxx.

32 {}

Member Function Documentation

◆ cableWord0()

unsigned int LVL1::FrontPanelCTP::cableWord0 ( unsigned int  clock) const

return the data that is sent on cable 0

Definition at line 56 of file FrontPanelCTP.cxx.

56  {
57  return m_cableWord0[clock==0?0:1];
58 }

◆ cableWord1()

unsigned int LVL1::FrontPanelCTP::cableWord1 ( unsigned int  clock) const

return the data that it sent on cable 1

return the data that is sent on cable 1

Definition at line 62 of file FrontPanelCTP.cxx.

62  {
63  return m_cableWord1[clock==0?0:1];
64 }

◆ cableWord2()

unsigned int LVL1::FrontPanelCTP::cableWord2 ( unsigned int  clock) const

return the data that is sent on cable 2

Definition at line 68 of file FrontPanelCTP.cxx.

68  {
69  return m_cableWord2[clock==0?0:1];
70 }

◆ optcableWord()

std::bitset<128> LVL1::FrontPanelCTP::optcableWord ( const std::string &  conn) const
inline

return the data that is sent on the optical cables by index

Definition at line 77 of file FrontPanelCTP.h.

77 { return m_optcableWord.find(conn)->second; }

◆ setCableWord0()

void LVL1::FrontPanelCTP::setCableWord0 ( unsigned int  clock,
uint32_t  data 
)

set the data that is sent on cable 0

Definition at line 37 of file FrontPanelCTP.cxx.

37  {
38  m_cableWord0[clock==0?0:1] = data;
39 }

◆ setCableWord1()

void LVL1::FrontPanelCTP::setCableWord1 ( unsigned int  clock,
uint32_t  data 
)

set the data that is sent on cable 1

Definition at line 43 of file FrontPanelCTP.cxx.

43  {
44  m_cableWord1[clock==0?0:1] = data;
45 }

◆ setCableWord2()

void LVL1::FrontPanelCTP::setCableWord2 ( unsigned int  clock,
uint32_t  data 
)

set the data that is sent on cable 2

Definition at line 49 of file FrontPanelCTP.cxx.

49  {
50  m_cableWord2[clock==0?0:1] = data;
51 }

◆ setOptCableWord()

void LVL1::FrontPanelCTP::setOptCableWord ( const std::string &  conn,
const std::bitset< 128 > &  data 
)
inline

set the data that is sent on the optical cables

Definition at line 63 of file FrontPanelCTP.h.

63 { m_optcableWord[conn] = data; }

Member Data Documentation

◆ m_cableWord0

uint32_t LVL1::FrontPanelCTP::m_cableWord0[2] { 0, 0 }
private

Definition at line 83 of file FrontPanelCTP.h.

◆ m_cableWord1

uint32_t LVL1::FrontPanelCTP::m_cableWord1[2] { 0, 0 }
private

Definition at line 84 of file FrontPanelCTP.h.

◆ m_cableWord2

uint32_t LVL1::FrontPanelCTP::m_cableWord2[2] { 0, 0 }
private

Definition at line 85 of file FrontPanelCTP.h.

◆ m_optcableWord

std::map<std::string,std::bitset<128> > LVL1::FrontPanelCTP::m_optcableWord
private

Definition at line 87 of file FrontPanelCTP.h.


The documentation for this class was generated from the following files:
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
checkCorrelInHIST.conn
conn
Definition: checkCorrelInHIST.py:25
LVL1::FrontPanelCTP::m_cableWord0
uint32_t m_cableWord0[2]
Definition: FrontPanelCTP.h:83
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