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 ALIHLTCOMPHuffmanOccurrenceData.cxx
20 @brief Data class for the occurrence table of 10-bit-ADC-values
23 #include "AliHLTCOMPHuffmanOccurrenceData.h"
24 #include "AliHLTStdIncludes.h"
31 ClassImp(AliHLTCOMPHuffmanOccurrenceData)
33 /** construction without any arguments (used for isolated tests) */
34 AliHLTCOMPHuffmanOccurrenceData::AliHLTCOMPHuffmanOccurrenceData()
36 // see header file for class documentation
38 // refer to README to build package
40 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
43 /** HuffmanOccurrenceData destructor */
44 AliHLTCOMPHuffmanOccurrenceData::~AliHLTCOMPHuffmanOccurrenceData()
46 /* destructor, see header file for class documentation */
49 void AliHLTCOMPHuffmanOccurrenceData::SetHuffmanOccurrenceData(AliHLTCOMPHuffmanData_t const& occurrencetableentry)
51 // see header file for class documentation
52 amplitude = occurrencetableentry.amplitude;
53 abundance = occurrencetableentry.abundance;
54 code = occurrencetableentry.code;
57 AliHLTCOMPHuffmanOccurrenceData::AliHLTCOMPHuffmanData_t* AliHLTCOMPHuffmanOccurrenceData::GetHuffmanOccurrenceData(AliHLTCOMPHuffmanData_t* occurrencetableentry)
59 // see header file for class documentation
60 occurrencetableentry->amplitude = amplitude;
61 occurrencetableentry->abundance = abundance;
62 occurrencetableentry->code = code;
64 return occurrencetableentry;