#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 9 of file PhiMemoryImage.h.
typedef uint64_t PhiMemoryImage::value_type |
Definition at line 11 of file PhiMemoryImage.h.
PhiMemoryImage::PhiMemoryImage | ( | ) |
PhiMemoryImage::~PhiMemoryImage | ( | ) |
Definition at line 12 of file PhiMemoryImage.cc.
PhiMemoryImage::PhiMemoryImage | ( | const PhiMemoryImage & | other | ) |
Definition at line 14 of file PhiMemoryImage.cc.
References _buffer, _layers, _straightness, _units, filterCSVwithJSON::copy, and trackingPlots::other.
|
noexcept |
|
private |
Definition at line 71 of file PhiMemoryImage.cc.
References _layers, _units, phase1PixelTopology::layer, UINT64_BITS, and unit().
Referenced by clear_bit(), get_word(), set_bit(), set_word(), and test_bit().
void PhiMemoryImage::clear_bit | ( | unsigned int | layer, |
unsigned int | bit | ||
) |
Definition at line 47 of file PhiMemoryImage.cc.
References _buffer, check_input(), phase1PixelTopology::layer, UINT64_BITS, and unit().
|
inline |
PhiMemoryImage::value_type PhiMemoryImage::get_word | ( | unsigned int | layer, |
unsigned int | unit | ||
) | const |
Definition at line 66 of file PhiMemoryImage.cc.
References _buffer, check_input(), phase1PixelTopology::layer, UINT64_BITS, and unit().
unsigned int PhiMemoryImage::op_and | ( | const PhiMemoryImage & | other | ) | const |
Definition at line 144 of file PhiMemoryImage.cc.
References _buffer, _layers, _units, and trackingPlots::other.
PhiMemoryImage & PhiMemoryImage::operator= | ( | PhiMemoryImage | other | ) |
Definition at line 23 of file PhiMemoryImage.cc.
References trackingPlots::other, and swap().
void PhiMemoryImage::print | ( | std::ostream & | out | ) | const |
Definition at line 164 of file PhiMemoryImage.cc.
References _buffer, N, and MillePedeFileConverter_cfg::out.
void PhiMemoryImage::reset | ( | void | ) |
Definition at line 34 of file PhiMemoryImage.cc.
References _buffer, _layers, _straightness, _units, and ntuplemaker::fill.
Referenced by PhiMemoryImage().
void PhiMemoryImage::rotl | ( | unsigned int | n | ) |
Definition at line 88 of file PhiMemoryImage.cc.
References _buffer, _layers, _units, filterCSVwithJSON::copy, mps_fire::i, dqmiolumiharvest::j, dqmiodumpmetadata::n, createJobs::tmp, and UINT64_BITS.
Referenced by PatternRecognition::process_single_zone().
void PhiMemoryImage::rotr | ( | unsigned int | n | ) |
Definition at line 116 of file PhiMemoryImage.cc.
References _buffer, _layers, _units, filterCSVwithJSON::copy, mps_fire::i, dqmiolumiharvest::j, dqmiodumpmetadata::n, createJobs::tmp, and UINT64_BITS.
Referenced by PatternRecognition::process_single_zone().
void PhiMemoryImage::set_bit | ( | unsigned int | layer, |
unsigned int | bit | ||
) |
Definition at line 40 of file PhiMemoryImage.cc.
References _buffer, check_input(), phase1PixelTopology::layer, UINT64_BITS, and unit().
Referenced by PatternRecognition::make_zone_image().
|
inline |
void PhiMemoryImage::set_word | ( | unsigned int | layer, |
unsigned int | unit, | ||
value_type | value | ||
) |
Definition at line 61 of file PhiMemoryImage.cc.
References _buffer, check_input(), phase1PixelTopology::layer, UINT64_BITS, unit(), and relativeConstraints::value.
void PhiMemoryImage::swap | ( | PhiMemoryImage & | other | ) |
Definition at line 28 of file PhiMemoryImage.cc.
References _buffer, _layers, _straightness, _units, trackingPlots::other, and std::swap().
Referenced by operator=().
bool PhiMemoryImage::test_bit | ( | unsigned int | layer, |
unsigned int | bit | ||
) | const |
Definition at line 54 of file PhiMemoryImage.cc.
References _buffer, check_input(), phase1PixelTopology::layer, UINT64_BITS, and unit().
|
private |
Definition at line 66 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 59 of file PhiMemoryImage.h.
Referenced by check_input(), op_and(), PhiMemoryImage(), reset(), rotl(), rotr(), and swap().
|
private |
Definition at line 68 of file PhiMemoryImage.h.
Referenced by get_straightness(), PhiMemoryImage(), reset(), set_straightness(), and swap().
|
staticprivate |
Definition at line 63 of file PhiMemoryImage.h.
Referenced by check_input(), op_and(), PhiMemoryImage(), reset(), rotl(), rotr(), and swap().