ATLAS Offline Software
|
LAr supercell data are received by the gFEX in a 10-bit multi-linear encoded form. More...
#include <gFEXCompression.h>
Static Public Member Functions | |
static unsigned int | compress (float Energy) |
Compress data. More... | |
static int | expand (unsigned int code) |
Uncompress data. More... | |
static unsigned int | threshold (unsigned int code, int threshold=-101200) |
Apply threshold to compressed data. More... | |
static unsigned int | linearize (unsigned int code, int threshold=0) |
Linearize LAr code to eFEX internal format. More... | |
Static Private Attributes | |
static const int | s_maxET = 1019200 |
Maximum ET value that can be encoded. More... | |
static const unsigned int | s_nRanges = 6 |
Number of ranges. More... | |
static const int | s_steps [s_nRanges] = {12800, 50, 25, 50, 100, 25600} |
Step sizes in each range, MeV. More... | |
static const int | s_minET [s_nRanges] = {-101200, -50000, -12800, 12800, 51200, 200000} |
Minimum ET values in each range, MeV. More... | |
static const int | s_minCode [s_nRanges] = {2, 6, 750, 1774, 2542, 4030} |
Minimum code value in each range. More... | |
static const int | s_NoData = 0 |
Indicates no data present. More... | |
static const unsigned int | s_LArUnderflow = 1 |
LAr underflow code. More... | |
static const unsigned int | s_LArOverflow = 4062 |
LAr overflow code. More... | |
static const unsigned int | s_LArReserved_min = 4063 |
Reserved code min value. More... | |
static const unsigned int | s_LArReserved_max = 4094 |
Reserved code max value. More... | |
static const unsigned int | s_LArInvalid = 4095 |
Invalid code value. More... | |
static const unsigned int | s_LArMaxCode = 4095 |
LAr saturated code. More... | |
static const unsigned int | s_gFEXstep = 200 |
L1Calo ET digit step. More... | |
static const unsigned int | s_gFEXOverflow = 0xffff |
L1Calo saturated/overflow. More... | |
static const int | s_error = -999 |
Error return value. More... | |
LAr supercell data are received by the gFEX in a 10-bit multi-linear encoded form.
This simple utility class contains 3 functions:
Definition at line 26 of file gFEXCompression.h.
|
static |
|
static |
Uncompress data.
Now expand code into an ET value. Start by finding what range the code is in
Now expand the value
Definition at line 50 of file gFEXCompression.cxx.
|
static |
Linearize LAr code to eFEX internal format.
Apply the threshold. Since eFEX ET is positive, minimum threshold is 0.
Expand the ET value
Convert to eFEX digit scale
Definition at line 83 of file gFEXCompression.cxx.
|
static |
Apply threshold to compressed data.
Convert threshold into a compressed code
Code zero if < threshold
Definition at line 71 of file gFEXCompression.cxx.
|
staticprivate |
Error return value.
Definition at line 70 of file gFEXCompression.h.
|
staticprivate |
L1Calo saturated/overflow.
Definition at line 68 of file gFEXCompression.h.
|
staticprivate |
L1Calo ET digit step.
Definition at line 66 of file gFEXCompression.h.
|
staticprivate |
Invalid code value.
Definition at line 60 of file gFEXCompression.h.
|
staticprivate |
|
staticprivate |
LAr overflow code.
Definition at line 54 of file gFEXCompression.h.
|
staticprivate |
Reserved code max value.
Definition at line 58 of file gFEXCompression.h.
|
staticprivate |
Reserved code min value.
Definition at line 56 of file gFEXCompression.h.
|
staticprivate |
LAr underflow code.
Definition at line 52 of file gFEXCompression.h.
|
staticprivate |
Maximum ET value that can be encoded.
Definition at line 40 of file gFEXCompression.h.
|
staticprivate |
Minimum code value in each range.
Definition at line 48 of file gFEXCompression.h.
|
staticprivate |
Minimum ET values in each range, MeV.
Definition at line 46 of file gFEXCompression.h.
|
staticprivate |
Indicates no data present.
Definition at line 50 of file gFEXCompression.h.
|
staticprivate |
Number of ranges.
Definition at line 42 of file gFEXCompression.h.
|
staticprivate |
Step sizes in each range, MeV.
Definition at line 44 of file gFEXCompression.h.