]> git.uio.no Git - u/mrichter/AliRoot.git/blame - RAW/AliTPCHNode.h
Fix in raw data headers processing in AliMDC. Removing wrong equipment size in versio...
[u/mrichter/AliRoot.git] / RAW / AliTPCHNode.h
CommitLineData
bea6b2a4 1/* Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
3
4///////////////////////////////////////////////////
5// Huffman Table associated classes for set:TPC //
6///////////////////////////////////////////////////
7
8
9#ifndef AliTPCHNODE_H
10#define AliTPCHNODE_H
11
12#include <TObject.h>
13
14class AliTPCHNode: public TObject {
15 public:
16 AliTPCHNode(); //default constructor
17 AliTPCHNode(Int_t symbol, Double_t freq);
18 virtual ~AliTPCHNode() {}
19 AliTPCHNode(const AliTPCHNode &source); // copy constructor
20 AliTPCHNode& operator=(const AliTPCHNode &source); // ass. op.
21
22 Bool_t IsSortable() const{return kTRUE;}
23 Int_t Compare(const TObject *obj) const;
24 void SetLeft(AliTPCHNode* point){fLeft=point;}
25 void SetRight(AliTPCHNode* point){fRight=point;}
a8ffd46b 26 inline AliTPCHNode* GetRight()const{return fRight;}
27 inline AliTPCHNode* GetLeft()const{return fLeft;}
bea6b2a4 28 void SetSymbol(Int_t sym){fSymbol=sym;}
29 void SetFrequency(Double_t freq){fFrequency=freq;}
30 Double_t GetFrequency()const{return fFrequency;}
a8ffd46b 31 inline Int_t GetSymbol()const{return fSymbol;}
bea6b2a4 32
33 private:
34 Int_t fSymbol; // Symbols
35 Double_t fFrequency; // Frequency of the Symbol
36 AliTPCHNode *fLeft; // Pointer to the left son
37 AliTPCHNode *fRight; // Pointer to the right son
38 ClassDef(AliTPCHNode,1)
39};
40
41#endif