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 ( )

Definition at line 29 of file L1GtParameters.cc.

29  {
30  // empty
31 }
L1GtParameters::~L1GtParameters ( )
virtual

Definition at line 34 of file L1GtParameters.cc.

34  {
35  // empty
36 }

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

References m_bstLengthBytes, operator<<, print(), and setGtBstLengthBytes().

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

68 { return m_bstLengthBytes; }
unsigned int m_bstLengthBytes
length of BST message (in bytes)
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.

References m_daqActiveBoards, and setGtDaqActiveBoards().

Referenced by L1GlobalTrigger::produce().

48 { return m_daqActiveBoards; }
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 58 of file L1GtParameters.h.

References m_daqNrBxBoard, and setGtDaqNrBxBoard().

58 { return m_daqNrBxBoard; }
std::vector< int > m_daqNrBxBoard
number of Bx per board in the DAQ record
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.

References m_evmActiveBoards, and setGtEvmActiveBoards().

Referenced by L1GlobalTrigger::produce().

53 { return m_evmActiveBoards; }
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 63 of file L1GtParameters.h.

References m_evmNrBxBoard, and setGtEvmNrBxBoard().

63 { return m_evmNrBxBoard; }
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 43 of file L1GtParameters.h.

References m_totalBxInEvent, and setGtTotalBxInEvent().

Referenced by HLTGetDigi::analyze(), and L1GlobalTrigger::produce().

43 { return m_totalBxInEvent; }
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 58 of file L1GtParameters.cc.

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

Referenced by L1TConfigDumper::analyze(), gtBstLengthBytes(), and operator<<().

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 }
std::vector< int > m_daqNrBxBoard
number of Bx per board in the DAQ record
unsigned int m_bstLengthBytes
length of BST message (in bytes)
uint16_t m_evmActiveBoards
active boards in the L1 EVM record
uint16_t m_daqActiveBoards
active boards in the L1 DAQ 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
template<class Archive >
void L1GtParameters::serialize ( Archive &  ar,
const unsigned int  version 
)
private
void L1GtParameters::setGtBstLengthBytes ( const unsigned int &  bstLengthBytesValue)

Definition at line 53 of file L1GtParameters.cc.

References m_bstLengthBytes.

Referenced by gtBstLengthBytes().

53  {
54  m_bstLengthBytes = bstLengthBytesValue;
55 }
unsigned int m_bstLengthBytes
length of BST message (in bytes)
void L1GtParameters::setGtDaqActiveBoards ( const uint16_t &  activeBoardsValue)

Definition at line 42 of file L1GtParameters.cc.

References m_daqActiveBoards.

Referenced by gtDaqActiveBoards().

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

Definition at line 48 of file L1GtParameters.cc.

References m_daqNrBxBoard.

Referenced by gtDaqNrBxBoard().

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

Definition at line 45 of file L1GtParameters.cc.

References m_evmActiveBoards.

Referenced by gtEvmActiveBoards().

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

Definition at line 51 of file L1GtParameters.cc.

References m_evmNrBxBoard.

Referenced by gtEvmNrBxBoard().

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

Definition at line 39 of file L1GtParameters.cc.

References m_totalBxInEvent.

Referenced by gtTotalBxInEvent().

39 { m_totalBxInEvent = totalBxInEventValue; }
int m_totalBxInEvent
total Bx&#39;s in the event

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 97 of file L1GtParameters.h.

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

Definition at line 97 of file L1GtParameters.h.

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

output stream operator

Definition at line 99 of file L1GtParameters.cc.

Referenced by gtBstLengthBytes().

99  {
100  result.print(os);
101  return os;
102 }
void print(std::ostream &) const
print all the L1 GT parameters

Member Data Documentation

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().

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().

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().

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().

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().

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().