]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSCompressRawDataSDD.h
Adding Pile-up rejection from AliAnalysisUtils to AliFemto code in AOD and ESD reader...
[u/mrichter/AliRoot.git] / ITS / AliITSCompressRawDataSDD.h
index 1c94176f8d4bb4c3d34b0b0bce62829c8acce3ff..7f629e79f006a8d78fd0174e7b8da5bfa3609f73 100644 (file)
@@ -8,7 +8,6 @@
 
 #include<TObject.h>
 #include<TString.h>
-#include"AliRawReader.h"
 
 ///////////////////////////////////////////////////////////////////
 //                                                               //
 //                                                               //
 ///////////////////////////////////////////////////////////////////
 
+class AliRawReader;
+
 class AliITSCompressRawDataSDD : public TObject {
 
  public:
   AliITSCompressRawDataSDD();
-  AliITSCompressRawDataSDD(TString filename);
   ~AliITSCompressRawDataSDD();
-  void SetEventRange(Int_t first, Int_t last){
-    fEventRange=kTRUE;
-    fFirstEvent=first;
-    fLastEvent=last;
-  }
   void SetRawReader(AliRawReader* rd){
     fRawReader=rd;
   }
@@ -39,9 +34,23 @@ class AliITSCompressRawDataSDD : public TObject {
     fSizeInMemory=siz;
   }
 
-  void Compress();
   UInt_t CompressEvent(UChar_t* inputPtr);
 
+  static UInt_t MakeDataWord(Int_t carlos, Int_t side, Int_t anode, Int_t tb, Int_t adc){
+    UInt_t word= (carlos<<27) + (side<<26) + (anode<<18) + (tb<<10) + adc;
+    return word;
+  }
+
+  static UInt_t MakeEndOfModuleWord(Int_t carlos){
+    UInt_t word= (15<<28) + carlos;
+    return word;
+  }
+
+  static UInt_t MakeJitterWord(Int_t jitter){
+    UInt_t word= (8<<28) + jitter;
+    return word;
+  }
+
  protected:
 
  private:
@@ -53,10 +62,6 @@ class AliITSCompressRawDataSDD : public TObject {
   AliRawReader* fRawReader; // pointer to raw reader
   UChar_t* fPointerToData;   // pointer to the start of data in memory
   UInt_t  fSizeInMemory;    // free space in memory in Bytes
-  Bool_t  fEventRange;      // flag to select a range of events
-  Int_t   fFirstEvent;      // first event (used only if fEventRange==kTRUE)
-  Int_t   fLastEvent;       // first event (used only if fEventRange==kTRUE)
-  TString fNameFile;        // name of the raw data file
 
   ClassDef(AliITSCompressRawDataSDD, 0)
 };