]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PMD/AliPMDDDLRawData.h
PMD DDL raw data
[u/mrichter/AliRoot.git] / PMD / AliPMDDDLRawData.h
1 #ifndef ALIPMDDDLRAWDATA_H
2 #define ALIPMDDDLRAWDATA_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5 //-----------------------------------------------------//
6 //                                                     //
7 //  Header File : PMDDigitization.h, Version 00        //
8 //                                                     //
9 //  Date   : September 20 2002                         //
10 //                                                     //
11 //-----------------------------------------------------//
12
13
14 class TClonesArray;
15 class TFile;
16 class TTree;
17 class TBranch;
18 class TMath;
19
20 class AliLoader;
21 class AliRunLoader;
22
23 class AliPMDdigit;
24
25 class AliPMDDDLRawData:public TObject
26 {
27  public:
28
29   AliPMDDDLRawData();
30   virtual ~AliPMDDDLRawData();
31
32   void WritePMDRawData(TTree *treeD, Int_t evtno);
33   void ReadPMDRawData(Int_t evtno);
34   void GetUMDigitsData(TTree *treeD, Int_t imodule, Int_t ium, Int_t ddlno,
35                        Int_t & totword, UInt_t *buffer);
36   void GetMCMCh(Int_t ddlno, Int_t um, Int_t row, Int_t col,
37                 UInt_t &mcmno, UInt_t &chno);
38   void GetRowCol(Int_t ddlno, UInt_t mcmno, UInt_t chno,
39                  Int_t &um, Int_t &row, Int_t &col);
40   void PackWord(UInt_t startbit, UInt_t stopbit, UInt_t dataword, 
41                 UInt_t &packedword);
42   void UnpackWord(UInt_t startbit, UInt_t stopbit, UInt_t &dataword, 
43                   UInt_t packedword);
44
45
46  protected:
47
48   TClonesArray *fDigits;    //! List of digits
49   AliPMDdigit  *fPMDdigit;  //! Pointer to digits
50
51   ClassDef(AliPMDDDLRawData,1)    // To make RAW Data
52 };
53 #endif
54