]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/AliTRDtimeBin.h
Change of C02 density
[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
0a29d0f1 9//////////////////////////////////////////////////////////////////////
10// //
11// Hit compression class //
12// Adapted from AliTPCTimeBin by Marian //
13// //
14//////////////////////////////////////////////////////////////////////
15
46d29e70 16#include <TObject.h>
17
18class AliTRDcluster;
19
46d29e70 20//-----------------------------------------------------------------
21class AliTRDtimeBin : public TObject {
22
23// Provides tools to address clusters which lay within one time bin
24
25public:
26
2685bf00 27 AliTRDtimeBin();
a1c3aded 28 virtual ~AliTRDtimeBin() { };
0a29d0f1 29 void InsertCluster(AliTRDcluster *c, UInt_t index);
46d29e70 30
31 operator Int_t() const {return fN;}
32 AliTRDcluster* operator[](Int_t i);
33 UInt_t GetIndex(Int_t i) const {return fIndex[i];}
34
35 Int_t Find(Double_t y) const;
36
bbf92647 37protected:
0a29d0f1 38
39 enum { kMaxClusterPerTimeBin=3500 };
46d29e70 40
0a29d0f1 41 UInt_t fN; // ????
42 AliTRDcluster *fClusters[kMaxClusterPerTimeBin]; // ????
43 UInt_t fIndex[kMaxClusterPerTimeBin]; // ????
46d29e70 44
45 ClassDef(AliTRDtimeBin,1) // Provides tools to address clusters which lay within one time bin
46
47};
48
49#endif
50