Bit vector used by Track Trigger emulators. Mainly used to convert integers into arbitrary (within margin) sized two's complement string. More...
#include <TTBV.h>
Public Member Functions | |
TTBV & | abs () |
bool | all () const |
bool | any () const |
std::bitset< S > | bs () const |
int | count () const |
int | count (int begin, int end, bool b=true) const |
TTBV & | flip () |
TTBV & | flip (int pos) |
bool | msb () const |
std::bitset< S >::reference | msb () |
bool | none () const |
bool | operator!= (const TTBV &rhs) const |
TTBV & | operator&= (const TTBV &rhs) |
TTBV | operator+ (const TTBV &rhs) const |
TTBV & | operator++ () |
TTBV & | operator+= (const TTBV &rhs) |
TTBV | operator<< (int pos) const |
TTBV & | operator<<= (int pos) |
bool | operator== (const TTBV &rhs) const |
TTBV | operator>> (int pos) const |
TTBV & | operator>>= (int pos) |
bool | operator[] (int pos) const |
std::bitset< S >::reference | operator[] (int pos) |
TTBV & | operator^= (const TTBV &rhs) |
TTBV & | operator|= (const TTBV &rhs) |
TTBV | operator~ () const |
int | plEncode (bool b=true) const |
int | pmEncode (bool b=true) const |
TTBV & | reset () |
TTBV & | reset (int pos) |
TTBV & | resize (int size) |
TTBV & | set () |
TTBV & | set (int pos) |
int | size () const |
std::string | str () const |
std::string | str (int start, int end=0) const |
TTBV () | |
TTBV (const double d) | |
TTBV (unsigned long long int value, int size) | |
TTBV (int value, int size, bool Signed=false) | |
TTBV (double value, double base, int size, bool Signed=false) | |
TTBV (const std::string &str, bool Signed=false) | |
TTBV (const std::bitset< S > &bs, bool Signed=false) | |
bool | twos () const |
int | val () const |
int | val (bool Signed) const |
int | val (int start, int end=0, bool Signed=false) const |
double | val (double base) const |
Static Public Attributes | |
static constexpr int | S = 64 |
Private Member Functions | |
unsigned long long int | iMax () const |
constexpr std::array< unsigned long long int, S > | powersOfTwo () const |
Private Attributes | |
std::bitset< S > | bs_ |
int | size_ |
bool | twos_ |
Bit vector used by Track Trigger emulators. Mainly used to convert integers into arbitrary (within margin) sized two's complement string.
|
inline |
Definition at line 29 of file TTBV.h.
Referenced by val().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 56 of file TTBV.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 161 of file TTBV.h.
References bs_, dqmiodumpmetadata::n, and size_.
Referenced by abs(), and operator~().
|
inline |
|
inlineprivate |
Definition at line 263 of file TTBV.h.
References powersOfTwo(), and size_.
Referenced by val().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 82 of file TTBV.h.
References bs_, visualization-live-secondInstance_cfg::m, SiStripPI::max, resize(), size(), and size_.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 98 of file TTBV.h.
References bs_, visualization-live-secondInstance_cfg::m, SiStripPI::max, resize(), size(), and size_.
Definition at line 90 of file TTBV.h.
References bs_, visualization-live-secondInstance_cfg::m, SiStripPI::max, resize(), size(), and size_.
|
inline |
|
inline |
|
inline |
|
inlineprivate |
Definition at line 255 of file TTBV.h.
References mps_fire::i, funct::pow(), and S.
Referenced by iMax().
|
inline |
|
inline |
|
inline |
Definition at line 195 of file TTBV.h.
References bs_, msb(), dqmiodumpmetadata::n, operator<<=(), size(), size_, and twos_.
Referenced by operator&=(), operator++(), operator^=(), and operator|=().
|
inline |
Definition at line 156 of file TTBV.h.
References bs_, dqmiodumpmetadata::n, and size_.
Referenced by trackerDTC::Stub::formatTMTT().
|
inline |
|
inline |
Definition at line 60 of file TTBV.h.
References size_.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), operator&=(), operator+=(), operator^=(), operator|=(), and resize().
|
inline |
Definition at line 211 of file TTBV.h.
Referenced by trackerDTC::Stub::formatTMTT(), and val().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 226 of file TTBV.h.
References newFWLiteAna::base, and val().
Referenced by val().
|
private |
Definition at line 25 of file TTBV.h.
Referenced by all(), any(), bs(), count(), flip(), msb(), none(), operator!=(), operator&=(), operator++(), operator+=(), operator<<=(), operator==(), operator>>=(), operator[](), operator^=(), operator|=(), plEncode(), pmEncode(), reset(), resize(), set(), str(), TTBV(), and val().
|
static |
Definition at line 20 of file TTBV.h.
Referenced by trackerDTC::Setup::calculateConstants(), and powersOfTwo().
|
private |
Definition at line 24 of file TTBV.h.
Referenced by abs(), flip(), iMax(), msb(), operator&=(), operator++(), operator+=(), operator<<=(), operator>>=(), operator^=(), operator|=(), plEncode(), pmEncode(), resize(), set(), size(), and str().