CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | Friends
L1GtPsbConfig Class Reference

#include <L1GtPsbConfig.h>

Public Member Functions

const int gtBoardSlot () const
 get / set board slot More...
 
const bool gtPsbCh0SendLvds () const
 get / set CH0_SEND_LVDS_NOT_DS92LV16 More...
 
const bool gtPsbCh1SendLvds () const
 get / set CH1_SEND_LVDS_NOT_DS92LV16 More...
 
const std::vector< bool > & gtPsbEnableRecLvds () const
 get / set enable LVDS More...
 
const std::vector< bool > & gtPsbEnableRecSerLink () const
 get / set enable channels for receiving signal via serial links More...
 
 L1GtPsbConfig ()
 constructors More...
 
 L1GtPsbConfig (const int &)
 constructor using board slot More...
 
 L1GtPsbConfig (const L1GtPsbConfig &)
 copy constructor More...
 
bool operator!= (const L1GtPsbConfig &) const
 unequal operator More...
 
bool operator< (const L1GtPsbConfig &) const
 less than operator More...
 
L1GtPsbConfigoperator= (const L1GtPsbConfig &)
 assignment operator More...
 
bool operator== (const L1GtPsbConfig &) const
 equal operator More...
 
void print (std::ostream &myCout) const
 print board More...
 
void setGtBoardSlot (const int &)
 
void setGtPsbCh0SendLvds (const bool &)
 
void setGtPsbCh1SendLvds (const bool &)
 
void setGtPsbEnableRecLvds (const std::vector< bool > &)
 
void setGtPsbEnableRecSerLink (const std::vector< bool > &)
 
virtual ~L1GtPsbConfig ()
 destructor More...
 

Static Public Attributes

static const int PsbNumberLvdsGroups = 16
 number of LVDS groups per board More...
 
static const int PsbSerLinkNumberChannels = 8
 number of channels per board More...
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

int m_gtBoardSlot
 the slot of board (part of Board_Id) More...
 
bool m_gtPsbCh0SendLvds
 CH0_SEND_LVDS_NOT_DS92LV16. More...
 
bool m_gtPsbCh1SendLvds
 CH1_SEND_LVDS_NOT_DS92LV16. More...
 
std::vector< bool > m_gtPsbEnableRecLvds
 
std::vector< bool > m_gtPsbEnableRecSerLink
 enable channels for receiving signal via serial links More...
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 
std::ostream & operator<< (std::ostream &, const L1GtPsbConfig &)
 output stream operator More...
 

Detailed Description

Description: class for L1 GT PSB board configuration.

Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna

$Date$ $Revision$

Definition at line 32 of file L1GtPsbConfig.h.

Constructor & Destructor Documentation

L1GtPsbConfig::L1GtPsbConfig ( )

constructors

Definition at line 30 of file L1GtPsbConfig.cc.

References m_gtBoardSlot, m_gtPsbCh0SendLvds, m_gtPsbCh1SendLvds, m_gtPsbEnableRecLvds, m_gtPsbEnableRecSerLink, PsbNumberLvdsGroups, and PsbSerLinkNumberChannels.

30  {
31  m_gtBoardSlot = -1;
32 
33  m_gtPsbCh0SendLvds = false;
34  m_gtPsbCh1SendLvds = false;
35 
38 }
bool m_gtPsbCh1SendLvds
CH1_SEND_LVDS_NOT_DS92LV16.
static const int PsbSerLinkNumberChannels
number of channels per board
Definition: L1GtPsbConfig.h:63
int m_gtBoardSlot
the slot of board (part of Board_Id)
Definition: L1GtPsbConfig.h:99
static const int PsbNumberLvdsGroups
number of LVDS groups per board
Definition: L1GtPsbConfig.h:60
bool m_gtPsbCh0SendLvds
CH0_SEND_LVDS_NOT_DS92LV16.
std::vector< bool > m_gtPsbEnableRecLvds
std::vector< bool > m_gtPsbEnableRecSerLink
enable channels for receiving signal via serial links
L1GtPsbConfig::L1GtPsbConfig ( const int &  psbSlot)

constructor using board slot

Definition at line 41 of file L1GtPsbConfig.cc.

References m_gtPsbCh0SendLvds, m_gtPsbCh1SendLvds, m_gtPsbEnableRecLvds, m_gtPsbEnableRecSerLink, PsbNumberLvdsGroups, and PsbSerLinkNumberChannels.

41  : m_gtBoardSlot(psbSlot) {
42  m_gtPsbCh0SendLvds = false;
43  m_gtPsbCh1SendLvds = false;
44 
47 }
bool m_gtPsbCh1SendLvds
CH1_SEND_LVDS_NOT_DS92LV16.
static const int PsbSerLinkNumberChannels
number of channels per board
Definition: L1GtPsbConfig.h:63
int m_gtBoardSlot
the slot of board (part of Board_Id)
Definition: L1GtPsbConfig.h:99
static const int PsbNumberLvdsGroups
number of LVDS groups per board
Definition: L1GtPsbConfig.h:60
bool m_gtPsbCh0SendLvds
CH0_SEND_LVDS_NOT_DS92LV16.
std::vector< bool > m_gtPsbEnableRecLvds
std::vector< bool > m_gtPsbEnableRecSerLink
enable channels for receiving signal via serial links
L1GtPsbConfig::~L1GtPsbConfig ( )
virtual

destructor

Definition at line 50 of file L1GtPsbConfig.cc.

50  {
51  // empty
52 }
L1GtPsbConfig::L1GtPsbConfig ( const L1GtPsbConfig gtb)

copy constructor

Definition at line 55 of file L1GtPsbConfig.cc.

References m_gtBoardSlot, m_gtPsbCh0SendLvds, m_gtPsbCh1SendLvds, m_gtPsbEnableRecLvds, and m_gtPsbEnableRecSerLink.

55  {
57 
60 
63 }
bool m_gtPsbCh1SendLvds
CH1_SEND_LVDS_NOT_DS92LV16.
int m_gtBoardSlot
the slot of board (part of Board_Id)
Definition: L1GtPsbConfig.h:99
bool m_gtPsbCh0SendLvds
CH0_SEND_LVDS_NOT_DS92LV16.
std::vector< bool > m_gtPsbEnableRecLvds
std::vector< bool > m_gtPsbEnableRecSerLink
enable channels for receiving signal via serial links

Member Function Documentation

const int L1GtPsbConfig::gtBoardSlot ( ) const
inline

get / set board slot

Definition at line 67 of file L1GtPsbConfig.h.

References m_gtBoardSlot.

67 { return m_gtBoardSlot; }
int m_gtBoardSlot
the slot of board (part of Board_Id)
Definition: L1GtPsbConfig.h:99
const bool L1GtPsbConfig::gtPsbCh0SendLvds ( ) const
inline

get / set CH0_SEND_LVDS_NOT_DS92LV16

Definition at line 72 of file L1GtPsbConfig.h.

References m_gtPsbCh0SendLvds.

72 { return m_gtPsbCh0SendLvds; }
bool m_gtPsbCh0SendLvds
CH0_SEND_LVDS_NOT_DS92LV16.
const bool L1GtPsbConfig::gtPsbCh1SendLvds ( ) const
inline

get / set CH1_SEND_LVDS_NOT_DS92LV16

Definition at line 77 of file L1GtPsbConfig.h.

References m_gtPsbCh1SendLvds.

77 { return m_gtPsbCh1SendLvds; }
bool m_gtPsbCh1SendLvds
CH1_SEND_LVDS_NOT_DS92LV16.
const std::vector<bool>& L1GtPsbConfig::gtPsbEnableRecLvds ( ) const
inline

get / set enable LVDS

Definition at line 82 of file L1GtPsbConfig.h.

References m_gtPsbEnableRecLvds.

82 { return m_gtPsbEnableRecLvds; }
std::vector< bool > m_gtPsbEnableRecLvds
const std::vector<bool>& L1GtPsbConfig::gtPsbEnableRecSerLink ( ) const
inline

get / set enable channels for receiving signal via serial links

Definition at line 87 of file L1GtPsbConfig.h.

References m_gtPsbEnableRecSerLink.

87 { return m_gtPsbEnableRecSerLink; }
std::vector< bool > m_gtPsbEnableRecSerLink
enable channels for receiving signal via serial links
bool L1GtPsbConfig::operator!= ( const L1GtPsbConfig result) const

unequal operator

Definition at line 107 of file L1GtPsbConfig.cc.

107 { return !(result == *this); }
bool L1GtPsbConfig::operator< ( const L1GtPsbConfig gtb) const

less than operator

Definition at line 110 of file L1GtPsbConfig.cc.

References m_gtBoardSlot.

110  {
111  if (m_gtBoardSlot < gtb.m_gtBoardSlot) {
112  return true;
113  } else {
114  return false;
115  }
116 
117  return false;
118 }
int m_gtBoardSlot
the slot of board (part of Board_Id)
Definition: L1GtPsbConfig.h:99
L1GtPsbConfig & L1GtPsbConfig::operator= ( const L1GtPsbConfig gtb)

assignment operator

Definition at line 66 of file L1GtPsbConfig.cc.

References m_gtBoardSlot, m_gtPsbCh0SendLvds, m_gtPsbCh1SendLvds, m_gtPsbEnableRecLvds, and m_gtPsbEnableRecSerLink.

66  {
67  if (this != &gtb) {
69 
72 
75  }
76 
77  return *this;
78 }
bool m_gtPsbCh1SendLvds
CH1_SEND_LVDS_NOT_DS92LV16.
int m_gtBoardSlot
the slot of board (part of Board_Id)
Definition: L1GtPsbConfig.h:99
bool m_gtPsbCh0SendLvds
CH0_SEND_LVDS_NOT_DS92LV16.
std::vector< bool > m_gtPsbEnableRecLvds
std::vector< bool > m_gtPsbEnableRecSerLink
enable channels for receiving signal via serial links
bool L1GtPsbConfig::operator== ( const L1GtPsbConfig gtb) const

equal operator

Definition at line 81 of file L1GtPsbConfig.cc.

References m_gtBoardSlot, m_gtPsbCh0SendLvds, m_gtPsbCh1SendLvds, m_gtPsbEnableRecLvds, and m_gtPsbEnableRecSerLink.

81  {
82  if (m_gtBoardSlot != gtb.m_gtBoardSlot) {
83  return false;
84  }
85 
87  return false;
88  }
89 
91  return false;
92  }
93 
95  return false;
96  }
97 
99  return false;
100  }
101 
102  // all members identical
103  return true;
104 }
bool m_gtPsbCh1SendLvds
CH1_SEND_LVDS_NOT_DS92LV16.
int m_gtBoardSlot
the slot of board (part of Board_Id)
Definition: L1GtPsbConfig.h:99
bool m_gtPsbCh0SendLvds
CH0_SEND_LVDS_NOT_DS92LV16.
std::vector< bool > m_gtPsbEnableRecLvds
std::vector< bool > m_gtPsbEnableRecSerLink
enable channels for receiving signal via serial links
void L1GtPsbConfig::print ( std::ostream &  myCout) const

print board

Definition at line 144 of file L1GtPsbConfig.cc.

References TauDecayModes::dec, m_gtBoardSlot, m_gtPsbCh0SendLvds, m_gtPsbCh1SendLvds, m_gtPsbEnableRecLvds, and m_gtPsbEnableRecSerLink.

Referenced by operator<<().

144  {
145  myCout << "PSB Board slot " << m_gtBoardSlot << " ( 0x" << std::hex << m_gtBoardSlot << std::dec
146  << " ):" << std::endl;
147 
148  myCout << " CH0_SEND_LVDS_NOT_DS92LV16 = " << (m_gtPsbCh0SendLvds ? "True" : "False") << std::endl;
149  myCout << " CH1_SEND_LVDS_NOT_DS92LV16 = " << (m_gtPsbCh1SendLvds ? "True" : "False") << std::endl;
150  myCout << std::endl;
151 
152  int iLvds = -1;
153  for (std::vector<bool>::const_iterator cIt = m_gtPsbEnableRecLvds.begin(); cIt != m_gtPsbEnableRecLvds.end(); ++cIt) {
154  iLvds++;
155  myCout << "\n Enable_Rec_LVDS [" << iLvds << "] = " << ((*cIt) ? "True" : "False");
156  }
157  myCout << std::endl;
158 
159  int iCh = -1;
160  for (std::vector<bool>::const_iterator cIt = m_gtPsbEnableRecSerLink.begin(); cIt != m_gtPsbEnableRecSerLink.end();
161  ++cIt) {
162  iCh++;
163  myCout << "\n SerLink_Ch" << iCh << "_Rec_Enable = " << ((*cIt) ? "True" : "False");
164  }
165  myCout << std::endl;
166 }
bool m_gtPsbCh1SendLvds
CH1_SEND_LVDS_NOT_DS92LV16.
int m_gtBoardSlot
the slot of board (part of Board_Id)
Definition: L1GtPsbConfig.h:99
bool m_gtPsbCh0SendLvds
CH0_SEND_LVDS_NOT_DS92LV16.
std::vector< bool > m_gtPsbEnableRecLvds
std::vector< bool > m_gtPsbEnableRecSerLink
enable channels for receiving signal via serial links
template<class Archive >
void L1GtPsbConfig::serialize ( Archive &  ar,
const unsigned int  version 
)
private
void L1GtPsbConfig::setGtBoardSlot ( const int &  gtBoardSlotValue)

Definition at line 121 of file L1GtPsbConfig.cc.

References m_gtBoardSlot.

Referenced by L1GtPsbSetupConfigOnlineProd::addDefaultPsb(), and L1GtPsbSetupConfigOnlineProd::addPsbFromDb().

121 { m_gtBoardSlot = gtBoardSlotValue; }
int m_gtBoardSlot
the slot of board (part of Board_Id)
Definition: L1GtPsbConfig.h:99
void L1GtPsbConfig::setGtPsbCh0SendLvds ( const bool &  gtPsbCh0SendLvdsValue)

Definition at line 124 of file L1GtPsbConfig.cc.

References m_gtPsbCh0SendLvds.

Referenced by L1GtPsbSetupConfigOnlineProd::addDefaultPsb(), L1GtPsbSetupConfigOnlineProd::addPsbFromDb(), and L1GtPsbSetupTrivialProducer::L1GtPsbSetupTrivialProducer().

124  {
125  m_gtPsbCh0SendLvds = gtPsbCh0SendLvdsValue;
126 }
bool m_gtPsbCh0SendLvds
CH0_SEND_LVDS_NOT_DS92LV16.
void L1GtPsbConfig::setGtPsbCh1SendLvds ( const bool &  gtPsbCh1SendLvdsValue)

Definition at line 129 of file L1GtPsbConfig.cc.

References m_gtPsbCh1SendLvds.

Referenced by L1GtPsbSetupConfigOnlineProd::addDefaultPsb(), L1GtPsbSetupConfigOnlineProd::addPsbFromDb(), and L1GtPsbSetupTrivialProducer::L1GtPsbSetupTrivialProducer().

129  {
130  m_gtPsbCh1SendLvds = gtPsbCh1SendLvdsValue;
131 }
bool m_gtPsbCh1SendLvds
CH1_SEND_LVDS_NOT_DS92LV16.
void L1GtPsbConfig::setGtPsbEnableRecLvds ( const std::vector< bool > &  gtPsbEnableRecLvdsValue)
void L1GtPsbConfig::setGtPsbEnableRecSerLink ( const std::vector< bool > &  gtPsbEnableRecSerLinkValue)

Definition at line 139 of file L1GtPsbConfig.cc.

References m_gtPsbEnableRecSerLink.

Referenced by L1GtPsbSetupConfigOnlineProd::addDefaultPsb(), L1GtPsbSetupConfigOnlineProd::addPsbFromDb(), and L1GtPsbSetupTrivialProducer::L1GtPsbSetupTrivialProducer().

139  {
140  m_gtPsbEnableRecSerLink = gtPsbEnableRecSerLinkValue;
141 }
std::vector< bool > m_gtPsbEnableRecSerLink
enable channels for receiving signal via serial links

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 114 of file L1GtPsbConfig.h.

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 114 of file L1GtPsbConfig.h.

std::ostream& operator<< ( std::ostream &  os,
const L1GtPsbConfig result 
)
friend

output stream operator

Definition at line 169 of file L1GtPsbConfig.cc.

169  {
170  result.print(os);
171  return os;
172 }
void print(std::ostream &myCout) const
print board

Member Data Documentation

int L1GtPsbConfig::m_gtBoardSlot
private

the slot of board (part of Board_Id)

Definition at line 99 of file L1GtPsbConfig.h.

Referenced by gtBoardSlot(), L1GtPsbConfig(), operator<(), operator=(), operator==(), print(), and setGtBoardSlot().

bool L1GtPsbConfig::m_gtPsbCh0SendLvds
private

CH0_SEND_LVDS_NOT_DS92LV16.

Definition at line 102 of file L1GtPsbConfig.h.

Referenced by gtPsbCh0SendLvds(), L1GtPsbConfig(), operator=(), operator==(), print(), and setGtPsbCh0SendLvds().

bool L1GtPsbConfig::m_gtPsbCh1SendLvds
private

CH1_SEND_LVDS_NOT_DS92LV16.

Definition at line 105 of file L1GtPsbConfig.h.

Referenced by gtPsbCh1SendLvds(), L1GtPsbConfig(), operator=(), operator==(), print(), and setGtPsbCh1SendLvds().

std::vector<bool> L1GtPsbConfig::m_gtPsbEnableRecLvds
private

enable LVDS (PsbNumberLvdsGroups = 16 groups of four bits) can be enabled/disabled per group

Definition at line 109 of file L1GtPsbConfig.h.

Referenced by gtPsbEnableRecLvds(), L1GtPsbConfig(), operator=(), operator==(), print(), and setGtPsbEnableRecLvds().

std::vector<bool> L1GtPsbConfig::m_gtPsbEnableRecSerLink
private

enable channels for receiving signal via serial links

Definition at line 112 of file L1GtPsbConfig.h.

Referenced by gtPsbEnableRecSerLink(), L1GtPsbConfig(), operator=(), operator==(), print(), and setGtPsbEnableRecSerLink().

const int L1GtPsbConfig::PsbNumberLvdsGroups = 16
static
const int L1GtPsbConfig::PsbSerLinkNumberChannels = 8
static