ATLAS Offline Software
Public Member Functions | Private Member Functions | Private Attributes | List of all members
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),
29  m_clock(clock),
30  m_bit(bit)
31  {
32  calcCounter();
33  };

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.

◆ m_algoname

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

Definition at line 45 of file L1TopoConfigOutputList.h.

◆ m_bit

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

Definition at line 50 of file L1TopoConfigOutputList.h.

◆ m_clock

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

Definition at line 49 of file L1TopoConfigOutputList.h.

◆ m_counter

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

Definition at line 51 of file L1TopoConfigOutputList.h.

◆ m_fpga

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

Definition at line 48 of file L1TopoConfigOutputList.h.

◆ m_module

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

Definition at line 47 of file L1TopoConfigOutputList.h.

◆ m_name

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

Definition at line 44 of file L1TopoConfigOutputList.h.


The documentation for this class was generated from the following files:
TXC::TriggerLine::name
const std::string & name() const
Definition: L1TopoConfigOutputList.h:34
TXC::TriggerLine::m_clock
unsigned int m_clock
Definition: L1TopoConfigOutputList.h:49
TXC::TriggerLine::calcCounter
void calcCounter()
Definition: L1TopoConfigOutputList.cxx:18
TXC::TriggerLine::m_algoId
unsigned int m_algoId
Definition: L1TopoConfigOutputList.h:46
TXC::TriggerLine::fpga
unsigned int fpga() const
Definition: L1TopoConfigOutputList.h:38
TXC::TriggerLine::m_bit
unsigned int m_bit
Definition: L1TopoConfigOutputList.h:50
TXC::TriggerLine::m_counter
unsigned int m_counter
Definition: L1TopoConfigOutputList.h:51
TXC::TriggerLine::bit
unsigned int bit() const
Definition: L1TopoConfigOutputList.h:40
TXC::TriggerLine::clock
unsigned int clock() const
Definition: L1TopoConfigOutputList.h:39
TXC::TriggerLine::m_fpga
unsigned int m_fpga
Definition: L1TopoConfigOutputList.h:48
TCS_EXCEPTION
#define TCS_EXCEPTION(MSG)
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/Exception.h:14
TXC::TriggerLine::module
unsigned int module() const
Definition: L1TopoConfigOutputList.h:37
TXC::TriggerLine::m_module
unsigned int m_module
Definition: L1TopoConfigOutputList.h:47
TXC::TriggerLine::m_algoname
std::string m_algoname
Definition: L1TopoConfigOutputList.h:45
TXC::TriggerLine::algoname
const std::string & algoname() const
Definition: L1TopoConfigOutputList.h:35
TXC::TriggerLine::m_name
std::string m_name
Definition: L1TopoConfigOutputList.h:44