#include <L1MuPacking.h>
Public Member Functions | |
virtual int | idxFromPacked (unsigned packed) const |
get the value from the packed notation (always positive) | |
virtual unsigned | packedFromIdx (int idx) const |
get the packed notation of a value, check the range | |
virtual int | signFromPacked (unsigned packed) const |
get the sign from the packed notation. always psitive (0) |
Packing of an unsigned int in a bit field
Definition at line 49 of file L1MuPacking.h.
virtual int L1MuUnsignedPacking< Bits >::idxFromPacked | ( | unsigned | packed | ) | const [inline, virtual] |
get the value from the packed notation (always positive)
Implements L1MuPacking.
Definition at line 54 of file L1MuPacking.h.
{ return (int) packed;};
virtual unsigned L1MuUnsignedPacking< Bits >::packedFromIdx | ( | int | idx | ) | const [inline, virtual] |
get the packed notation of a value, check the range
Implements L1MuPacking.
Definition at line 56 of file L1MuPacking.h.
References UserOptions_cff::idx.
{ if (idx >= (1 << Bits) ) edm::LogWarning("ScaleRangeViolation") << "L1MuUnignedPacking::packedFromIdx: warning value " << idx << "exceeds " << Bits << "-bit range !!!"; return (unsigned) idx; };
virtual int L1MuUnsignedPacking< Bits >::signFromPacked | ( | unsigned | packed | ) | const [inline, virtual] |
get the sign from the packed notation. always psitive (0)
Implements L1MuPacking.
Definition at line 52 of file L1MuPacking.h.
{ return 0;};