File indexing completed on 2024-04-06 12:02:20
0001 #ifndef CondFormats_L1TObjects_L1GtPsbConfig_h
0002 #define CondFormats_L1TObjects_L1GtPsbConfig_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021 #include "CondFormats/Serialization/interface/Serializable.h"
0022
0023 #include <vector>
0024 #include <iosfwd>
0025
0026
0027 #include "CondFormats/L1TObjects/interface/L1GtFwd.h"
0028
0029
0030
0031
0032 class L1GtPsbConfig {
0033 public:
0034
0035 L1GtPsbConfig();
0036
0037
0038 L1GtPsbConfig(const int&);
0039
0040
0041 virtual ~L1GtPsbConfig();
0042
0043
0044 L1GtPsbConfig(const L1GtPsbConfig&);
0045
0046
0047 L1GtPsbConfig& operator=(const L1GtPsbConfig&);
0048
0049
0050 bool operator==(const L1GtPsbConfig&) const;
0051
0052
0053 bool operator!=(const L1GtPsbConfig&) const;
0054
0055
0056 bool operator<(const L1GtPsbConfig&) const;
0057
0058 public:
0059
0060 static const int PsbNumberLvdsGroups;
0061
0062
0063 static const int PsbSerLinkNumberChannels;
0064
0065 public:
0066
0067 inline const int gtBoardSlot() const { return m_gtBoardSlot; }
0068
0069 void setGtBoardSlot(const int&);
0070
0071
0072 inline const bool gtPsbCh0SendLvds() const { return m_gtPsbCh0SendLvds; }
0073
0074 void setGtPsbCh0SendLvds(const bool&);
0075
0076
0077 inline const bool gtPsbCh1SendLvds() const { return m_gtPsbCh1SendLvds; }
0078
0079 void setGtPsbCh1SendLvds(const bool&);
0080
0081
0082 inline const std::vector<bool>& gtPsbEnableRecLvds() const { return m_gtPsbEnableRecLvds; }
0083
0084 void setGtPsbEnableRecLvds(const std::vector<bool>&);
0085
0086
0087 inline const std::vector<bool>& gtPsbEnableRecSerLink() const { return m_gtPsbEnableRecSerLink; }
0088
0089 void setGtPsbEnableRecSerLink(const std::vector<bool>&);
0090
0091
0092 void print(std::ostream& myCout) const;
0093
0094
0095 friend std::ostream& operator<<(std::ostream&, const L1GtPsbConfig&);
0096
0097 private:
0098
0099 int m_gtBoardSlot;
0100
0101
0102 bool m_gtPsbCh0SendLvds;
0103
0104
0105 bool m_gtPsbCh1SendLvds;
0106
0107
0108
0109 std::vector<bool> m_gtPsbEnableRecLvds;
0110
0111
0112 std::vector<bool> m_gtPsbEnableRecSerLink;
0113
0114 COND_SERIALIZABLE;
0115 };
0116
0117 #endif