CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
L1GtParameters Class Reference

#include <L1GtParameters.h>

Public Member Functions

const unsigned int gtBstLengthBytes () const
 get / set length of BST message (in bytes) for L1 GT EVM record More...
 
const uint16_t gtDaqActiveBoards () const
 get / set the active boards for L1 GT DAQ record More...
 
const std::vector< int > & gtDaqNrBxBoard () const
 get / set the number of Bx per board for L1 GT DAQ record More...
 
const uint16_t gtEvmActiveBoards () const
 get / set the active boards for L1 GT EVM record More...
 
const std::vector< int > & gtEvmNrBxBoard () const
 get / set the number of Bx per board for L1 GT EVM record More...
 
const int gtTotalBxInEvent () const
 get / set the total Bx's in the event More...
 
 L1GtParameters ()
 
void print (std::ostream &) const
 print all the L1 GT parameters More...
 
void setGtBstLengthBytes (const unsigned int &)
 
void setGtDaqActiveBoards (const uint16_t &)
 
void setGtDaqNrBxBoard (const std::vector< int > &)
 
void setGtEvmActiveBoards (const uint16_t &)
 
void setGtEvmNrBxBoard (const std::vector< int > &)
 
void setGtTotalBxInEvent (const int &)
 
virtual ~L1GtParameters ()
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

unsigned int m_bstLengthBytes
 length of BST message (in bytes) More...
 
uint16_t m_daqActiveBoards
 active boards in the L1 DAQ record More...
 
std::vector< int > m_daqNrBxBoard
 number of Bx per board in the DAQ record More...
 
uint16_t m_evmActiveBoards
 active boards in the L1 EVM record More...
 
std::vector< int > m_evmNrBxBoard
 number of Bx per board in the EVM record More...
 
int m_totalBxInEvent
 total Bx's in the event More...
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 
std::ostream & operator<< (std::ostream &, const L1GtParameters &)
 output stream operator More...
 

Detailed Description

Description: L1 GT parameters.

Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna

$Date$ $Revision$

Definition at line 33 of file L1GtParameters.h.

Constructor & Destructor Documentation

◆ L1GtParameters()

L1GtParameters::L1GtParameters ( )

Definition at line 29 of file L1GtParameters.cc.

29  {
30  // empty
31 }

◆ ~L1GtParameters()

L1GtParameters::~L1GtParameters ( )
virtual

Definition at line 34 of file L1GtParameters.cc.

34  {
35  // empty
36 }

Member Function Documentation

◆ gtBstLengthBytes()

const unsigned int L1GtParameters::gtBstLengthBytes ( ) const
inline

get / set length of BST message (in bytes) for L1 GT EVM record

Definition at line 68 of file L1GtParameters.h.

68 { return m_bstLengthBytes; }

References m_bstLengthBytes.

Referenced by L1GlobalTriggerEvmRawToDigi::produce(), and L1GlobalTrigger::produce().

◆ gtDaqActiveBoards()

const uint16_t L1GtParameters::gtDaqActiveBoards ( ) const
inline

get / set the active boards for L1 GT DAQ record

Definition at line 48 of file L1GtParameters.h.

48 { return m_daqActiveBoards; }

References m_daqActiveBoards.

Referenced by L1GlobalTrigger::produce().

◆ gtDaqNrBxBoard()

const std::vector<int>& L1GtParameters::gtDaqNrBxBoard ( ) const
inline

get / set the number of Bx per board for L1 GT DAQ record

Definition at line 58 of file L1GtParameters.h.

58 { return m_daqNrBxBoard; }

References m_daqNrBxBoard.

◆ gtEvmActiveBoards()

const uint16_t L1GtParameters::gtEvmActiveBoards ( ) const
inline

get / set the active boards for L1 GT EVM record

Definition at line 53 of file L1GtParameters.h.

53 { return m_evmActiveBoards; }

References m_evmActiveBoards.

Referenced by L1GlobalTrigger::produce().

◆ gtEvmNrBxBoard()

const std::vector<int>& L1GtParameters::gtEvmNrBxBoard ( ) const
inline

get / set the number of Bx per board for L1 GT EVM record

Definition at line 63 of file L1GtParameters.h.

63 { return m_evmNrBxBoard; }

References m_evmNrBxBoard.

◆ gtTotalBxInEvent()

const int L1GtParameters::gtTotalBxInEvent ( ) const
inline

get / set the total Bx's in the event

Definition at line 43 of file L1GtParameters.h.

43 { return m_totalBxInEvent; }

References m_totalBxInEvent.

Referenced by L1GlobalTrigger::produce().

◆ print()

void L1GtParameters::print ( std::ostream &  myCout) const

print all the L1 GT parameters

Definition at line 58 of file L1GtParameters.cc.

58  {
59  myCout << "\nL1 GT Parameters" << std::endl;
60 
61  myCout << "\n Total Bx's in the event = " << m_totalBxInEvent << std::endl;
62 
63  myCout << "\n Active boards in L1 GT DAQ record (hex format) = " << std::hex
64  << std::setw(sizeof(m_daqActiveBoards) * 2) << std::setfill('0') << m_daqActiveBoards << std::dec
65  << std::setfill(' ') << std::endl;
66 
67  myCout << "\n Active boards in L1 GT EVM record (hex format) = " << std::hex
68  << std::setw(sizeof(m_evmActiveBoards) * 2) << std::setfill('0') << m_evmActiveBoards << std::dec
69  << std::setfill(' ') << std::endl;
70 
71  myCout << "\n"
72  << " Number of bunch crosses per board in L1 GT DAQ record\n"
73  << " Board bit gives the position of the board in the \"active boards\" word.\n"
74  << std::endl;
75 
76  int iBit = 0;
77  for (std::vector<int>::const_iterator cIt = m_daqNrBxBoard.begin(); cIt != m_daqNrBxBoard.end(); ++cIt) {
78  myCout << " Board active bit " << iBit << ": " << (*cIt) << " BXs" << std::endl;
79  iBit++;
80  }
81 
82  myCout << "\n"
83  << " Number of bunch crosses per board in L1 GT EVM record\n"
84  << " Board bit gives the position of the board in the \"active boards\" word.\n"
85  << std::endl;
86 
87  iBit = 0;
88  for (std::vector<int>::const_iterator cIt = m_evmNrBxBoard.begin(); cIt != m_evmNrBxBoard.end(); ++cIt) {
89  myCout << " Board active bit " << iBit << ": " << (*cIt) << " BXs" << std::endl;
90  iBit++;
91  }
92 
93  myCout << "\n Length of the BST message = " << m_bstLengthBytes << std::endl;
94 
95  myCout << "\n" << std::endl;
96 }

References TauDecayModes::dec, m_bstLengthBytes, m_daqActiveBoards, m_daqNrBxBoard, m_evmActiveBoards, m_evmNrBxBoard, and m_totalBxInEvent.

Referenced by L1TConfigDumper::analyze().

◆ serialize()

template<class Archive >
void L1GtParameters::serialize ( Archive &  ar,
const unsigned int  version 
)
private

◆ setGtBstLengthBytes()

void L1GtParameters::setGtBstLengthBytes ( const unsigned int &  bstLengthBytesValue)

Definition at line 53 of file L1GtParameters.cc.

53  {
54  m_bstLengthBytes = bstLengthBytesValue;
55 }

References m_bstLengthBytes.

◆ setGtDaqActiveBoards()

void L1GtParameters::setGtDaqActiveBoards ( const uint16_t &  activeBoardsValue)

Definition at line 42 of file L1GtParameters.cc.

42 { m_daqActiveBoards = activeBoardsValue; }

References m_daqActiveBoards.

◆ setGtDaqNrBxBoard()

void L1GtParameters::setGtDaqNrBxBoard ( const std::vector< int > &  nrBxBoardValue)

Definition at line 48 of file L1GtParameters.cc.

48 { m_daqNrBxBoard = nrBxBoardValue; }

References m_daqNrBxBoard.

◆ setGtEvmActiveBoards()

void L1GtParameters::setGtEvmActiveBoards ( const uint16_t &  activeBoardsValue)

Definition at line 45 of file L1GtParameters.cc.

45 { m_evmActiveBoards = activeBoardsValue; }

References m_evmActiveBoards.

◆ setGtEvmNrBxBoard()

void L1GtParameters::setGtEvmNrBxBoard ( const std::vector< int > &  nrBxBoardValue)

Definition at line 51 of file L1GtParameters.cc.

51 { m_evmNrBxBoard = nrBxBoardValue; }

References m_evmNrBxBoard.

◆ setGtTotalBxInEvent()

void L1GtParameters::setGtTotalBxInEvent ( const int &  totalBxInEventValue)

Definition at line 39 of file L1GtParameters.cc.

39 { m_totalBxInEvent = totalBxInEventValue; }

References m_totalBxInEvent.

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 97 of file L1GtParameters.h.

◆ cond::serialization::access

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 97 of file L1GtParameters.h.

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const L1GtParameters result 
)
friend

output stream operator

Definition at line 99 of file L1GtParameters.cc.

99  {
100  result.print(os);
101  return os;
102 }

Member Data Documentation

◆ m_bstLengthBytes

unsigned int L1GtParameters::m_bstLengthBytes
private

length of BST message (in bytes)

Definition at line 95 of file L1GtParameters.h.

Referenced by gtBstLengthBytes(), print(), and setGtBstLengthBytes().

◆ m_daqActiveBoards

uint16_t L1GtParameters::m_daqActiveBoards
private

active boards in the L1 DAQ record

Definition at line 83 of file L1GtParameters.h.

Referenced by gtDaqActiveBoards(), print(), and setGtDaqActiveBoards().

◆ m_daqNrBxBoard

std::vector<int> L1GtParameters::m_daqNrBxBoard
private

number of Bx per board in the DAQ record

Definition at line 89 of file L1GtParameters.h.

Referenced by gtDaqNrBxBoard(), print(), and setGtDaqNrBxBoard().

◆ m_evmActiveBoards

uint16_t L1GtParameters::m_evmActiveBoards
private

active boards in the L1 EVM record

Definition at line 86 of file L1GtParameters.h.

Referenced by gtEvmActiveBoards(), print(), and setGtEvmActiveBoards().

◆ m_evmNrBxBoard

std::vector<int> L1GtParameters::m_evmNrBxBoard
private

number of Bx per board in the EVM record

Definition at line 92 of file L1GtParameters.h.

Referenced by gtEvmNrBxBoard(), print(), and setGtEvmNrBxBoard().

◆ m_totalBxInEvent

int L1GtParameters::m_totalBxInEvent
private

total Bx's in the event

Definition at line 80 of file L1GtParameters.h.

Referenced by gtTotalBxInEvent(), print(), and setGtTotalBxInEvent().

L1GtParameters::m_totalBxInEvent
int m_totalBxInEvent
total Bx's in the event
Definition: L1GtParameters.h:80
L1GtParameters::m_evmActiveBoards
uint16_t m_evmActiveBoards
active boards in the L1 EVM record
Definition: L1GtParameters.h:86
L1GtParameters::m_daqNrBxBoard
std::vector< int > m_daqNrBxBoard
number of Bx per board in the DAQ record
Definition: L1GtParameters.h:89
L1GtParameters::m_daqActiveBoards
uint16_t m_daqActiveBoards
active boards in the L1 DAQ record
Definition: L1GtParameters.h:83
L1GtParameters::m_evmNrBxBoard
std::vector< int > m_evmNrBxBoard
number of Bx per board in the EVM record
Definition: L1GtParameters.h:92
mps_fire.result
result
Definition: mps_fire.py:311
L1GtParameters::m_bstLengthBytes
unsigned int m_bstLengthBytes
length of BST message (in bytes)
Definition: L1GtParameters.h:95
TauDecayModes.dec
dec
Definition: TauDecayModes.py:142