Change AliTRDdataArrayI to AliTRDdataArray in MakeBranch()
[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
22 AliTRDtimeBin() {fN=0;}
23 void InsertCluster(AliTRDcluster*,UInt_t);
24
25 operator Int_t() const {return fN;}
26 AliTRDcluster* operator[](Int_t i);
27 UInt_t GetIndex(Int_t i) const {return fIndex[i];}
28
29 Int_t Find(Double_t y) const;
30
31 protected:
32
33 unsigned fN;
34 AliTRDcluster *fClusters[kMAX_CLUSTER_PER_TIME_BIN];
35 UInt_t fIndex[kMAX_CLUSTER_PER_TIME_BIN];
36
37 ClassDef(AliTRDtimeBin,1) // Provides tools to address clusters which lay within one time bin
38
39};
40
41#endif
42