1 #ifndef L1GCTJETCOUNT_H 2 #define L1GCTJETCOUNT_H 7 #include <boost/cstdint.hpp> 57 L1GctJetCount
operator+ (
const L1GctJetCount &rhs)
const;
87 if (value >= (static_cast<unsigned>((1<<this->
m_nBits) - 1)) ) {
157 std::ostream& operator<<(std::ostream& s, const L1GctJetCount<nBits>&
data) {
159 s <<
"L1GctJetCount value : " <<
data.value();
160 if (
data.overFlow()) {
s <<
" Overflow set! "; }
L1GctJetCount & operator=(int value)
overload = operator
Definition of unsigned integer types with increment and overflow.
void setOverFlow(bool oflow)
set the overflow bit
void setValue(unsigned value)
Set value from unsigned.
Definition of unsigned integer types with overflow.
L1GctJetCount & operator++()
Define increment operators, since this is a counter.
unsigned value() const
access value as unsigned
static const int MAX_NBITS
L1GctJetCount operator+(const L1GctJetCount &rhs) const
add two numbers
char data[epos_bytes_allocation]
bool overFlow() const
access overflow
L1GctJetCount()
Construct a counter and initialise its value to zero.
~L1GctJetCount()
Destructor.