1 #ifndef ALITRDTIMEBIN_H
2 #define ALITRDTIMEBIN_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
9 ////////////////////////////////////////////////////////////////////////////
11 // Hit compression class //
12 // Provides tools to address clusters which lie within one time bin //
13 // Adapted from AliTPCTimeBin by Marian //
15 ////////////////////////////////////////////////////////////////////////////
21 class AliTRDtimeBin : public TObject {
26 virtual ~AliTRDtimeBin() { };
28 operator Int_t() const { return fN; }
29 AliTRDcluster *operator[](Int_t i);
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;
37 enum { kMaxClusterPerTimeBin = 3500 };
40 AliTRDcluster *fClusters[kMaxClusterPerTimeBin]; // ????
41 UInt_t fIndex[kMaxClusterPerTimeBin]; // ????
43 ClassDef(AliTRDtimeBin,1) // Provides tools to address clusters within one time bin