#include <L1MuPacking.h>
Public Member Functions | |
int | idxFromPacked (unsigned packed) const override |
get the value from the packed notation (+/-) More... | |
L1MuPseudoSignedPacking () | |
L1MuPseudoSignedPacking (unsigned int nbits) | |
unsigned | packedFromIdx (int idx) const override |
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... | |
int | signFromPacked (unsigned packed) const override |
get the (pseudo-)sign from the packed notation (0=positive, 1=negative) More... | |
~L1MuPseudoSignedPacking () override | |
Public Member Functions inherited from L1MuPacking | |
virtual | ~L1MuPacking () |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
Private Attributes | |
unsigned int | m_nbits |
Friends | |
class | boost::serialization::access |
template<typename CondSerializationT , typename Enabled > | |
struct | cond::serialization::access |
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 140 of file L1MuPacking.h.
|
inline |
Definition at line 142 of file L1MuPacking.h.
|
inlineoverride |
Definition at line 143 of file L1MuPacking.h.
|
inline |
Definition at line 144 of file L1MuPacking.h.
|
inlineoverridevirtual |
get the value from the packed notation (+/-)
Implements L1MuPacking.
Definition at line 150 of file L1MuPacking.h.
References createfilelist::int, and m_nbits.
Referenced by L1MuSymmetricBinnedScale::getCenter(), and L1MuSymmetricBinnedScale::getLowEdge().
|
inlineoverridevirtual |
get the packed notation of a value, check range
Implements L1MuPacking.
Definition at line 157 of file L1MuPacking.h.
References funct::abs(), heavyIonCSV_trainingSettings::idx, 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 169 of file L1MuPacking.h.
References funct::abs(), heavyIonCSV_trainingSettings::idx, and m_nbits.
|
private |
|
inlineoverridevirtual |
get the (pseudo-)sign from the packed notation (0=positive, 1=negative)
Implements L1MuPacking.
Definition at line 147 of file L1MuPacking.h.
References m_nbits.
Referenced by L1MuSymmetricBinnedScale::getCenter(), and L1MuSymmetricBinnedScale::getLowEdge().
|
friend |
Definition at line 183 of file L1MuPacking.h.
|
friend |
Definition at line 183 of file L1MuPacking.h.
|
private |
Definition at line 181 of file L1MuPacking.h.
Referenced by idxFromPacked(), packedFromIdx(), and signFromPacked().