A level 1 calorimeter trigger conversion service: returns the Coordinate represented by a RoI word.
More...
#include <RoIDecoder.h>
|
| unsigned int | extractBits (unsigned int word, const unsigned int start, const unsigned int length) const |
| | returns the value of bits in word between bit "start" and bit "start" + "length"
|
A level 1 calorimeter trigger conversion service: returns the Coordinate represented by a RoI word.
- Author
- E.Moyse
- Todo
- this should probably be a static class.
Definition at line 41 of file RoIDecoder.h.
◆ RoIDecoder()
| LVL1::RoIDecoder::RoIDecoder |
( |
| ) |
|
◆ ~RoIDecoder()
| LVL1::RoIDecoder::~RoIDecoder |
( |
| ) |
|
|
virtual |
◆ coordinate()
| virtual CoordinateRange LVL1::RoIDecoder::coordinate |
( |
const unsigned int | word | ) |
const |
|
pure virtual |
◆ extractBits()
| unsigned int LVL1::RoIDecoder::extractBits |
( |
unsigned int | word, |
|
|
const unsigned int | start, |
|
|
const unsigned int | length ) const |
|
protected |
returns the value of bits in word between bit "start" and bit "start" + "length"
Definition at line 34 of file RoIDecoder.cxx.
35 {
36
37
38
39
40
41
42
43 word = ( word >> (
start - 1 ) );
44
45 unsigned int bitmask = ( 1 <<
length ) - 1;
46
47
48 return ( word & bitmask );
49}
◆ m_DEBUG
| bool LVL1::RoIDecoder::m_DEBUG |
|
protected |
The documentation for this class was generated from the following files: