L1GtParameters

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
#ifndef CondFormats_L1TObjects_L1GtParameters_h
#define CondFormats_L1TObjects_L1GtParameters_h

/**
 * \class L1GtParameters
 *
 *
 * Description: L1 GT parameters.
 *
 * Implementation:
 *    <TODO: enter implementation details>
 *
 * \author: Vasile Mihai Ghete - HEPHY Vienna
 *
 * $Date$
 * $Revision$
 *
 */

// system include files
#include "CondFormats/Serialization/interface/Serializable.h"

#include <ostream>
#include <vector>
#include <cstdint>

// user include files
//   base class

// forward declarations

// class declaration
class L1GtParameters {
public:
  // constructor
  L1GtParameters();

  // destructor
  virtual ~L1GtParameters();

public:
  /// get / set the total Bx's in the event
  inline const int gtTotalBxInEvent() const { return m_totalBxInEvent; }

  void setGtTotalBxInEvent(const int&);

  /// get / set the active boards for L1 GT DAQ record
  inline const uint16_t gtDaqActiveBoards() const { return m_daqActiveBoards; }

  void setGtDaqActiveBoards(const uint16_t&);

  /// get / set the active boards for L1 GT EVM record
  inline const uint16_t gtEvmActiveBoards() const { return m_evmActiveBoards; }

  void setGtEvmActiveBoards(const uint16_t&);

  /// get / set the number of Bx per board for L1 GT DAQ record
  inline const std::vector<int>& gtDaqNrBxBoard() const { return m_daqNrBxBoard; }

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

  /// get / set the number of Bx per board for L1 GT EVM record
  inline const std::vector<int>& gtEvmNrBxBoard() const { return m_evmNrBxBoard; }

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

  /// get / set length of BST message (in bytes) for L1 GT EVM record
  inline const unsigned int gtBstLengthBytes() const { return m_bstLengthBytes; }

  void setGtBstLengthBytes(const unsigned int&);

  /// print all the L1 GT parameters
  void print(std::ostream&) const;

  /// output stream operator
  friend std::ostream& operator<<(std::ostream&, const L1GtParameters&);

private:
  /// total Bx's in the event
  int m_totalBxInEvent;

  /// active boards in the L1 DAQ record
  uint16_t m_daqActiveBoards;

  /// active boards in the L1 EVM record
  uint16_t m_evmActiveBoards;

  /// number of Bx per board in the DAQ record
  std::vector<int> m_daqNrBxBoard;

  /// number of Bx per board in the EVM record
  std::vector<int> m_evmNrBxBoard;

  /// length of BST message (in bytes)
  unsigned int m_bstLengthBytes;

  COND_SERIALIZABLE;
};

#endif /*CondFormats_L1TObjects_L1GtParameters_h*/