]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/comp/AliL3Compress.h
Moved to the latest version of the HLT code in Bergen.
[u/mrichter/AliRoot.git] / HLT / comp / AliL3Compress.h
index e5eeaec38a82259bddeb720e9edeb770b690a256..31b40e95288ada6a4273e8db3e139b68e43a6f56 100644 (file)
@@ -1,26 +1,38 @@
+// @(#) $Id$
+
 #ifndef AliL3_Compress
 #define AliL3_Compress
 
 #include "AliL3RootTypes.h"
-#include "AliL3Models.h"
-
-class AliL3TrackArray;
+#include "AliL3DataCompressor.h"
 
 class AliL3Compress {
   
  private:
-  
-  
-  
+  AliL3TrackArray *fTracks; //!
+
+  Int_t fSlice;
+  Int_t fPatch;
+  Char_t fPath[100];
+  Bool_t fWriteShape;
+  Int_t fEvent;
+
  public:
   AliL3Compress();
+  AliL3Compress(Int_t slice,Int_t patch,Char_t *path="./",Bool_t writeshape=kFALSE,Int_t event=-1);
   virtual ~AliL3Compress();
   
-  void Write2File(AliL3TrackArray *tracks);
-  void ReadFile();
-  void CompressFile();
-  void ExpandFile();
-
+  Bool_t WriteFile(AliL3TrackArray *tracks,Char_t *filename=0);
+  Bool_t ReadFile(Char_t which,Char_t *filename=0);
+  Bool_t CompressFile();
+  Bool_t ExpandFile();
+  void CompressRemaining(AliL3SpacePointData *points[36][6],UInt_t npoints[36][6]);
+  void ExpandRemaining(TempCluster **clusters,Int_t *ncl,Int_t maxclusters);
+  void PrintCompRatio(ofstream *outfile=0);
+  void GetEntropy(Float_t &pad_entropy,Float_t &time_entropy);
+  
+  AliL3TrackArray *GetTracks() {return fTracks;}
+  
   ClassDef(AliL3Compress,1) 
 
 };