CMS 3D CMS Logo

Classes | Macros | Functions
FedChannelConnection.h File Reference
#include "CondFormats/Serialization/interface/Serializable.h"
#include "DataFormats/SiStripCommon/interface/SiStripConstants.h"
#include <ostream>
#include <sstream>
#include <cstdint>

Go to the source code of this file.

Classes

class  FedChannelConnection
 Class containning control, module, detector and connection information, at the level of a FED channel. More...
 

Macros

#define CondFormats_SiStripObjects_FedChannelConnection_H
 

Functions

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

Macro Definition Documentation

◆ CondFormats_SiStripObjects_FedChannelConnection_H

#define CondFormats_SiStripObjects_FedChannelConnection_H

Function Documentation

◆ operator<()

bool operator< ( const FedChannelConnection ,
const FedChannelConnection  
)

Overload less than operator.

Definition at line 77 of file FedChannelConnection.cc.

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

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 }

◆ operator<<()

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

Debug info for FedChannelConnection class.

Definition at line 195 of file FedChannelConnection.cc.

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

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