]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/AliTRDtimeBin.h
Pass status code in SetTrack.
[u/mrichter/AliRoot.git] / TRD / AliTRDtimeBin.h
CommitLineData
46d29e70 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: AliTRDtimeBin.h,v */
8
9#include <TObject.h>
10
11class AliTRDcluster;
12
13const unsigned kMAX_CLUSTER_PER_TIME_BIN=3500;
14
15//-----------------------------------------------------------------
16class AliTRDtimeBin : public TObject {
17
18// Provides tools to address clusters which lay within one time bin
19
20public:
21
2685bf00 22 AliTRDtimeBin();
a1c3aded 23 virtual ~AliTRDtimeBin() { };
46d29e70 24 void InsertCluster(AliTRDcluster*,UInt_t);
25
26 operator Int_t() const {return fN;}
27 AliTRDcluster* operator[](Int_t i);
28 UInt_t GetIndex(Int_t i) const {return fIndex[i];}
29
30 Int_t Find(Double_t y) const;
31
bbf92647 32protected:
46d29e70 33
16bf9884 34 UInt_t fN;
46d29e70 35 AliTRDcluster *fClusters[kMAX_CLUSTER_PER_TIME_BIN];
36 UInt_t fIndex[kMAX_CLUSTER_PER_TIME_BIN];
37
38 ClassDef(AliTRDtimeBin,1) // Provides tools to address clusters which lay within one time bin
39
40};
41
42#endif
43