]>
Commit | Line | Data |
---|---|---|
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 | |
20 | using namespace std; | |
21 | #endif | |
22 | ||
23 | ClassImp(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) */ |
33 | AliHLTCOMPHuffmanData::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 */ | |
43 | AliHLTCOMPHuffmanData::~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 | 49 | void 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 | 60 | AliHLTCOMPHuffmanOccurrenceData::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 | 72 | AliHLTCOMPHuffmanCodeData::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 | |
83 | Int_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 |