test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

bool operator< ( const FedChannelConnection ,
const FedChannelConnection  
)

Overload less than operator.

Definition at line 75 of file FedChannelConnection.cc.

References edm::false, FedChannelConnection::fedCh(), and FedChannelConnection::fedId().

Referenced by FWConfigurationManager::guessAndReadFromFile().

75  {
76  if ( conn1.fedId() < conn2.fedId() ) { return true; }
77  else if ( conn1.fedId() == conn2.fedId() ) { return ( conn1.fedCh() < conn2.fedCh() ? true : false ); }
78  else { return false; }
79 }
const uint16_t & fedCh() const
const uint16_t & fedId() const
volatile std::atomic< bool > shutdown_flag false
std::ostream& operator<< ( std::ostream &  ,
const FedChannelConnection  
)

Debug info for FedChannelConnection class.

Definition at line 227 of file FedChannelConnection.cc.

References FedChannelConnection::print(), and contentValuesCheck::ss.

227  {
228  std::stringstream ss;
229  conn.print(ss);
230  os << ss.str();
231  return os;
232 }
void print(std::stringstream &) const