test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1GtParameters.h
Go to the documentation of this file.
1 #ifndef CondFormats_L1TObjects_L1GtParameters_h
2 #define CondFormats_L1TObjects_L1GtParameters_h
3 
20 // system include files
22 
23 #include <ostream>
24 #include <vector>
25 
26 #include <boost/cstdint.hpp>
27 
28 // user include files
29 // base class
30 
31 // forward declarations
32 
33 // class declaration
35 {
36 
37 public:
38 
39  // constructor
41 
42  // destructor
43  virtual ~L1GtParameters();
44 
45 public:
46 
48  inline const int gtTotalBxInEvent() const
49  {
50  return m_totalBxInEvent;
51  }
52 
53  void setGtTotalBxInEvent(const int&);
54 
55 
57  inline const boost::uint16_t gtDaqActiveBoards() const
58  {
59  return m_daqActiveBoards;
60  }
61 
62  void setGtDaqActiveBoards(const boost::uint16_t&);
63 
64 
66  inline const boost::uint16_t gtEvmActiveBoards() const
67  {
68  return m_evmActiveBoards;
69  }
70 
71  void setGtEvmActiveBoards(const boost::uint16_t&);
72 
73 
74 
76  inline const std::vector<int>& gtDaqNrBxBoard() const
77  {
78  return m_daqNrBxBoard;
79  }
80 
81  void setGtDaqNrBxBoard(const std::vector<int>&);
82 
83 
85  inline const std::vector<int>& gtEvmNrBxBoard() const
86  {
87  return m_evmNrBxBoard;
88  }
89 
90  void setGtEvmNrBxBoard(const std::vector<int>&);
91 
92 
94  inline const unsigned int gtBstLengthBytes() const
95  {
96  return m_bstLengthBytes;
97  }
98 
99  void setGtBstLengthBytes(const unsigned int&);
100 
102  void print(std::ostream&) const;
103 
105  friend std::ostream& operator<<(std::ostream&, const L1GtParameters&);
106 
107 private:
108 
111 
113  boost::uint16_t m_daqActiveBoards;
114 
116  boost::uint16_t m_evmActiveBoards;
117 
119  std::vector<int> m_daqNrBxBoard;
120 
122  std::vector<int> m_evmNrBxBoard;
123 
125  unsigned int m_bstLengthBytes;
126 
127 
128 
130 };
131 
132 #endif /*CondFormats_L1TObjects_L1GtParameters_h*/
friend std::ostream & operator<<(std::ostream &, const L1GtParameters &)
output stream operator
virtual ~L1GtParameters()
const boost::uint16_t gtDaqActiveBoards() const
get / set the active boards for L1 GT DAQ record
const int gtTotalBxInEvent() const
get / set the total Bx&#39;s in the event
void setGtDaqNrBxBoard(const std::vector< int > &)
void setGtBstLengthBytes(const unsigned int &)
const unsigned int gtBstLengthBytes() const
get / set length of BST message (in bytes) for L1 GT EVM record
std::vector< int > m_daqNrBxBoard
number of Bx per board in the DAQ record
unsigned int m_bstLengthBytes
length of BST message (in bytes)
void print(std::ostream &) const
print all the L1 GT parameters
const std::vector< int > & gtEvmNrBxBoard() const
get / set the number of Bx per board for L1 GT EVM record
boost::uint16_t m_daqActiveBoards
active boards in the L1 DAQ record
void setGtTotalBxInEvent(const int &)
void setGtEvmActiveBoards(const boost::uint16_t &)
void setGtDaqActiveBoards(const boost::uint16_t &)
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
#define COND_SERIALIZABLE
Definition: Serializable.h:37
boost::uint16_t m_evmActiveBoards
active boards in the L1 EVM record
void setGtEvmNrBxBoard(const std::vector< int > &)
std::vector< int > m_evmNrBxBoard
number of Bx per board in the EVM record
int m_totalBxInEvent
total Bx&#39;s in the event