]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/comp/AliHLTCOMPHuffmanCodeData.cxx
d26af05c24c8a9368e42a329620b58bb3254d11a
[u/mrichter/AliRoot.git] / HLT / comp / AliHLTCOMPHuffmanCodeData.cxx
1 //-*- Mode: C++ -*-
2 /**************************************************************************
3  * This file is property of and copyright by the ALICE HLT Project        * 
4  * All rights reserved.                                                   *
5  *                                                                        *
6  * Primary Author: Jenny Wagner  (jwagner@cern.ch)                        *
7  *                                                                        *
8  * Permission to use, copy, modify and distribute this software and its   *
9  * documentation strictly for non-commercial purposes is hereby granted   *
10  * without fee, provided that the above copyright notice appears in all   *
11  * copies and that both the copyright notice and this permission notice   *
12  * appear in the supporting documentation. The authors make no claims     *
13  * about the suitability of this software for any purpose. It is          * 
14  * provided "as is" without express or implied warranty.                  *
15  **************************************************************************/
16
17 /** @file   ALIHLTCOMPHuffmanCodeData.cxx
18     @author Jenny Wagner
19     @date   29-08-2007
20     @brief  Data class for the Huffman code table of 10-bit-ADC-values
21 */
22
23 #include "AliHLTCOMPHuffmanCodeData.h"
24 #include "AliHLTStdIncludes.h"
25
26 #if __GNUC__ >= 3
27 using namespace std;
28 #endif
29
30
31 ClassImp(AliHLTCOMPHuffmanCodeData)
32
33 /** construction without any arguments (used for isolated tests) */
34 AliHLTCOMPHuffmanCodeData::AliHLTCOMPHuffmanCodeData()
35 {
36   // see header file for class documentation
37   // or
38   // refer to README to build package
39   // or
40   // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
41 }
42
43 /** HuffmanCodeData destructor  */
44 AliHLTCOMPHuffmanCodeData::~AliHLTCOMPHuffmanCodeData()
45 {
46   /* destructor, see header file for class documentation */
47 }
48
49 void AliHLTCOMPHuffmanCodeData::SetHuffmanCodeData(AliHLTCOMPHuffmanCode_t const& codetableentry)
50 {
51   // see header file for class documentation
52   amplitude = codetableentry.amplitude;
53   code = codetableentry.code;
54   validcodelength = codetableentry.validcodelength;
55 }
56
57 AliHLTCOMPHuffmanCodeData::AliHLTCOMPHuffmanCode_t* AliHLTCOMPHuffmanCodeData::GetHuffmanCodeData(AliHLTCOMPHuffmanCode_t* codetableentry)
58 {
59   // see header file for class documentation
60   codetableentry->amplitude = amplitude;
61   codetableentry->code = code;
62   codetableentry->validcodelength = validcodelength;
63
64   return codetableentry;
65 }