]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PMD/AliPMDDDLRawData.h
Update analysis macros (Jacek)
[u/mrichter/AliRoot.git] / PMD / AliPMDDDLRawData.h
index 897a9f904505400338db68ecd9379eb929482fa1..4af39f622d608aacedc9d74799df203bed07ad8d 100644 (file)
@@ -4,21 +4,16 @@
  * See cxx source for full Copyright notice                               */
 //-----------------------------------------------------//
 //                                                     //
-//  Header File : PMDDigitization.h, Version 00        //
+//  Header File : AliPMDDDLRawData.h, Version 01       //
 //                                                     //
-//  Date   : September 20 2002                         //
+//  Date   : June 20 2006                              //
 //                                                     //
 //-----------------------------------------------------//
 
+#include <TObject.h>
 
 class TClonesArray;
-class TFile;
 class TTree;
-class TBranch;
-class TMath;
-
-class AliLoader;
-class AliRunLoader;
 
 class AliPMDdigit;
 
@@ -27,28 +22,31 @@ class AliPMDDDLRawData:public TObject
  public:
 
   AliPMDDDLRawData();
+  AliPMDDDLRawData (const AliPMDDDLRawData &ddlraw);  // copy constructor
+  AliPMDDDLRawData &operator=(const AliPMDDDLRawData &ddlraw); // assignment op
+
   virtual ~AliPMDDDLRawData();
 
-  void WritePMDRawData(TTree *treeD, Int_t evtno);
-  void ReadPMDRawData(Int_t evtno);
-  void GetUMDigitsData(TTree *treeD, Int_t imodule, Int_t ium, Int_t ddlno,
-                      Int_t & totword, UInt_t *buffer);
-  void GetMCMCh(Int_t ddlno, Int_t um, Int_t row, Int_t col,
-               UInt_t &mcmno, UInt_t &chno);
-  void GetRowCol(Int_t ddlno, UInt_t mcmno, UInt_t chno,
-                Int_t &um, Int_t &row, Int_t &col);
-  void PackWord(UInt_t startbit, UInt_t stopbit, UInt_t dataword, 
-               UInt_t &packedword);
-  void UnpackWord(UInt_t startbit, UInt_t stopbit, UInt_t &dataword, 
-                 UInt_t packedword);
+  void WritePMDRawData(TTree *treeD);
+  void GetUMDigitsData(TTree *treeD, Int_t imodule, Int_t ddlno,
+                      Int_t *contentsBus, UInt_t busPatch[][1536]);
+  void TransformS2H(Int_t smn, Int_t &irow, Int_t &icol);
+  void GetMCMCh(Int_t ddlno, Int_t smn, Int_t row, Int_t col,
+               Int_t beginPatchBus, Int_t endPatchBus,
+               Int_t *mcmperBus,
+               Int_t *startRowBus, Int_t *startColBus,
+               Int_t *endRowBus, Int_t *endColBus,
+               Int_t & busno, UInt_t &mcmno, UInt_t &chno);
 
+//  void  ChMap(Int_t ddlno, Int_t smn, UInt_t iCh[][4]);
 
  protected:
 
+  Int_t ComputeParity(UInt_t baseword);
+
   TClonesArray *fDigits;    //! List of digits
-  AliPMDdigit  *fPMDdigit;  //! Pointer to digits
 
-  ClassDef(AliPMDDDLRawData,1)    // To make RAW Data
+  ClassDef(AliPMDDDLRawData,8)    // To make RAW Data
 };
 #endif