2 ///**************************************************************************
3 ///* This file is property of and copyright by the ALICE HLT Project *
4 ///* All rights reserved. *
6 ///* Primary Author: Jenny Wagner (jwagner@cern.ch) *
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 ///**************************************************************************
17 /// @file ALIHLTCOMPHuffmanCodeData.cxx
18 /// @author Jenny Wagner
20 /// @brief Data class for the Huffman code table of 10-bit-ADC-values
23 #include "AliHLTCOMPHuffmanCodeData.h"
24 #include "AliHLTStdIncludes.h"
31 ClassImp(AliHLTCOMPHuffmanCodeData)
33 /** construction without any arguments (used for isolated tests) */
34 AliHLTCOMPHuffmanCodeData::AliHLTCOMPHuffmanCodeData()
40 // see header file for class documentation
42 // refer to README to build package
44 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
47 /** HuffmanCodeData destructor */
48 AliHLTCOMPHuffmanCodeData::~AliHLTCOMPHuffmanCodeData()
50 /* destructor, see header file for class documentation */
53 void AliHLTCOMPHuffmanCodeData::SetHuffmanCodeData(const AliHLTCOMPHuffmanCodeStruct& codetableentry)
55 // see header file for class documentation
56 famplitude = codetableentry.famplitude;
57 fhuffmancode = codetableentry.fhuffmancode;
58 fvalidcodelength = codetableentry.fvalidcodelength;
61 AliHLTCOMPHuffmanCodeData::AliHLTCOMPHuffmanCodeStruct* AliHLTCOMPHuffmanCodeData::GetHuffmanCodeData(AliHLTCOMPHuffmanCodeStruct* codetableentry) const
63 // see header file for class documentation
64 codetableentry->famplitude = famplitude;
65 codetableentry->fhuffmancode = fhuffmancode;
66 codetableentry->fvalidcodelength = fvalidcodelength;
68 return codetableentry;