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