CMS 3D CMS Logo

Classes | Functions
L1GctTwosComplement.h File Reference
#include <ostream>
#include <cstdint>

Go to the source code of this file.

Classes

class  L1GctTwosComplement< nBits >
 Definition of signed integer types with overflow. More...
 

Functions

template<int nBits>
std::ostream & operator<< (std::ostream &s, const L1GctTwosComplement< nBits > &data)
 

Function Documentation

template<int nBits>
std::ostream & operator<< ( std::ostream &  s,
const L1GctTwosComplement< nBits > &  data 
)

Definition at line 238 of file L1GctTwosComplement.h.

References data, and alignCSCRings::s.

238  {
239  s << "L1GctTwosComplement<" << data.size() << "> raw : " << data.raw() << ", "
240  << "value : " << data.value();
241  if (data.overFlow()) {
242  s << " Overflow set! ";
243  }
244 
245  return s;
246 }
bool overFlow() const
access overflow
uint32_t raw() const
access raw data
int value() const
access value as signed int
int size() const
return number of bits