CMS 3D CMS Logo

Classes | Functions

/data/refman/pasoursint/CMSSW_4_4_5_patch3/src/DataFormats/SiPixelDigi/interface/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().

                                                                                             {
  if(one.getCol()!=other.getCol())
    return one.getCol() < other.getCol();
  
  return one.getRow() < other.getRow();
  
}
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().

{
  std::string errorstr = err.printError();
  return output << "pixel SiCalibDigi error in row " << err.getRow() << ", column " << err.getCol() << " of type " << err.getErrorType() << " (" << errorstr << ")";

}