ATLAS Offline Software
Loading...
Searching...
No Matches
PpmCompressionV1.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 TRIGT1CALOBYTESTREAM_PPMCOMPRESSIONV1_H
6#define TRIGT1CALOBYTESTREAM_PPMCOMPRESSIONV1_H
7
8namespace LVL1BS {
9
10class PpmSubBlockV1;
11
21
23
24 public:
27
29 static bool pack(PpmSubBlockV1& subBlock);
31 static bool unpack(PpmSubBlockV1& subBlock);
32
33 private:
34 static const int s_formatsV0 = 6;
35 static const int s_lowerRange = 12;
36 static const int s_upperRange = 3;
37 static const int s_formats = 7;
38 static const int s_fadcRange = 15;
39 static const int s_peakOnly = 4;
40 static const int s_lutDataBits = 8;
41 static const int s_lutBcidBits = 3;
42 static const int s_fadcDataBits = 10;
43 static const int s_glinkPins = 16;
44 static const int s_statusBits = 5;
45 static const int s_errorBits = 6;
46 static const int s_statusMask = 0x1f;
47
48 static bool unpackV100(PpmSubBlockV1& subBlock);
49 static bool unpackV101(PpmSubBlockV1& subBlock);
50 static bool unpackV104(PpmSubBlockV1& subBlock);
51
52};
53
54} // end namespace
55
56#endif
57
static const int s_peakOnly
static bool unpack(PpmSubBlockV1 &subBlock)
Unpack data.
static const int s_glinkPins
static const int s_upperRange
static bool unpackV100(PpmSubBlockV1 &subBlock)
static const int s_lutBcidBits
static const int s_errorBits
static bool pack(PpmSubBlockV1 &subBlock)
Pack data.
static bool unpackV101(PpmSubBlockV1 &subBlock)
static const int s_statusMask
static bool unpackV104(PpmSubBlockV1 &subBlock)
static const int s_lutDataBits
static const int s_fadcRange
static const int s_formatsV0
static const int s_statusBits
static const int s_lowerRange
static const int s_fadcDataBits
Sub-Block class for PPM data.