CMS 3D CMS Logo

L1GtPsbConfig.h
Go to the documentation of this file.
1 #ifndef CondFormats_L1TObjects_L1GtPsbConfig_h
2 #define CondFormats_L1TObjects_L1GtPsbConfig_h
3 
20 // system include files
22 
23 #include <vector>
24 #include <iosfwd>
25 
26 // user include files
28 
29 // forward declarations
30 
31 // class declaration
33 public:
35  L1GtPsbConfig();
36 
38  L1GtPsbConfig(const int&);
39 
41  virtual ~L1GtPsbConfig();
42 
45 
48 
50  bool operator==(const L1GtPsbConfig&) const;
51 
53  bool operator!=(const L1GtPsbConfig&) const;
54 
56  bool operator<(const L1GtPsbConfig&) const;
57 
58 public:
60  static const int PsbNumberLvdsGroups;
61 
63  static const int PsbSerLinkNumberChannels;
64 
65 public:
67  inline const int gtBoardSlot() const { return m_gtBoardSlot; }
68 
69  void setGtBoardSlot(const int&);
70 
72  inline const bool gtPsbCh0SendLvds() const { return m_gtPsbCh0SendLvds; }
73 
74  void setGtPsbCh0SendLvds(const bool&);
75 
77  inline const bool gtPsbCh1SendLvds() const { return m_gtPsbCh1SendLvds; }
78 
79  void setGtPsbCh1SendLvds(const bool&);
80 
82  inline const std::vector<bool>& gtPsbEnableRecLvds() const { return m_gtPsbEnableRecLvds; }
83 
84  void setGtPsbEnableRecLvds(const std::vector<bool>&);
85 
87  inline const std::vector<bool>& gtPsbEnableRecSerLink() const { return m_gtPsbEnableRecSerLink; }
88 
89  void setGtPsbEnableRecSerLink(const std::vector<bool>&);
90 
92  void print(std::ostream& myCout) const;
93 
95  friend std::ostream& operator<<(std::ostream&, const L1GtPsbConfig&);
96 
97 private:
100 
103 
106 
109  std::vector<bool> m_gtPsbEnableRecLvds;
110 
112  std::vector<bool> m_gtPsbEnableRecSerLink;
113 
115 };
116 
117 #endif /*CondFormats_L1TObjects_L1GtPsbConfig_h*/
L1GtPsbConfig::~L1GtPsbConfig
virtual ~L1GtPsbConfig()
destructor
Definition: L1GtPsbConfig.cc:50
L1GtPsbConfig::m_gtPsbEnableRecSerLink
std::vector< bool > m_gtPsbEnableRecSerLink
enable channels for receiving signal via serial links
Definition: L1GtPsbConfig.h:112
L1GtPsbConfig::gtPsbCh1SendLvds
const bool gtPsbCh1SendLvds() const
get / set CH1_SEND_LVDS_NOT_DS92LV16
Definition: L1GtPsbConfig.h:77
L1GtPsbConfig::L1GtPsbConfig
L1GtPsbConfig()
constructors
Definition: L1GtPsbConfig.cc:30
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
L1GtPsbConfig::m_gtBoardSlot
int m_gtBoardSlot
the slot of board (part of Board_Id)
Definition: L1GtPsbConfig.h:99
L1GtPsbConfig::m_gtPsbCh0SendLvds
bool m_gtPsbCh0SendLvds
CH0_SEND_LVDS_NOT_DS92LV16.
Definition: L1GtPsbConfig.h:102
L1GtPsbConfig::setGtPsbEnableRecSerLink
void setGtPsbEnableRecSerLink(const std::vector< bool > &)
Definition: L1GtPsbConfig.cc:139
L1GtPsbConfig::gtBoardSlot
const int gtBoardSlot() const
get / set board slot
Definition: L1GtPsbConfig.h:67
L1GtPsbConfig::setGtPsbCh0SendLvds
void setGtPsbCh0SendLvds(const bool &)
Definition: L1GtPsbConfig.cc:124
L1GtPsbConfig::print
void print(std::ostream &myCout) const
print board
Definition: L1GtPsbConfig.cc:144
L1GtPsbConfig::PsbNumberLvdsGroups
static const int PsbNumberLvdsGroups
number of LVDS groups per board
Definition: L1GtPsbConfig.h:60
L1GtPsbConfig::setGtBoardSlot
void setGtBoardSlot(const int &)
Definition: L1GtPsbConfig.cc:121
L1GtPsbConfig::operator!=
bool operator!=(const L1GtPsbConfig &) const
unequal operator
Definition: L1GtPsbConfig.cc:107
L1GtPsbConfig::operator<
bool operator<(const L1GtPsbConfig &) const
less than operator
Definition: L1GtPsbConfig.cc:110
L1GtPsbConfig::operator<<
friend std::ostream & operator<<(std::ostream &, const L1GtPsbConfig &)
output stream operator
Definition: L1GtPsbConfig.cc:169
L1GtPsbConfig::gtPsbEnableRecSerLink
const std::vector< bool > & gtPsbEnableRecSerLink() const
get / set enable channels for receiving signal via serial links
Definition: L1GtPsbConfig.h:87
Serializable.h
L1GtFwd.h
L1GtPsbConfig::operator=
L1GtPsbConfig & operator=(const L1GtPsbConfig &)
assignment operator
Definition: L1GtPsbConfig.cc:66
L1GtPsbConfig::m_gtPsbEnableRecLvds
std::vector< bool > m_gtPsbEnableRecLvds
Definition: L1GtPsbConfig.h:109
L1GtPsbConfig
Definition: L1GtPsbConfig.h:32
L1GtPsbConfig::m_gtPsbCh1SendLvds
bool m_gtPsbCh1SendLvds
CH1_SEND_LVDS_NOT_DS92LV16.
Definition: L1GtPsbConfig.h:105
L1GtPsbConfig::PsbSerLinkNumberChannels
static const int PsbSerLinkNumberChannels
number of channels per board
Definition: L1GtPsbConfig.h:63
L1GtPsbConfig::gtPsbEnableRecLvds
const std::vector< bool > & gtPsbEnableRecLvds() const
get / set enable LVDS
Definition: L1GtPsbConfig.h:82
L1GtPsbConfig::operator==
bool operator==(const L1GtPsbConfig &) const
equal operator
Definition: L1GtPsbConfig.cc:81
L1GtPsbConfig::setGtPsbEnableRecLvds
void setGtPsbEnableRecLvds(const std::vector< bool > &)
Definition: L1GtPsbConfig.cc:134
L1GtPsbConfig::setGtPsbCh1SendLvds
void setGtPsbCh1SendLvds(const bool &)
Definition: L1GtPsbConfig.cc:129
L1GtPsbConfig::gtPsbCh0SendLvds
const bool gtPsbCh0SendLvds() const
get / set CH0_SEND_LVDS_NOT_DS92LV16
Definition: L1GtPsbConfig.h:72