|
ATLAS Offline Software
|
Go to the documentation of this file.
21 std::string resultString(
"" );
22 for (
int i = nbits;
i >= 0;
i-- ) {
23 if ( uintValue & ( 1
u <<
i ) ) {
28 if ( (
i % 4 ) == 0 ) resultString +=
" ";
35 std::string resultString(
"" );
36 for (
int i = nbits;
i >= 0;
i-- ) {
37 if ( intValue & ( 1
u <<
i ) ) {
42 if ( (
i % 4 ) == 0 ) resultString +=
" ";
48 const unsigned int mask ) {
51 unsigned int maskcopy;
57 while ( ( maskcopy & 0x00000001 ) == 0 ) {
58 maskcopy = maskcopy >> 1;
69 int ostart =
std::min( startbit, endbit );
70 int oend =
std::max( startbit, endbit );
76 result >>= std::abs( ostart );
91 for(
unsigned int i = 0;
i <= (
end -
start ); ++
i ) {
102 int ostart =
std::min( startbit, endbit );
103 int oend =
std::max( startbit, endbit );
107 std::ostringstream
s;
@ u
Enums for curvilinear frames.
static void printBinN(unsigned int uintValue, int nbits)
static const std::string printBits(const int value, const int startbit, const int endbit)
print selected bit range into string
static bool isSet(const unsigned int *uintValue, int bit)
Check if a the given bit in the given unsigned int or int value is set.
static unsigned int createMask(int startbit, int endbit)
create a 32 bit long mask with 1s from given start to end position
static unsigned int alignBits(int value, int startbit, int endbit)
align given bits using start and end position into 32 bits
static unsigned int getValue(const unsigned int *uintValue, const unsigned int mask)
get the value in the input word represented by a bit pattern given as a bitmask