]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/comp/AliHLTCOMPHuffmanOccurrenceData.cxx
Preliminary files for CMake
[u/mrichter/AliRoot.git] / HLT / comp / AliHLTCOMPHuffmanOccurrenceData.cxx
CommitLineData
c2440081 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 ALIHLTCOMPHuffmanOccurrenceData.cxx
18 @author Jenny Wagner
19 @date 29-08-2007
20 @brief Data class for the occurrence table of 10-bit-ADC-values
21*/
22
23#include "AliHLTCOMPHuffmanOccurrenceData.h"
24#include "AliHLTStdIncludes.h"
25
26#if __GNUC__ >= 3
27using namespace std;
28#endif
29
30
31ClassImp(AliHLTCOMPHuffmanOccurrenceData)
32
33/** construction without any arguments (used for isolated tests) */
34AliHLTCOMPHuffmanOccurrenceData::AliHLTCOMPHuffmanOccurrenceData()
bf7a3243 35 :
36 famplitude(0),
37 fabundance(0),
38 fcode(2) // has to be initialised to two since reasonable values are 0 and 1 !!!
c2440081 39{
40 // see header file for class documentation
41 // or
42 // refer to README to build package
43 // or
44 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
45}
46
47/** HuffmanOccurrenceData destructor */
48AliHLTCOMPHuffmanOccurrenceData::~AliHLTCOMPHuffmanOccurrenceData()
49{
50 /* destructor, see header file for class documentation */
51}
52
bf7a3243 53void AliHLTCOMPHuffmanOccurrenceData::SetHuffmanOccurrenceData(AliHLTCOMPHuffmanDataStruct const& occurrencetableentry)
c2440081 54{
55 // see header file for class documentation
bf7a3243 56 famplitude = occurrencetableentry.famplitude;
57 fabundance = occurrencetableentry.fabundance;
58 fcode = occurrencetableentry.fcode;
c2440081 59}
60
bf7a3243 61AliHLTCOMPHuffmanOccurrenceData::AliHLTCOMPHuffmanDataStruct* AliHLTCOMPHuffmanOccurrenceData::GetHuffmanOccurrenceData(AliHLTCOMPHuffmanDataStruct* occurrencetableentry)
c2440081 62{
63 // see header file for class documentation
bf7a3243 64 occurrencetableentry->famplitude = famplitude;
65 occurrencetableentry->fabundance = fabundance;
66 occurrencetableentry->fcode = fcode;
c2440081 67
68 return occurrencetableentry;
69}