Bit vector used by Track Trigger emulators. Mainly used to convert integers into arbitrary (within margin) sized two's complement strings. More...
#include <TTBV.h>
Public Member Functions | |
TTBV & | abs () |
bool | all () const |
bool | any () const |
const std::bitset< S_ > & | bs () const |
int | count () const |
int | count (int begin, int end, bool b=true) const |
int | encode (int n, bool b=true) const |
double | extract (double base, int size, bool twos=false) |
int | extract (int size, bool twos=false) |
TTBV & | flip () |
TTBV & | flip (int pos) |
std::vector< int > | ids (bool b=true, bool singed=false) const |
bool | msb () const |
std::bitset< S_ >::reference | msb () |
bool | none () const |
TTBV & | operator &= (const TTBV &rhs) |
bool | operator!= (const TTBV &rhs) const |
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) |
TTBV & | set (std::vector< int > vpos) |
int | size () const |
TTBV | slice (int size, bool twos=false) |
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 twos=false) | |
TTBV (double value, double base, int size, bool twos=false) | |
TTBV (const std::string &str, bool twos=false) | |
TTBV (const std::bitset< S_ > &bs, bool twos=false) | |
TTBV (const TTBV &ttBV, int begin, int end=0, bool twos=false) | |
bool | twos () const |
int | val () const |
int | val (bool twos) const |
int | val (int start, int end=0, bool twos=false) const |
double | val (double base) const |
double | val (double base, int start, int end=0, bool twos=false) 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_ |
Friends | |
std::ostream & | operator<< (std::ostream &os, const TTBV &ttBV) |
Bit vector used by Track Trigger emulators. Mainly used to convert integers into arbitrary (within margin) sized two's complement strings.
|
inline |
|
inline |
Definition at line 34 of file TTBV.h.
References triggerObjects_cff::bit, bs_, c, ztail::d, and createfilelist::int.
|
inline |
Definition at line 45 of file TTBV.h.
|
inline |
Definition at line 48 of file TTBV.h.
|
inline |
Definition at line 52 of file TTBV.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 71 of file TTBV.h.
References bs_.
Referenced by trackerTFP::DataFormats::convertStub(), and trackerTFP::DataFormats::convertTrack().
|
inline |
Definition at line 88 of file TTBV.h.
References bs_.
Referenced by trackerTFP::State::State(), trackerTFP::State::stubs(), and trackerTFP::TrackKFin::ttStubRefs().
|
inline |
|
inline |
Definition at line 322 of file TTBV.h.
References b, bs_, MillePedeFileConverter_cfg::e, dqmiodumpmetadata::n, and size_.
|
inline |
Definition at line 276 of file TTBV.h.
References operator>>=(), size(), twos(), and val().
Referenced by BeautifulSoup.Tag::decompose(), trackerTFP::StubHT::fillTrackId(), trackerTFP::StubMHT::fillTrackId(), trackerTFP::StubZHT::fillTrackId(), tt::Setup::layerMap(), BeautifulSoup.PageElement::replaceWith(), and BeautifulSoup.PageElement::replaceWithChildren().
|
inline |
Definition at line 283 of file TTBV.h.
References operator>>=(), twos(), and val().
Referenced by BeautifulSoup.Tag::decompose(), BeautifulSoup.PageElement::replaceWith(), and BeautifulSoup.PageElement::replaceWithChildren().
|
inline |
Definition at line 194 of file TTBV.h.
References bs_, dqmiodumpmetadata::n, and size_.
Referenced by abs(), and operator~().
|
inline |
|
inline |
Definition at line 334 of file TTBV.h.
References b, bs_, mps_fire::i, size_, and findQualityFiles::v.
Referenced by trackerTFP::StubGP::inv2RBins(), L1FPGATrackProducer::produce(), and trackerTFP::StubPP::sectors().
|
inlineprivate |
Definition at line 355 of file TTBV.h.
References powersOfTwo(), and size_.
Referenced by val().
|
inline |
|
inline |
|
inline |
Definition at line 97 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 117 of file TTBV.h.
References bs_, visualization-live-secondInstance_cfg::m, SiStripPI::max, resize(), size(), and size_.
Definition at line 107 of file TTBV.h.
References bs_, visualization-live-secondInstance_cfg::m, SiStripPI::max, resize(), size(), and size_.
|
inline |
|
inline |
Definition at line 306 of file TTBV.h.
References b, bs_, MillePedeFileConverter_cfg::e, and size_.
Referenced by trackerTFP::State::State().
|
inline |
Definition at line 314 of file TTBV.h.
References b, bs_, MillePedeFileConverter_cfg::e, and size_.
Referenced by trackerTFP::State::finish().
|
inlineprivate |
Definition at line 347 of file TTBV.h.
References mps_fire::i, funct::pow(), and S_.
Referenced by iMax().
|
inline |
|
inline |
|
inline |
Definition at line 237 of file TTBV.h.
References bs_, msb(), dqmiodumpmetadata::n, operator<<=(), size(), size_, and twos_.
Referenced by operator &=(), operator++(), operator^=(), operator|=(), and trklet::ProducerKFout::produce().
|
inline |
Definition at line 187 of file TTBV.h.
References bs_, dqmiodumpmetadata::n, and size_.
Referenced by trackerTFP::MiniHoughTransform::dlb(), trklet::ProducerKFout::produce(), L1FPGATrackProducer::produce(), trackerTFP::State::State(), trackerTFP::StubGP::StubGP(), trackerTFP::TrackKFin::TrackKFin(), and trackerTFP::TrackKF::ttTrack().
|
inline |
|
inline |
|
inline |
Definition at line 69 of file TTBV.h.
References size_.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), extract(), operator &=(), operator+=(), operator^=(), operator|=(), resize(), slice(), and trackerTFP::StubGP::StubGP().
|
inline |
|
inline |
Definition at line 253 of file TTBV.h.
Referenced by trackerDTC::Stub::formatTMTT(), and trklet::KFin::produce().
|
inline |
Definition at line 256 of file TTBV.h.
References mps_fire::end, size_, and str().
Referenced by str().
|
inline |
|
inline |
Definition at line 259 of file TTBV.h.
References bs_, iMax(), createfilelist::int, msb(), and twos_.
Referenced by trklet::KFin::consume(), extract(), tt::Setup::stubPos(), tt::Setup::stubR(), trackerTFP::TrackKF::ttTrack(), and val().
|
inline |
|
inline |
Definition at line 265 of file TTBV.h.
References mps_fire::end, TTBV(), and twos().
|
inline |
Definition at line 268 of file TTBV.h.
References newFWLiteAna::base, and val().
Referenced by val().
|
inline |
Definition at line 271 of file TTBV.h.
References newFWLiteAna::base, mps_fire::end, twos(), and val().
|
friend |
|
private |
Definition at line 27 of file TTBV.h.
Referenced by all(), any(), bs(), count(), encode(), flip(), ids(), msb(), none(), operator &=(), operator!=(), operator++(), operator+=(), operator<<=(), operator==(), operator>>=(), operator[](), operator^=(), operator|=(), plEncode(), pmEncode(), reset(), resize(), set(), TTBV(), and val().
|
static |
Definition at line 22 of file TTBV.h.
Referenced by trklet::ProducerKFout::beginRun(), tt::Setup::calculateConstants(), trackerTFP::Demonstrator::convert(), trackerTFP::Demonstrator::hex(), trackerTFP::Demonstrator::infraGap(), operator<<=(), powersOfTwo(), trklet::ProducerKFout::produce(), str(), and TTBV().
|
private |
Definition at line 26 of file TTBV.h.
Referenced by encode(), flip(), ids(), iMax(), msb(), operator &=(), operator+=(), operator<<=(), operator>>=(), operator^=(), operator|=(), plEncode(), pmEncode(), resize(), set(), size(), and str().