]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TPC/AliTPCD.h
Bug fixes from M.Kowalski
[u/mrichter/AliRoot.git] / TPC / AliTPCD.h
1 #ifndef ALITPCD_H
2 #define ALITPCD_H
3
4 // include files and class forward declarations
5
6
7 // Documentation
8 /**
9   *   Object with the  TPC parameters 
10   *   
11   *
12   *
13   */
14 #include "TNamed.h"
15 #include "TTree.h"
16 class AliTPCPRF2D;
17 class AliTPCRF1D;
18 class AliTPCParam;
19 class TClonesArray;
20 class TTree;
21 class TDirectory;
22 R__EXTERN TDirectory *  gDirectory;
23 //class TBranch;
24
25 class AliTPCD : public TNamed{
26
27 public:
28   AliTPCD(
29           Text_t *  name ="DIGIT",
30           AliTPCParam *param=0, 
31           AliTPCPRF2D *prf=0, 
32           AliTPCRF1D *prfz=0);
33   ~AliTPCD();
34   
35 public: 
36  
37   AliTPCParam & GetParam() {return *fParam;}
38   //give us reference to the parameters
39   AliTPCPRF2D &  GetPRF2D() {return *fPRF;}
40   //give us reference to 2-dimensional pad response function object
41   //this is responsible for respnse in x and y dimension
42   AliTPCRF1D  &  GetRF() {return *fRF;}
43   //give us reference to 1 dimensionl response
44   //this is responsible for z-direction
45   TClonesArray * GetArray() {return fDigits;}
46   //return reference for digits array
47
48   TTree * GetTree() { return fTreeD;}
49   //return refeence to actual tree 
50   Bool_t  SetTree(Int_t nevent=0, TDirectory *dir = gDirectory);
51   //map tree from given directory
52   Bool_t  MakeTree(Int_t nevent=0);
53   //map tree from given directory
54    void Fill();
55  
56 protected:
57   
58 public:
59   AliTPCParam * fParam;     //geometry and gas parameters object 
60   AliTPCPRF2D * fPRF;            //x and y pad response function object
61   AliTPCRF1D * fRF;             //z (time) response function object
62   TClonesArray *fDigits;    //aray of tpc Digits
63   TTree   *fTreeD;        //tree 
64 private:
65   AliTPCD *fpthis;  //pointer to object
66   ClassDef(AliTPCD,2) 
67 };
68
69
70 #endif /* ALITPCD_H */