Functions | |
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 | 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... | |
int8_t logintpack::pack8log | ( | double | x, |
double | lmin, | ||
double | lmax, | ||
uint8_t | base = 128 |
||
) |
Definition at line 20 of file liblogintpack.h.
References newFWLiteAna::base, prof2calltree::l, create_public_lumi_plots::log, and alignCSCRings::r.
Referenced by pat::PackedCandidate::packVtx().
int8_t logintpack::pack8logCeil | ( | double | x, |
double | lmin, | ||
double | lmax, | ||
uint8_t | base = 128 |
||
) |
Definition at line 8 of file liblogintpack.h.
References newFWLiteAna::base, prof2calltree::l, create_public_lumi_plots::log, and alignCSCRings::r.
Referenced by pat::PackedCandidate::packVtx().
int8_t logintpack::pack8logClosed | ( | double | x, |
double | lmin, | ||
double | lmax, | ||
uint8_t | base = 128 |
||
) |
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 34 of file liblogintpack.h.
References newFWLiteAna::base, prof2calltree::l, create_public_lumi_plots::log, and alignCSCRings::r.
Referenced by pat::PackedCandidate::setPuppiWeight().
double logintpack::unpack8log | ( | int8_t | i, |
double | lmin, | ||
double | lmax, | ||
uint8_t | base = 128 |
||
) |
Definition at line 47 of file liblogintpack.h.
References funct::abs(), newFWLiteAna::base, create_public_lumi_plots::exp, and prof2calltree::l.
Referenced by pat::PackedCandidate::unpackVtx().
double logintpack::unpack8logClosed | ( | int8_t | i, |
double | lmin, | ||
double | lmax, | ||
uint8_t | base = 128 |
||
) |
reverse of pack8logClosed
Definition at line 57 of file liblogintpack.h.
References funct::abs(), newFWLiteAna::base, create_public_lumi_plots::exp, and prof2calltree::l.
Referenced by pat::PackedCandidate::puppiWeight().