ATLAS Offline Software
Loading...
Searching...
No Matches
TXC::TriggerLine Class Reference

#include <L1TopoConfigOutputList.h>

Collaboration diagram for TXC::TriggerLine:

Public Member Functions

 TriggerLine (const std::string &name, const std::string &algoname, unsigned int algoId, unsigned int module, unsigned int fpga, unsigned int clock, unsigned int bit)
const std::string & name () const
const std::string & algoname () const
unsigned int algoid () const
unsigned int module () const
unsigned int fpga () const
unsigned int clock () const
unsigned int bit () const
unsigned int counter () const

Private Member Functions

void calcCounter ()

Private Attributes

std::string m_name {""}
std::string m_algoname {""}
unsigned int m_algoId {0}
unsigned int m_module {0}
unsigned int m_fpga {0}
unsigned int m_clock {0}
unsigned int m_bit {0}
unsigned int m_counter {0}

Detailed Description

Definition at line 15 of file L1TopoConfigOutputList.h.

Constructor & Destructor Documentation

◆ TriggerLine()

TXC::TriggerLine::TriggerLine ( const std::string & name,
const std::string & algoname,
unsigned int algoId,
unsigned int module,
unsigned int fpga,
unsigned int clock,
unsigned int bit )
inline

Definition at line 17 of file L1TopoConfigOutputList.h.

23 :
24 m_name(name),
26 m_algoId(algoId),
28 m_fpga(fpga),
30 m_bit(bit)
31 {
33 };
unsigned int fpga() const
unsigned int module() const
const std::string & name() const
unsigned int bit() const
unsigned int clock() const
const std::string & algoname() const

Member Function Documentation

◆ algoid()

unsigned int TXC::TriggerLine::algoid ( ) const
inline

Definition at line 36 of file L1TopoConfigOutputList.h.

36{ return m_algoId; }

◆ algoname()

const std::string & TXC::TriggerLine::algoname ( ) const
inline

Definition at line 35 of file L1TopoConfigOutputList.h.

35{ return m_algoname; }

◆ bit()

unsigned int TXC::TriggerLine::bit ( ) const
inline

Definition at line 40 of file L1TopoConfigOutputList.h.

40{ return m_bit; }

◆ calcCounter()

void TriggerLine::calcCounter ( )
private

Definition at line 18 of file L1TopoConfigOutputList.cxx.

18 {
19 //m_counter = 64 * m_module + 16 * m_fpga + 32 * m_clock + m_bit;
20 m_counter = 2 * (32 * m_module + 16 * m_fpga + m_bit) + m_clock;
21 if(m_counter>191) {
22 TCS_EXCEPTION("Trigger line '" << *this << "' has illegal counter " << m_counter);
23 }
24}

◆ clock()

unsigned int TXC::TriggerLine::clock ( ) const
inline

Definition at line 39 of file L1TopoConfigOutputList.h.

39{ return m_clock; }

◆ counter()

unsigned int TXC::TriggerLine::counter ( ) const
inline

Definition at line 41 of file L1TopoConfigOutputList.h.

41{ return m_counter; } // unique counter between 0 and 191 - to be used everywhere

◆ fpga()

unsigned int TXC::TriggerLine::fpga ( ) const
inline

Definition at line 38 of file L1TopoConfigOutputList.h.

38{ return m_fpga; }

◆ module()

unsigned int TXC::TriggerLine::module ( ) const
inline

Definition at line 37 of file L1TopoConfigOutputList.h.

37{ return m_module; }

◆ name()

const std::string & TXC::TriggerLine::name ( ) const
inline

Definition at line 34 of file L1TopoConfigOutputList.h.

34{ return m_name; }

Member Data Documentation

◆ m_algoId

unsigned int TXC::TriggerLine::m_algoId {0}
private

Definition at line 46 of file L1TopoConfigOutputList.h.

46{0};

◆ m_algoname

std::string TXC::TriggerLine::m_algoname {""}
private

Definition at line 45 of file L1TopoConfigOutputList.h.

45{""};

◆ m_bit

unsigned int TXC::TriggerLine::m_bit {0}
private

Definition at line 50 of file L1TopoConfigOutputList.h.

50{0};

◆ m_clock

unsigned int TXC::TriggerLine::m_clock {0}
private

Definition at line 49 of file L1TopoConfigOutputList.h.

49{0};

◆ m_counter

unsigned int TXC::TriggerLine::m_counter {0}
private

Definition at line 51 of file L1TopoConfigOutputList.h.

51{0};

◆ m_fpga

unsigned int TXC::TriggerLine::m_fpga {0}
private

Definition at line 48 of file L1TopoConfigOutputList.h.

48{0};

◆ m_module

unsigned int TXC::TriggerLine::m_module {0}
private

Definition at line 47 of file L1TopoConfigOutputList.h.

47{0};

◆ m_name

std::string TXC::TriggerLine::m_name {""}
private

Definition at line 44 of file L1TopoConfigOutputList.h.

44{""};

The documentation for this class was generated from the following files: