1 #ifndef L1GCTJETCOUNT_H 2 #define L1GCTJETCOUNT_H 54 L1GctJetCount
operator+(
const L1GctJetCount& rhs)
const;
82 if (value >= (static_cast<unsigned>((1 << this->
m_nBits) - 1))) {
143 std::ostream& operator<<(std::ostream& s, const L1GctJetCount<nBits>&
data) {
144 s <<
"L1GctJetCount value : " <<
data.value();
145 if (
data.overFlow()) {
146 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.