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 #include "AliHLTCOMPHuffmanData.h"
23 ClassImp(AliHLTCOMPHuffmanData)
25 /** @file ALIHLTCOMPHuffmanData.cxx
29 @brief see header file for documentation
32 /** construction without any arguments (used for isolated tests) */
33 AliHLTCOMPHuffmanData::AliHLTCOMPHuffmanData()
35 fOrigin(kAliHLTVoidDataOrigin),
38 // see header file for class documentation
40 // refer to README to build package
42 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
45 /** HuffmanData destructor */
46 AliHLTCOMPHuffmanData::~AliHLTCOMPHuffmanData()
48 /* destructor, see header file for class documentation */
51 /** get data from OCDB and write them into instance of HuffmanData */
52 void AliHLTCOMPHuffmanData::InitHuffmanData(AliHLTCOMPHuffmanOccurrenceData::AliHLTCOMPHuffmanDataStruct* occurrencetable, AliHLTCOMPHuffmanCodeData::AliHLTCOMPHuffmanCodeStruct* codetable)
54 // see header file for class documentation
55 for(Int_t ii = 0; ii < TIMEBINS; ii++)
57 fOccurrenceTable[ii].SetHuffmanOccurrenceData(occurrencetable[ii]);
59 fCodeTable[ii].SetHuffmanCodeData(codetable[ii]);
63 AliHLTCOMPHuffmanOccurrenceData::AliHLTCOMPHuffmanDataStruct* AliHLTCOMPHuffmanData::GetOccurrenceTable(AliHLTCOMPHuffmanOccurrenceData::AliHLTCOMPHuffmanDataStruct* occurrencetable)
65 // see header file for class documentation
66 for (Int_t ii = 0; ii < TIMEBINS; ii++)
68 fOccurrenceTable[ii].GetHuffmanOccurrenceData(&(occurrencetable[ii]));
71 return occurrencetable;
75 AliHLTCOMPHuffmanCodeData::AliHLTCOMPHuffmanCodeStruct* AliHLTCOMPHuffmanData::GetCodeTable(AliHLTCOMPHuffmanCodeData::AliHLTCOMPHuffmanCodeStruct* codetable)
77 // see header file for class documentation
78 for (Int_t ii = 0; ii < TIMEBINS; ii++)
80 fCodeTable[ii].GetHuffmanCodeData(&(codetable[ii]));
86 Int_t AliHLTCOMPHuffmanData::SetOCDBSpecifications(TString origin, Int_t dataspec)
88 // see header file for class documentation