FairRoot/PandaRoot
|
Helper functions for single bit manipulations. More...
Functions | |
bool | getIntBit (const UInt_t &position, const UInt_t &value) |
Retrieves a single bit from an integer value. More... | |
void | setIntBit (const UInt_t &position, UInt_t &value, const bool &state) |
Sets a single bit in an integer value. More... | |
UInt_t | shiftBy (const int &positions, const UInt_t &value) |
Shifts the bits in an integer value. More... | |
unsigned int | getIteratorItemCount (const std::map< std::string, TConfItem >::const_iterator &start, const std::map< std::string, TConfItem >::const_iterator &stop) |
unsigned int | getIteratorItemCount (const std::map< std::string, std::map< std::string, TConfItem > >::const_iterator &start, const std::map< std::string, std::map< std::string, TConfItem > >::const_iterator &stop) |
UInt_t | grayToBin (UInt_t gray) |
Converts gray encoded values to bianry values. More... | |
Variables | |
static const UInt_t | UInt_t_bitlength = sizeof(UInt_t) * CHAR_BIT |
static const UInt_t | UInt_t_bitlength = sizeof(UInt_t) * CHAR_BIT |
Helper functions for single bit manipulations.
bool mrftools::getIntBit | ( | const UInt_t & | position, |
const UInt_t & | value | ||
) |
Retrieves a single bit from an integer value.
position | Position of bit to investigate. |
value | Value whose bits are to be investigated. |
Definition at line 15 of file MvdOfflineTBAnalysis_Topix4/mrftools.cxx.
Referenced by TMrfData_8b::resample().
unsigned int mrftools::getIteratorItemCount | ( | const std::map< std::string, TConfItem >::const_iterator & | start, |
const std::map< std::string, TConfItem >::const_iterator & | stop | ||
) |
unsigned int mrftools::getIteratorItemCount | ( | const std::map< std::string, std::map< std::string, TConfItem > >::const_iterator & | start, |
const std::map< std::string, std::map< std::string, TConfItem > >::const_iterator & | stop | ||
) |
UInt_t mrftools::grayToBin | ( | UInt_t | gray | ) |
Converts gray encoded values to bianry values.
gray | Gray encoded value. |
Definition at line 73 of file MvdOfflineTBAnalysis_Topix4/mrftools.cxx.
Referenced by PndMvdPasta::AnalyzeThresholdWordFull(), PndTopix4::BitAnalyzePixelData(), and PndMvdReadInTBData::BitAnalyzePixelData().
void mrftools::setIntBit | ( | const UInt_t & | position, |
UInt_t & | value, | ||
const bool & | state | ||
) |
Sets a single bit in an integer value.
position | The positional index of the bit to be manipulated, 0 referring to the least significant bit. |
value | The integer value whose bits are to be manipulated. |
state | True sets the bit, False resets the bit. |
Definition at line 25 of file MvdOfflineTBAnalysis_Topix4/mrftools.cxx.
Referenced by TMrfData_8b::getBitBlock(), and TMrfData_8b::setBit().
UInt_t mrftools::shiftBy | ( | const int & | positions, |
const UInt_t & | value | ||
) |
Shifts the bits in an integer value.
positions | Number of positions to be shifted. A positive value means shift to the MSB (left), negative means shift to the LSB (right). |
value | The integer value whose bits are to be shifted. |
Definition at line 37 of file MvdOfflineTBAnalysis_Topix4/mrftools.cxx.
|
static |
Definition at line 13 of file MvdOfflineTBAnalysis_Topix4/mrftools.cxx.
|
static |
Definition at line 13 of file MvdTestBeam/Tools/mrftools.cxx.