CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
SiPixelCalibDigiError.h File Reference
#include <iostream>
#include <utility>
#include <string>
#include "boost/cstdint.hpp"

Go to the source code of this file.

Classes

class  SiPixelCalibDigiError
 

Functions

bool operator< (const SiPixelCalibDigiError &one, const SiPixelCalibDigiError other)
 
std::ostream & operator<< (std::ostream &output, const SiPixelCalibDigiError &err)
 

Function Documentation

bool operator< ( const SiPixelCalibDigiError one,
const SiPixelCalibDigiError  other 
)
inline

Definition at line 48 of file SiPixelCalibDigiError.h.

References SiPixelCalibDigiError::getCol(), and SiPixelCalibDigiError::getRow().

48  {
49  if(one.getCol()!=other.getCol())
50  return one.getCol() < other.getCol();
51 
52  return one.getRow() < other.getRow();
53 
54 }
std::ostream& operator<< ( std::ostream &  output,
const SiPixelCalibDigiError err 
)
inline

Definition at line 55 of file SiPixelCalibDigiError.h.

References SiPixelCalibDigiError::getCol(), SiPixelCalibDigiError::getErrorType(), SiPixelCalibDigiError::getRow(), and SiPixelCalibDigiError::printError().

56 {
57  std::string errorstr = err.printError();
58  return output << "pixel SiCalibDigi error in row " << err.getRow() << ", column " << err.getCol() << " of type " << err.getErrorType() << " (" << errorstr << ")";
59 
60 }
std::string printError() const
uint16_t getErrorType() const