#include <PhiMemoryImage.h>
Public Types | |
typedef uint64_t | value_type |
Public Member Functions | |
void | clear_bit (unsigned int layer, unsigned int bit) |
int | get_straightness () const |
value_type | get_word (unsigned int layer, unsigned int unit) const |
unsigned int | op_and (const PhiMemoryImage &other) const |
PhiMemoryImage & | operator= (PhiMemoryImage other) |
PhiMemoryImage () | |
PhiMemoryImage (const PhiMemoryImage &other) | |
PhiMemoryImage (PhiMemoryImage &&other) noexcept | |
void | print (std::ostream &out) const |
void | reset () |
void | rotl (unsigned int n) |
void | rotr (unsigned int n) |
void | set_bit (unsigned int layer, unsigned int bit) |
void | set_straightness (int s) |
void | set_word (unsigned int layer, unsigned int unit, value_type value) |
void | swap (PhiMemoryImage &other) |
bool | test_bit (unsigned int layer, unsigned int bit) const |
~PhiMemoryImage () | |
Private Member Functions | |
void | check_input (unsigned int layer, unsigned int bit) const |
Private Attributes | |
value_type | _buffer [_layers][_units] |
int | _straightness |
Static Private Attributes | |
static const unsigned int | _layers = 4 |
static const unsigned int | _units = 3 |
Definition at line 10 of file PhiMemoryImage.h.
typedef uint64_t PhiMemoryImage::value_type |
Definition at line 12 of file PhiMemoryImage.h.
PhiMemoryImage::PhiMemoryImage | ( | ) |
Definition at line 11 of file PhiMemoryImage.cc.
References reset().
PhiMemoryImage::~PhiMemoryImage | ( | ) |
Definition at line 15 of file PhiMemoryImage.cc.
PhiMemoryImage::PhiMemoryImage | ( | const PhiMemoryImage & | other | ) |
Definition at line 19 of file PhiMemoryImage.cc.
References _buffer, _layers, _straightness, _units, and popcon2dropbox::copy().
|
noexcept |
|
private |
Definition at line 78 of file PhiMemoryImage.cc.
References _layers, _units, UINT64_BITS, and csvLumiCalc::unit.
Referenced by clear_bit(), get_straightness(), get_word(), set_bit(), set_word(), and test_bit().
void PhiMemoryImage::clear_bit | ( | unsigned int | layer, |
unsigned int | bit | ||
) |
Definition at line 54 of file PhiMemoryImage.cc.
References _buffer, check_input(), RecoTauDiscriminantConfiguration::mask, UINT64_BITS, and csvLumiCalc::unit.
|
inline |
Definition at line 38 of file PhiMemoryImage.h.
References _straightness, check_input(), gen::n, op_and(), trackingPlots::other, MillePedeFileConverter_cfg::out, print(), rotl(), and rotr().
Referenced by PatternRecognition::process_single_zone().
PhiMemoryImage::value_type PhiMemoryImage::get_word | ( | unsigned int | layer, |
unsigned int | unit | ||
) | const |
Definition at line 73 of file PhiMemoryImage.cc.
References _buffer, check_input(), UINT64_BITS, and csvLumiCalc::unit.
unsigned int PhiMemoryImage::op_and | ( | const PhiMemoryImage & | other | ) | const |
Definition at line 151 of file PhiMemoryImage.cc.
References _buffer, _layers, and _units.
Referenced by get_straightness(), and PatternRecognition::process_single_zone().
PhiMemoryImage & PhiMemoryImage::operator= | ( | PhiMemoryImage | other | ) |
void PhiMemoryImage::print | ( | std::ostream & | out | ) | const |
Definition at line 176 of file PhiMemoryImage.cc.
References _buffer, constexpr, and N.
Referenced by get_straightness(), and operator<<().
void PhiMemoryImage::reset | ( | void | ) |
Definition at line 41 of file PhiMemoryImage.cc.
References _buffer, _layers, _straightness, _units, and lumiContext::fill.
Referenced by PhiMemoryImage().
void PhiMemoryImage::rotl | ( | unsigned int | n | ) |
Definition at line 95 of file PhiMemoryImage.cc.
References _buffer, _layers, _units, popcon2dropbox::copy(), mps_fire::i, RecoTauDiscriminantConfiguration::mask, tmp, and UINT64_BITS.
Referenced by get_straightness(), and PatternRecognition::process_single_zone().
void PhiMemoryImage::rotr | ( | unsigned int | n | ) |
Definition at line 123 of file PhiMemoryImage.cc.
References _buffer, _layers, _units, popcon2dropbox::copy(), mps_fire::i, RecoTauDiscriminantConfiguration::mask, tmp, and UINT64_BITS.
Referenced by PatternRecognition::configure_details(), get_straightness(), and PatternRecognition::process_single_zone().
void PhiMemoryImage::set_bit | ( | unsigned int | layer, |
unsigned int | bit | ||
) |
Definition at line 47 of file PhiMemoryImage.cc.
References _buffer, check_input(), RecoTauDiscriminantConfiguration::mask, UINT64_BITS, and csvLumiCalc::unit.
Referenced by PatternRecognition::configure_details(), and PatternRecognition::make_zone_image().
|
inline |
Definition at line 36 of file PhiMemoryImage.h.
References _straightness, and alignCSCRings::s.
Referenced by PatternRecognition::configure_details().
void PhiMemoryImage::set_word | ( | unsigned int | layer, |
unsigned int | unit, | ||
value_type | value | ||
) |
Definition at line 68 of file PhiMemoryImage.cc.
References _buffer, check_input(), UINT64_BITS, csvLumiCalc::unit, and relativeConstraints::value.
void PhiMemoryImage::swap | ( | PhiMemoryImage & | other | ) |
Definition at line 35 of file PhiMemoryImage.cc.
References _buffer, _layers, _straightness, _units, and std::swap().
Referenced by operator=(), and PhiMemoryImage().
bool PhiMemoryImage::test_bit | ( | unsigned int | layer, |
unsigned int | bit | ||
) | const |
Definition at line 61 of file PhiMemoryImage.cc.
References _buffer, check_input(), RecoTauDiscriminantConfiguration::mask, UINT64_BITS, and csvLumiCalc::unit.
|
private |
Definition at line 67 of file PhiMemoryImage.h.
Referenced by python.cmstools.EventBranch::__call__(), clear_bit(), get_word(), op_and(), PhiMemoryImage(), print(), reset(), rotl(), rotr(), set_bit(), set_word(), swap(), and test_bit().
|
staticprivate |
Definition at line 60 of file PhiMemoryImage.h.
Referenced by check_input(), op_and(), PhiMemoryImage(), reset(), rotl(), rotr(), and swap().
|
private |
Definition at line 69 of file PhiMemoryImage.h.
Referenced by get_straightness(), PhiMemoryImage(), reset(), set_straightness(), and swap().
|
staticprivate |
Definition at line 64 of file PhiMemoryImage.h.
Referenced by check_input(), op_and(), PhiMemoryImage(), reset(), rotl(), rotr(), and swap().