3 /* Copyright(c) 1998-2000, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 ////////////////////////////////////////////////////////////////////////
12 // contains a relation between track label and it's index
14 // See http://AliSoft.cern.ch/people/chudoba/classes/AliTrackMap.html
16 // Author: Jiri Chudoba (CERN), 2002
18 ////////////////////////////////////////////////////////////////////////
22 typedef enum { kOutOfBounds = -2, kNoEntry} MapConsts_t;
24 class AliTrackMap: public TNamed {
28 AliTrackMap(Int_t size, Int_t *array);
29 AliTrackMap(const AliTrackMap& trm);
30 AliTrackMap& operator=(const AliTrackMap& trm)
31 {trm.Copy(*this); return(*this);}
33 Int_t At(Int_t label) const;
34 Int_t Size() const {return fSize;}
35 void SetEventNr(Int_t eventNr);
36 void PrintValues() const;
39 void Copy(TObject &trm) const;
41 Int_t fSize; // size of the array
42 Int_t *fArray; //[fSize] actual map
44 ClassDef(AliTrackMap,1) // connection between track label and TreeH indeces
47 #endif // ALITRACKMAP_H