AliceO2 icon indicating copy to clipboard operation
AliceO2 copied to clipboard

[WIP][EMCAL-551] improvement of emcal cell energy compression

Open fjonasALICE opened this issue 1 year ago • 1 comments

  • this PR is work-in-progress and contains multiple changes related to EMCal cells
  • the class Cell.h which was used for CTF decoding and encoding was renamed to CellCompressed.h, including improvements for the energy compression, which is now performed differnetly for HG and LG cells to enhance the effective precision given the number of available bits
  • the former Cell class is now replaced with a class that stores the energy etc in float precision (no compression) and is intended to be used from CTF onwards from now on (this change was needed because it was discovered that the energy calibration might cause problems with the enegry range dependent compression)
  • the chi2 information was added to CTF encoding and decoding
  • a check for the CTF dictionary version was implemented to allow for backward compatibility of old data

fjonasALICE avatar Oct 13 '22 13:10 fjonasALICE

The necessity for this is that we found during the energy calibration a small amount of cells with large decalibration (up to factor 4). Once we include the gain type to define energy ranges in order to improve the precision at low E with finer granularity (0 - HGLG transition ~ 16 GeV) we will get a problem with the cell when applying the energy calibration: For those cells which have large decalibration we would force the signal into the saturation range in both directions. We also cannot easily redefine the gain type to deal define energy ranges as it is needed in the time calibration. Like this we must deal with the energy calibration on an uncompressed level. Furthermore it makes also sense to use an uncompressed version at transient level. The compressed cell will then only be used for I/O to/from CTF for en/decoding, while the publishers send the uncompressed version. For the naming convention at long term it makes more sense that the uncompressed Cell class which will be backbone of the user interface gets the name Cell and the compressed version will be renamed to CompressedCell.

mfasDa avatar Oct 13 '22 14:10 mfasDa