]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RAW/AliTPCHTable.cxx
fix coding convention violations
[u/mrichter/AliRoot.git] / RAW / AliTPCHTable.cxx
similarity index 85%
rename from RAW/AliTPCHuffman.cxx
rename to RAW/AliTPCHTable.cxx
index e59e2e0dca2c2250911900b342b8f43a71f3be08..b5e3a170e517e42f60e75ebe8470406db045c8ee 100644 (file)
 //the class AliTPCHTable represents a compression table
 
 #include <TObjArray.h>
-#include <Riostream.h>
 #include <TMath.h>
 #include "AliTPCBuffer160.h"
-#include "AliTPCHuffman.h"
-
-ClassImp(AliTPCHNode)
-
-AliTPCHNode::AliTPCHNode(){
-  //Constructor
-  fLeft=0;
-  fRight=0;
-}
-
-//////////////////////////////////////////////////////////////////////////////
-
-AliTPCHNode::AliTPCHNode(Int_t sym, Double_t freq){
-  //Standard constructor
-  fSymbol=sym;
-  fFrequency=freq;
-  fLeft=0;
-  fRight=0;
-}
-
-//////////////////////////////////////////////////////////////////////////////
-
-AliTPCHNode::AliTPCHNode(const AliTPCHNode &source)
-  :TObject(source){
-  //Copy Constructor 
-  if(&source == this) return;
-  this->fSymbol = source.fSymbol;
-  this->fFrequency = source.fFrequency;
-  this->fLeft = source.fLeft;
-  this->fRight = source.fRight;
-  return;
-}
-
-//////////////////////////////////////////////////////////////////////////////
-
-AliTPCHNode& AliTPCHNode::operator=(const AliTPCHNode &source){
-  //Assignment operator
-  if(&source == this) return *this;
-  this->fSymbol = source.fSymbol;
-  this->fFrequency = source.fFrequency;
-  this->fLeft = source.fLeft;
-  this->fRight = source.fRight;
-  return *this;
-}
-
-//////////////////////////////////////////////////////////////////////////////
-
-Int_t AliTPCHNode::Compare(const TObject *obj)const{
-  //Function called by Sort method of TObjArray
-  AliTPCHNode *node=(AliTPCHNode *)obj;
-  Double_t f=fFrequency;
-  Double_t fo=node->fFrequency;
-  if (f<fo) return 1;
-  else if (f>fo) return -1;
-  else return 0;
-}
-
-//////////////////////////////////////////////////////////////////////////////
-//////////////////////////////////////////////////////////////////////////////
-//////////////////////////////////////////////////////////////////////////////
+#include "AliTPCHNode.h"
+#include "AliTPCHTable.h"
 
 ClassImp(AliTPCHTable)