test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
L1GctTwosComplement.h File Reference
#include <boost/cstdint.hpp>
#include <ostream>

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 241 of file L1GctTwosComplement.h.

References data, and alignCSCRings::s.

241  {
242 
243  s << "L1GctTwosComplement<" << data.size() << "> raw : " << data.raw() << ", " << "value : " << data.value();
244  if (data.overFlow()) { s << " Overflow set! "; }
245 
246  return s;
247 
248 }
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