ATLAS Offline Software
Loading...
Searching...
No Matches
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:
void setCableWord0 (unsigned int clock, uint32_t data)
 set the data that is sent on cable 0
void setCableWord1 (unsigned int clock, uint32_t data)
 set the data that is sent on cable 1
void setCableWord2 (unsigned int clock, uint32_t data)
 set the data that is sent on cable 2
void setOptCableWord (const std::string &conn, const std::bitset< 128 > &data)
 set the data that is sent on the optical cables
uint32_t cableWord0 (unsigned int clock) const
 return the data that is sent on cable 0
uint32_t cableWord1 (unsigned int clock) const
 return the data that it sent on cable 1
uint32_t cableWord2 (unsigned int clock) const
 return the data that is sent on cable 2
std::bitset< 128 > optcableWord (const std::string &conn) const
 return the data that is sent on the optical cables by index

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}
uint32_t m_cableWord0[2]

◆ 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}
uint32_t m_cableWord1[2]

◆ 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}
uint32_t m_cableWord2[2]

◆ 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; }
std::map< std::string, std::bitset< 128 > > m_optcableWord

◆ 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}
char data[hepevt_bytes_allocation_ATLAS]
Definition HepEvt.cxx:11

◆ 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.

Member Data Documentation

◆ m_cableWord0

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

Definition at line 83 of file FrontPanelCTP.h.

83{ 0, 0 };

◆ m_cableWord1

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

Definition at line 84 of file FrontPanelCTP.h.

84{ 0, 0 };

◆ m_cableWord2

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

Definition at line 85 of file FrontPanelCTP.h.

85{ 0, 0 };

◆ 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: