ATLAS Offline Software
ZdcPpmCompression.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ZDCPPMCOMPRESSION_H
6 #define ZDCPPMCOMPRESSION_H
7 
18 class ZdcPpmSubBlock;
19 
21 
22  public:
25 
27  static bool pack(ZdcPpmSubBlock& subBlock);
29  static bool unpack(ZdcPpmSubBlock& subBlock);
30 
31  private:
32  static const int s_formatsV0 = 6;
33  static const int s_lowerRange = 12;
34  static const int s_upperRange = 3;
35  static const int s_formats = 7;
36  static const int s_fadcRange = 15;
37  static const int s_peakOnly = 4;
38  static const int s_lutDataBits = 8;
39  static const int s_lutBcidBits = 3;
40  static const int s_fadcDataBits = 10;
41  static const int s_glinkPins = 16;
42  static const int s_statusBits = 5;
43  static const int s_errorBits = 6;
44  static const int s_statusMask = 0x1f;
45 
46  static bool unpackV100(ZdcPpmSubBlock& subBlock);
47  static bool unpackV101(ZdcPpmSubBlock& subBlock);
48  static bool unpackV104(ZdcPpmSubBlock& subBlock);
49  };
50 
51 #endif
ZdcPpmCompression::~ZdcPpmCompression
~ZdcPpmCompression()
ZdcPpmCompression::unpackV101
static bool unpackV101(ZdcPpmSubBlock &subBlock)
Definition: ZdcPpmCompression.cxx:343
ZdcPpmCompression::s_fadcDataBits
static const int s_fadcDataBits
Definition: ZdcPpmCompression.h:40
ZdcPpmCompression
Definition: ZdcPpmCompression.h:20
ZdcPpmCompression::s_formatsV0
static const int s_formatsV0
Definition: ZdcPpmCompression.h:32
ZdcPpmCompression::s_glinkPins
static const int s_glinkPins
Definition: ZdcPpmCompression.h:41
ZdcPpmCompression::s_statusBits
static const int s_statusBits
Definition: ZdcPpmCompression.h:42
ZdcPpmCompression::s_lutBcidBits
static const int s_lutBcidBits
Definition: ZdcPpmCompression.h:39
ZdcPpmCompression::unpackV104
static bool unpackV104(ZdcPpmSubBlock &subBlock)
Definition: ZdcPpmCompression.cxx:479
ZdcPpmCompression::ZdcPpmCompression
ZdcPpmCompression()
ZdcPpmCompression::s_upperRange
static const int s_upperRange
Definition: ZdcPpmCompression.h:34
ZdcPpmCompression::s_peakOnly
static const int s_peakOnly
Definition: ZdcPpmCompression.h:37
ZdcPpmCompression::pack
static bool pack(ZdcPpmSubBlock &subBlock)
Pack data.
Definition: ZdcPpmCompression.cxx:32
ZdcPpmCompression::s_statusMask
static const int s_statusMask
Definition: ZdcPpmCompression.h:44
ZdcPpmCompression::s_lowerRange
static const int s_lowerRange
Definition: ZdcPpmCompression.h:33
ZdcPpmCompression::s_formats
static const int s_formats
Definition: ZdcPpmCompression.h:35
ZdcPpmSubBlock
Sub-Block class for PPM data.
Definition: ZdcPpmSubBlock.h:30
ZdcPpmCompression::unpack
static bool unpack(ZdcPpmSubBlock &subBlock)
Unpack data.
Definition: ZdcPpmCompression.cxx:216
ZdcPpmCompression::s_lutDataBits
static const int s_lutDataBits
Definition: ZdcPpmCompression.h:38
ZdcPpmCompression::s_fadcRange
static const int s_fadcRange
Definition: ZdcPpmCompression.h:36
ZdcPpmCompression::s_errorBits
static const int s_errorBits
Definition: ZdcPpmCompression.h:43
ZdcPpmCompression::unpackV100
static bool unpackV100(ZdcPpmSubBlock &subBlock)
Definition: ZdcPpmCompression.cxx:241