CMS 3D CMS Logo

Functions
FedChannelConnection.cc File Reference
#include "CondFormats/SiStripObjects/interface/FedChannelConnection.h"
#include "DataFormats/SiStripCommon/interface/SiStripFedKey.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <iomanip>
#include <string>

Go to the source code of this file.

Functions

bool operator< (const FedChannelConnection &conn1, const FedChannelConnection &conn2)
 
std::ostream & operator<< (std::ostream &os, const FedChannelConnection &conn)
 

Function Documentation

◆ operator<()

bool operator< ( const FedChannelConnection ,
const FedChannelConnection  
)

Overload less than operator.

Definition at line 77 of file FedChannelConnection.cc.

77  {
78  if (conn1.fedId() < conn2.fedId()) {
79  return true;
80  } else if (conn1.fedId() == conn2.fedId()) {
81  return (conn1.fedCh() < conn2.fedCh() ? true : false);
82  } else {
83  return false;
84  }
85 }

References FedChannelConnection::fedCh(), FedChannelConnection::fedId(), and funct::true.

◆ operator<<()

std::ostream& operator<< ( std::ostream &  ,
const FedChannelConnection  
)

Debug info for FedChannelConnection class.

Definition at line 195 of file FedChannelConnection.cc.

195  {
196  std::stringstream ss;
197  conn.print(ss);
198  os << ss.str();
199  return os;
200 }

References SiStripCommissioningClient_cfg::conn, and contentValuesCheck::ss.

FedChannelConnection::fedCh
const uint16_t & fedCh() const
Definition: FedChannelConnection.h:221
SiStripCommissioningClient_cfg.conn
conn
Definition: SiStripCommissioningClient_cfg.py:5
contentValuesCheck.ss
ss
Definition: contentValuesCheck.py:33
funct::true
true
Definition: Factorize.h:173
FedChannelConnection::fedId
const uint16_t & fedId() const
Definition: FedChannelConnection.h:220