#include <L1MuPacking.h>
Public Member Functions | |
virtual int | idxFromPacked (unsigned packed) const |
get the value from the packed notation (+/-) More... | |
L1MuPseudoSignedPacking () | |
L1MuPseudoSignedPacking (unsigned int nbits) | |
virtual unsigned | packedFromIdx (int idx) const |
get the packed notation of a value, check range More... | |
virtual unsigned | packedFromIdx (int idx, int sig) const |
get the packed notation of a value, check range; sets the sign separately, 1 is neg. sign(!) More... | |
virtual int | signFromPacked (unsigned packed) const |
get the (pseudo-)sign from the packed notation (0=positive, 1=negative) More... | |
virtual | ~L1MuPseudoSignedPacking () |
Public Member Functions inherited from L1MuPacking | |
virtual | ~L1MuPacking () |
Private Attributes | |
COND_SERIALIZABLE | |
unsigned int | m_nbits |
Additional Inherited Members | |
Public Attributes inherited from L1MuPacking | |
COND_SERIALIZABLE | |
Packing of a signed int in a bit field (pseudo-sign)
There is a -0 and a +0 in the pseudo-signed scale
Definition at line 134 of file L1MuPacking.h.
|
inline |
Definition at line 136 of file L1MuPacking.h.
|
inlinevirtual |
Definition at line 137 of file L1MuPacking.h.
|
inline |
Definition at line 138 of file L1MuPacking.h.
|
inlinevirtual |
get the value from the packed notation (+/-)
Implements L1MuPacking.
Definition at line 144 of file L1MuPacking.h.
References m_nbits.
Referenced by L1MuSymmetricBinnedScale::getCenter(), and L1MuSymmetricBinnedScale::getLowEdge().
|
inlinevirtual |
get the packed notation of a value, check range
Implements L1MuPacking.
Definition at line 151 of file L1MuPacking.h.
References funct::abs(), and m_nbits.
Referenced by L1MuSymmetricBinnedScale::getPacked().
|
inlinevirtual |
get the packed notation of a value, check range; sets the sign separately, 1 is neg. sign(!)
Definition at line 162 of file L1MuPacking.h.
References funct::abs(), and m_nbits.
|
inlinevirtual |
get the (pseudo-)sign from the packed notation (0=positive, 1=negative)
Implements L1MuPacking.
Definition at line 141 of file L1MuPacking.h.
References m_nbits.
Referenced by L1MuSymmetricBinnedScale::getCenter(), and L1MuSymmetricBinnedScale::getLowEdge().
|
private |
Definition at line 175 of file L1MuPacking.h.
|
private |
Definition at line 173 of file L1MuPacking.h.
Referenced by idxFromPacked(), packedFromIdx(), and signFromPacked().