Functions | |
int16_t | pack16log (double x, double lmin, double lmax, uint16_t base=32768) |
int16_t | pack16logCeil (double x, double lmin, double lmax, uint16_t base=32768) |
int16_t | pack16logClosed (double x, double lmin, double lmax, uint16_t base=32768) |
int8_t | pack8log (double x, double lmin, double lmax, uint8_t base=128) |
int8_t | pack8logCeil (double x, double lmin, double lmax, uint8_t base=128) |
int8_t | pack8logClosed (double x, double lmin, double lmax, uint8_t base=128) |
double | unpack16log (int16_t i, double lmin, double lmax, uint16_t base=32768) |
double | unpack16logClosed (int16_t i, double lmin, double lmax, uint16_t base=32768) |
reverse of pack8logClosed More... | |
double | unpack8log (int8_t i, double lmin, double lmax, uint8_t base=128) |
double | unpack8logClosed (int8_t i, double lmin, double lmax, uint8_t base=128) |
reverse of pack8logClosed More... | |
Variables | |
constexpr int8_t | smallestNegative = -1 |
constexpr int8_t | smallestPositive = 0 |
|
inline |
Definition at line 27 of file liblogintpack.h.
References funct::abs(), newFWLiteAna::base, dumpMFGeometry_cfg::delta, JetChargeProducer_cfi::exp, cmsLHEtoEOSManager::l, dqm-mbProfile::log, and x.
Referenced by CompressionElement::pack(), and mtd_digitizer::saveSimHitAccumulator().
|
inline |
Definition at line 12 of file liblogintpack.h.
References funct::abs(), newFWLiteAna::base, reco::ceil(), cmsLHEtoEOSManager::l, dqm-mbProfile::log, and x.
|
inline |
pack a value x distributed in [-1,1], with guarantee that -1 and 1 are preserved exactly in packing and unpacking. tries to keep the best precision for x close to the endpoints, sacrifying that in the middle
Definition at line 47 of file liblogintpack.h.
References funct::abs(), newFWLiteAna::base, cmsLHEtoEOSManager::l, dqm-mbProfile::log, and x.
|
inline |
Definition at line 104 of file liblogintpack.h.
References funct::abs(), newFWLiteAna::base, cmsLHEtoEOSManager::l, dqm-mbProfile::log, and x.
|
inline |
Definition at line 89 of file liblogintpack.h.
References funct::abs(), newFWLiteAna::base, reco::ceil(), cmsLHEtoEOSManager::l, dqm-mbProfile::log, and x.
|
inline |
pack a value x distributed in [-1,1], with guarantee that -1 and 1 are preserved exactly in packing and unpacking. tries to keep the best precision for x close to the endpoints, sacrifying that in the middle
Definition at line 121 of file liblogintpack.h.
References funct::abs(), newFWLiteAna::base, cmsLHEtoEOSManager::l, dqm-mbProfile::log, and x.
|
inline |
Definition at line 62 of file liblogintpack.h.
References funct::abs(), newFWLiteAna::base, JetChargeProducer_cfi::exp, mps_fire::i, cmsLHEtoEOSManager::l, and heppy_batch::val.
Referenced by mtd_digitizer::loadSimHitAccumulator(), and CompressionElement::unpack().
|
inline |
reverse of pack8logClosed
Definition at line 75 of file liblogintpack.h.
References funct::abs(), newFWLiteAna::base, JetChargeProducer_cfi::exp, mps_fire::i, cmsLHEtoEOSManager::l, and heppy_batch::val.
|
inline |
Definition at line 136 of file liblogintpack.h.
References funct::abs(), newFWLiteAna::base, JetChargeProducer_cfi::exp, mps_fire::i, cmsLHEtoEOSManager::l, and heppy_batch::val.
|
inline |
reverse of pack8logClosed
Definition at line 149 of file liblogintpack.h.
References funct::abs(), newFWLiteAna::base, JetChargeProducer_cfi::exp, mps_fire::i, cmsLHEtoEOSManager::l, and heppy_batch::val.
constexpr int8_t logintpack::smallestNegative = -1 |
Definition at line 11 of file liblogintpack.h.
constexpr int8_t logintpack::smallestPositive = 0 |
Definition at line 8 of file liblogintpack.h.