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
21 #include <ostream>
22 #include <vector>
23 
24 #include <boost/cstdint.hpp>
25 
26 // user include files
27 // base class
28 
29 // forward declarations
30 
31 // class declaration
33 {
34 
35 public:
36 
37  // constructor
39 
40  // destructor
41  virtual ~L1GtParameters();
42 
43 public:
44 
46  inline const int gtTotalBxInEvent() const
47  {
48  return m_totalBxInEvent;
49  }
50 
51  void setGtTotalBxInEvent(const int&);
52 
53 
55  inline const boost::uint16_t gtDaqActiveBoards() const
56  {
57  return m_daqActiveBoards;
58  }
59 
60  void setGtDaqActiveBoards(const boost::uint16_t&);
61 
62 
64  inline const boost::uint16_t gtEvmActiveBoards() const
65  {
66  return m_evmActiveBoards;
67  }
68 
69  void setGtEvmActiveBoards(const boost::uint16_t&);
70 
71 
72 
74  inline const std::vector<int>& gtDaqNrBxBoard() const
75  {
76  return m_daqNrBxBoard;
77  }
78 
79  void setGtDaqNrBxBoard(const std::vector<int>&);
80 
81 
83  inline const std::vector<int>& gtEvmNrBxBoard() const
84  {
85  return m_evmNrBxBoard;
86  }
87 
88  void setGtEvmNrBxBoard(const std::vector<int>&);
89 
90 
92  inline const unsigned int gtBstLengthBytes() const
93  {
94  return m_bstLengthBytes;
95  }
96 
97  void setGtBstLengthBytes(const unsigned int&);
98 
100  void print(std::ostream&) const;
101 
103  friend std::ostream& operator<<(std::ostream&, const L1GtParameters&);
104 
105 private:
106 
109 
111  boost::uint16_t m_daqActiveBoards;
112 
114  boost::uint16_t m_evmActiveBoards;
115 
117  std::vector<int> m_daqNrBxBoard;
118 
120  std::vector<int> m_evmNrBxBoard;
121 
123  unsigned int m_bstLengthBytes;
124 
125 
126 };
127 
128 #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
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