]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/AliTRDtimeBin.h
Remove AliTRDv0
[u/mrichter/AliRoot.git] / TRD / AliTRDtimeBin.h
1 #ifndef ALITRDTIMEBIN_H
2 #define ALITRDTIMEBIN_H
3
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice                               */
6
7 /* $Id$*/
8
9 ////////////////////////////////////////////////////////////////////////////
10 //                                                                        //
11 //  Hit compression class                                                 //
12 //  Provides tools to address clusters which lie within one time bin      //
13 //  Adapted from AliTPCTimeBin by Marian                                  //
14 //                                                                        //
15 ////////////////////////////////////////////////////////////////////////////
16
17 #include <TObject.h>
18
19 class AliTRDcluster;
20
21 class AliTRDtimeBin : public TObject {
22
23  public: 
24
25   AliTRDtimeBin();
26   virtual ~AliTRDtimeBin() { };
27
28                    operator Int_t() const                         { return fN;        }
29   AliTRDcluster   *operator[](Int_t i);
30
31           void     InsertCluster(AliTRDcluster *c, UInt_t index);
32           UInt_t   GetIndex(Int_t i) const                        { return fIndex[i]; } 
33           Int_t    Find(Double_t y) const; 
34
35  protected:
36
37    enum { kMaxClusterPerTimeBin = 3500 };
38  
39           UInt_t   fN;                                 // ????
40    AliTRDcluster  *fClusters[kMaxClusterPerTimeBin];   // ????
41           UInt_t   fIndex[kMaxClusterPerTimeBin];      // ????
42
43   ClassDef(AliTRDtimeBin,1)                            // Provides tools to address clusters within one time bin
44
45 }; 
46
47 #endif 
48