#include <L1GtParameters.h>
Public Member Functions | |
const unsigned int | gtBstLengthBytes () const |
get / set length of BST message (in bytes) for L1 GT EVM record | |
const boost::uint16_t | gtDaqActiveBoards () const |
get / set the active boards for L1 GT DAQ record | |
const std::vector< int > & | gtDaqNrBxBoard () const |
get / set the number of Bx per board for L1 GT DAQ record | |
const boost::uint16_t | gtEvmActiveBoards () const |
get / set the active boards for L1 GT EVM record | |
const std::vector< int > & | gtEvmNrBxBoard () const |
get / set the number of Bx per board for L1 GT EVM record | |
const int | gtTotalBxInEvent () const |
get / set the total Bx's in the event | |
L1GtParameters () | |
void | print (std::ostream &) const |
print all the L1 GT parameters | |
void | setGtBstLengthBytes (const unsigned int &) |
void | setGtDaqActiveBoards (const boost::uint16_t &) |
void | setGtDaqNrBxBoard (const std::vector< int > &) |
void | setGtEvmActiveBoards (const boost::uint16_t &) |
void | setGtEvmNrBxBoard (const std::vector< int > &) |
void | setGtTotalBxInEvent (const int &) |
virtual | ~L1GtParameters () |
Private Attributes | |
unsigned int | m_bstLengthBytes |
length of BST message (in bytes) | |
boost::uint16_t | m_daqActiveBoards |
active boards in the L1 DAQ record | |
std::vector< int > | m_daqNrBxBoard |
number of Bx per board in the DAQ record | |
boost::uint16_t | m_evmActiveBoards |
active boards in the L1 EVM record | |
std::vector< int > | m_evmNrBxBoard |
number of Bx per board in the EVM record | |
int | m_totalBxInEvent |
total Bx's in the event | |
Friends | |
std::ostream & | operator<< (std::ostream &, const L1GtParameters &) |
output stream operator |
Description: L1 GT parameters.
Implementation: <TODO: enter implementation details>
$Date$ $Revision$
Definition at line 32 of file L1GtParameters.h.
L1GtParameters::L1GtParameters | ( | ) |
Definition at line 30 of file L1GtParameters.cc.
{
// empty
}
L1GtParameters::~L1GtParameters | ( | ) | [virtual] |
Definition at line 36 of file L1GtParameters.cc.
{
// empty
}
const unsigned int L1GtParameters::gtBstLengthBytes | ( | ) | const [inline] |
get / set length of BST message (in bytes) for L1 GT EVM record
Definition at line 92 of file L1GtParameters.h.
References m_bstLengthBytes.
Referenced by L1GlobalTriggerEvmRawToDigi::produce(), and L1GlobalTrigger::produce().
{ return m_bstLengthBytes; }
const boost::uint16_t L1GtParameters::gtDaqActiveBoards | ( | ) | const [inline] |
get / set the active boards for L1 GT DAQ record
Definition at line 55 of file L1GtParameters.h.
References m_daqActiveBoards.
Referenced by L1GlobalTrigger::produce().
{ return m_daqActiveBoards; }
const std::vector<int>& L1GtParameters::gtDaqNrBxBoard | ( | ) | const [inline] |
get / set the number of Bx per board for L1 GT DAQ record
Definition at line 74 of file L1GtParameters.h.
References m_daqNrBxBoard.
{ return m_daqNrBxBoard; }
const boost::uint16_t L1GtParameters::gtEvmActiveBoards | ( | ) | const [inline] |
get / set the active boards for L1 GT EVM record
Definition at line 64 of file L1GtParameters.h.
References m_evmActiveBoards.
Referenced by L1GlobalTrigger::produce().
{ return m_evmActiveBoards; }
const std::vector<int>& L1GtParameters::gtEvmNrBxBoard | ( | ) | const [inline] |
get / set the number of Bx per board for L1 GT EVM record
Definition at line 83 of file L1GtParameters.h.
References m_evmNrBxBoard.
{ return m_evmNrBxBoard; }
const int L1GtParameters::gtTotalBxInEvent | ( | ) | const [inline] |
get / set the total Bx's in the event
Definition at line 46 of file L1GtParameters.h.
References m_totalBxInEvent.
Referenced by L1GlobalTrigger::produce().
{ return m_totalBxInEvent; }
void L1GtParameters::print | ( | std::ostream & | myCout | ) | const |
print all the L1 GT parameters
Definition at line 88 of file L1GtParameters.cc.
References m_bstLengthBytes, m_daqActiveBoards, m_daqNrBxBoard, m_evmActiveBoards, m_evmNrBxBoard, and m_totalBxInEvent.
Referenced by operator<<().
{ myCout << "\nL1 GT Parameters" << std::endl; myCout << "\n Total Bx's in the event = " << m_totalBxInEvent << std::endl; myCout << "\n Active boards in L1 GT DAQ record (hex format) = " << std::hex << std::setw(sizeof(m_daqActiveBoards)*2) << std::setfill('0') << m_daqActiveBoards << std::dec << std::setfill(' ') << std::endl; myCout << "\n Active boards in L1 GT EVM record (hex format) = " << std::hex << std::setw(sizeof(m_evmActiveBoards)*2) << std::setfill('0') << m_evmActiveBoards << std::dec << std::setfill(' ') << std::endl; myCout << "\n" << " Number of bunch crosses per board in L1 GT DAQ record\n" << " Board bit gives the position of the board in the \"active boards\" word.\n" << std::endl; int iBit = 0; for (std::vector<int>::const_iterator cIt = m_daqNrBxBoard.begin(); cIt != m_daqNrBxBoard.end(); ++cIt) { myCout << " Board active bit " << iBit << ": " << (*cIt) << " BXs" << std::endl; iBit++; } myCout << "\n" << " Number of bunch crosses per board in L1 GT EVM record\n" << " Board bit gives the position of the board in the \"active boards\" word.\n" << std::endl; iBit = 0; for (std::vector<int>::const_iterator cIt = m_evmNrBxBoard.begin(); cIt != m_evmNrBxBoard.end(); ++cIt) { myCout << " Board active bit " << iBit << ": " << (*cIt) << " BXs" << std::endl; iBit++; } myCout << "\n Length of the BST message = " << m_bstLengthBytes << std::endl; myCout << "\n" << std::endl; }
void L1GtParameters::setGtBstLengthBytes | ( | const unsigned int & | bstLengthBytesValue | ) |
Definition at line 81 of file L1GtParameters.cc.
References m_bstLengthBytes.
{ m_bstLengthBytes = bstLengthBytesValue; }
void L1GtParameters::setGtDaqActiveBoards | ( | const boost::uint16_t & | activeBoardsValue | ) |
Definition at line 50 of file L1GtParameters.cc.
References m_daqActiveBoards.
{ m_daqActiveBoards = activeBoardsValue; }
void L1GtParameters::setGtDaqNrBxBoard | ( | const std::vector< int > & | nrBxBoardValue | ) |
Definition at line 66 of file L1GtParameters.cc.
References m_daqNrBxBoard.
{ m_daqNrBxBoard = nrBxBoardValue; }
void L1GtParameters::setGtEvmActiveBoards | ( | const boost::uint16_t & | activeBoardsValue | ) |
Definition at line 58 of file L1GtParameters.cc.
References m_evmActiveBoards.
{ m_evmActiveBoards = activeBoardsValue; }
void L1GtParameters::setGtEvmNrBxBoard | ( | const std::vector< int > & | nrBxBoardValue | ) |
Definition at line 74 of file L1GtParameters.cc.
References m_evmNrBxBoard.
{ m_evmNrBxBoard = nrBxBoardValue; }
void L1GtParameters::setGtTotalBxInEvent | ( | const int & | totalBxInEventValue | ) |
Definition at line 42 of file L1GtParameters.cc.
References m_totalBxInEvent.
{ m_totalBxInEvent = totalBxInEventValue; }
std::ostream& operator<< | ( | std::ostream & | os, |
const L1GtParameters & | result | ||
) | [friend] |
output stream operator
Definition at line 146 of file L1GtParameters.cc.
{ result.print(os); return os; }
unsigned int L1GtParameters::m_bstLengthBytes [private] |
length of BST message (in bytes)
Definition at line 123 of file L1GtParameters.h.
Referenced by gtBstLengthBytes(), print(), and setGtBstLengthBytes().
boost::uint16_t L1GtParameters::m_daqActiveBoards [private] |
active boards in the L1 DAQ record
Definition at line 111 of file L1GtParameters.h.
Referenced by gtDaqActiveBoards(), print(), and setGtDaqActiveBoards().
std::vector<int> L1GtParameters::m_daqNrBxBoard [private] |
number of Bx per board in the DAQ record
Definition at line 117 of file L1GtParameters.h.
Referenced by gtDaqNrBxBoard(), print(), and setGtDaqNrBxBoard().
boost::uint16_t L1GtParameters::m_evmActiveBoards [private] |
active boards in the L1 EVM record
Definition at line 114 of file L1GtParameters.h.
Referenced by gtEvmActiveBoards(), print(), and setGtEvmActiveBoards().
std::vector<int> L1GtParameters::m_evmNrBxBoard [private] |
number of Bx per board in the EVM record
Definition at line 120 of file L1GtParameters.h.
Referenced by gtEvmNrBxBoard(), print(), and setGtEvmNrBxBoard().
int L1GtParameters::m_totalBxInEvent [private] |
total Bx's in the event
Definition at line 108 of file L1GtParameters.h.
Referenced by gtTotalBxInEvent(), print(), and setGtTotalBxInEvent().