]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/comp/AliHLTCOMPHuffmanData.cxx
libANALYSISalice added.
[u/mrichter/AliRoot.git] / HLT / comp / AliHLTCOMPHuffmanData.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
c2440081 17#include "AliHLTCOMPHuffmanData.h"
c2440081 18
19#if __GNUC__ >= 3
20using namespace std;
21#endif
22
23ClassImp(AliHLTCOMPHuffmanData)
24
bf7a3243 25/** @file ALIHLTCOMPHuffmanData.cxx
26 @author Jenny Wagner
27 @date 29-08-2007
28 changed on 03-12-2007
29 @brief see header file for documentation
30*/
31
c2440081 32/** construction without any arguments (used for isolated tests) */
33AliHLTCOMPHuffmanData::AliHLTCOMPHuffmanData()
34{
35 // see header file for class documentation
36 // or
37 // refer to README to build package
38 // or
39 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
40}
41
42/** HuffmanData destructor */
43AliHLTCOMPHuffmanData::~AliHLTCOMPHuffmanData()
44{
45 /* destructor, see header file for class documentation */
46}
47
48/** get data from OCDB and write them into instance of HuffmanData */
bf7a3243 49void AliHLTCOMPHuffmanData::InitHuffmanData(AliHLTCOMPHuffmanOccurrenceData::AliHLTCOMPHuffmanDataStruct* occurrencetable, AliHLTCOMPHuffmanCodeData::AliHLTCOMPHuffmanCodeStruct* codetable)
c2440081 50{
51 // see header file for class documentation
52 for(Int_t ii = 0; ii < TIMEBINS; ii++)
53 {
54 fOccurrenceTable[ii].SetHuffmanOccurrenceData(occurrencetable[ii]);
55
56 fCodeTable[ii].SetHuffmanCodeData(codetable[ii]);
57 }
58}
59
bf7a3243 60AliHLTCOMPHuffmanOccurrenceData::AliHLTCOMPHuffmanDataStruct* AliHLTCOMPHuffmanData::GetOccurrenceTable(AliHLTCOMPHuffmanOccurrenceData::AliHLTCOMPHuffmanDataStruct* occurrencetable)
c2440081 61{
62 // see header file for class documentation
63 for (Int_t ii = 0; ii < TIMEBINS; ii++)
64 {
65 fOccurrenceTable[ii].GetHuffmanOccurrenceData(&(occurrencetable[ii]));
66 }
67
68 return occurrencetable;
69
70}
71
bf7a3243 72AliHLTCOMPHuffmanCodeData::AliHLTCOMPHuffmanCodeStruct* AliHLTCOMPHuffmanData::GetCodeTable(AliHLTCOMPHuffmanCodeData::AliHLTCOMPHuffmanCodeStruct* codetable)
c2440081 73{
74 // see header file for class documentation
75 for (Int_t ii = 0; ii < TIMEBINS; ii++)
76 {
77 fCodeTable[ii].GetHuffmanCodeData(&(codetable[ii]));
78 }
79
80 return codetable;
81}
92272b35 82
83Int_t AliHLTCOMPHuffmanData::SetOCDBSpecifications(TString origin, Int_t dataspec)
84{
85 // see header file for class documentation
86 fOrigin = origin;
87 fDataSpec = dataspec;
88
89 return 0;
90}
91