CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public 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 boost::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 boost::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 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

 COND_SERIALIZABLE
 
unsigned int m_bstLengthBytes
 length of BST message (in bytes) More...
 
boost::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...
 
boost::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

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 34 of file L1GtParameters.h.

Constructor & Destructor Documentation

L1GtParameters::L1GtParameters ( )

Definition at line 30 of file L1GtParameters.cc.

31 {
32  // empty
33 }
L1GtParameters::~L1GtParameters ( )
virtual

Definition at line 36 of file L1GtParameters.cc.

37 {
38  // empty
39 }

Member Function Documentation

const unsigned int L1GtParameters::gtBstLengthBytes ( ) const
inline

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

Definition at line 94 of file L1GtParameters.h.

References m_bstLengthBytes.

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

95  {
96  return m_bstLengthBytes;
97  }
unsigned int m_bstLengthBytes
length of BST message (in bytes)
const boost::uint16_t L1GtParameters::gtDaqActiveBoards ( ) const
inline

get / set the active boards for L1 GT DAQ record

Definition at line 57 of file L1GtParameters.h.

References m_daqActiveBoards.

Referenced by L1GlobalTrigger::produce().

58  {
59  return m_daqActiveBoards;
60  }
boost::uint16_t m_daqActiveBoards
active boards in the L1 DAQ record
const std::vector<int>& L1GtParameters::gtDaqNrBxBoard ( ) const
inline

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

Definition at line 76 of file L1GtParameters.h.

References m_daqNrBxBoard.

77  {
78  return m_daqNrBxBoard;
79  }
std::vector< int > m_daqNrBxBoard
number of Bx per board in the DAQ record
const boost::uint16_t L1GtParameters::gtEvmActiveBoards ( ) const
inline

get / set the active boards for L1 GT EVM record

Definition at line 66 of file L1GtParameters.h.

References m_evmActiveBoards.

Referenced by L1GlobalTrigger::produce().

67  {
68  return m_evmActiveBoards;
69  }
boost::uint16_t m_evmActiveBoards
active boards in the L1 EVM record
const std::vector<int>& L1GtParameters::gtEvmNrBxBoard ( ) const
inline

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

Definition at line 85 of file L1GtParameters.h.

References m_evmNrBxBoard.

86  {
87  return m_evmNrBxBoard;
88  }
std::vector< int > m_evmNrBxBoard
number of Bx per board in the EVM record
const int L1GtParameters::gtTotalBxInEvent ( ) const
inline

get / set the total Bx's in the event

Definition at line 48 of file L1GtParameters.h.

References m_totalBxInEvent.

Referenced by L1GlobalTrigger::produce().

49  {
50  return m_totalBxInEvent;
51  }
int m_totalBxInEvent
total Bx&#39;s in the event
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<<().

89 {
90  myCout
91  << "\nL1 GT Parameters" << std::endl;
92 
93  myCout
94  << "\n Total Bx's in the event = " << m_totalBxInEvent << std::endl;
95 
96  myCout
97  << "\n Active boards in L1 GT DAQ record (hex format) = "
98  << std::hex << std::setw(sizeof(m_daqActiveBoards)*2) << std::setfill('0')
100  << std::dec << std::setfill(' ')
101  << std::endl;
102 
103  myCout
104  << "\n Active boards in L1 GT EVM record (hex format) = "
105  << std::hex << std::setw(sizeof(m_evmActiveBoards)*2) << std::setfill('0')
107  << std::dec << std::setfill(' ')
108  << std::endl;
109 
110  myCout
111  << "\n"
112  << " Number of bunch crosses per board in L1 GT DAQ record\n"
113  << " Board bit gives the position of the board in the \"active boards\" word.\n"
114  << std::endl;
115 
116  int iBit = 0;
117  for (std::vector<int>::const_iterator cIt = m_daqNrBxBoard.begin(); cIt != m_daqNrBxBoard.end(); ++cIt) {
118  myCout << " Board active bit " << iBit << ": " << (*cIt) << " BXs" << std::endl;
119  iBit++;
120  }
121 
122 
123  myCout
124  << "\n"
125  << " Number of bunch crosses per board in L1 GT EVM record\n"
126  << " Board bit gives the position of the board in the \"active boards\" word.\n"
127  << std::endl;
128 
129  iBit = 0;
130  for (std::vector<int>::const_iterator cIt = m_evmNrBxBoard.begin(); cIt != m_evmNrBxBoard.end(); ++cIt) {
131  myCout << " Board active bit " << iBit << ": " << (*cIt) << " BXs" << std::endl;
132  iBit++;
133  }
134 
135  myCout
136  << "\n Length of the BST message = "
138  << std::endl;
139 
140  myCout
141  << "\n" << std::endl;
142 
143 }
std::vector< int > m_daqNrBxBoard
number of Bx per board in the DAQ record
unsigned int m_bstLengthBytes
length of BST message (in bytes)
boost::uint16_t m_daqActiveBoards
active boards in the L1 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&#39;s in the event
void L1GtParameters::setGtBstLengthBytes ( const unsigned int &  bstLengthBytesValue)

Definition at line 81 of file L1GtParameters.cc.

References m_bstLengthBytes.

81  {
82 
83  m_bstLengthBytes = bstLengthBytesValue;
84 
85 }
unsigned int m_bstLengthBytes
length of BST message (in bytes)
void L1GtParameters::setGtDaqActiveBoards ( const boost::uint16_t &  activeBoardsValue)

Definition at line 50 of file L1GtParameters.cc.

References m_daqActiveBoards.

51 {
52 
53  m_daqActiveBoards = activeBoardsValue;
54 
55 }
boost::uint16_t m_daqActiveBoards
active boards in the L1 DAQ record
void L1GtParameters::setGtDaqNrBxBoard ( const std::vector< int > &  nrBxBoardValue)

Definition at line 66 of file L1GtParameters.cc.

References m_daqNrBxBoard.

67 {
68 
69  m_daqNrBxBoard = nrBxBoardValue;
70 
71 }
std::vector< int > m_daqNrBxBoard
number of Bx per board in the DAQ record
void L1GtParameters::setGtEvmActiveBoards ( const boost::uint16_t &  activeBoardsValue)

Definition at line 58 of file L1GtParameters.cc.

References m_evmActiveBoards.

59 {
60 
61  m_evmActiveBoards = activeBoardsValue;
62 
63 }
boost::uint16_t m_evmActiveBoards
active boards in the L1 EVM record
void L1GtParameters::setGtEvmNrBxBoard ( const std::vector< int > &  nrBxBoardValue)

Definition at line 74 of file L1GtParameters.cc.

References m_evmNrBxBoard.

75 {
76 
77  m_evmNrBxBoard = nrBxBoardValue;
78 
79 }
std::vector< int > m_evmNrBxBoard
number of Bx per board in the EVM record
void L1GtParameters::setGtTotalBxInEvent ( const int &  totalBxInEventValue)

Definition at line 42 of file L1GtParameters.cc.

References m_totalBxInEvent.

43 {
44 
45  m_totalBxInEvent = totalBxInEventValue;
46 
47 }
int m_totalBxInEvent
total Bx&#39;s in the event

Friends And Related Function Documentation

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

output stream operator

Definition at line 146 of file L1GtParameters.cc.

147 {
148  result.print(os);
149  return os;
150 
151 }
void print(std::ostream &) const
print all the L1 GT parameters

Member Data Documentation

L1GtParameters::COND_SERIALIZABLE
private

Definition at line 129 of file L1GtParameters.h.

unsigned int L1GtParameters::m_bstLengthBytes
private

length of BST message (in bytes)

Definition at line 125 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 113 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 119 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 116 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 122 of file L1GtParameters.h.

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

int L1GtParameters::m_totalBxInEvent
private

total Bx's in the event

Definition at line 110 of file L1GtParameters.h.

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