Added methods for finding a given module in the DDL map (F. Prino)
[u/mrichter/AliRoot.git] / STEER / AliTrackMap.h
CommitLineData
f0a0d075 1#ifndef ALITRACKMAP_H
2#define ALITRACKMAP_H
3/* Copyright(c) 1998-2000, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
8////////////////////////////////////////////////////////////////////////
9//
10// AliTrackMap.h
11// description:
12// contains a relation between track label and it's index
13// in a TreeH.
14// See http://AliSoft.cern.ch/people/chudoba/classes/AliTrackMap.html
15//
16// Author: Jiri Chudoba (CERN), 2002
17//
18////////////////////////////////////////////////////////////////////////
19
20#include "TNamed.h"
21
22typedef enum { kOutOfBounds = -2, kNoEntry} MapConsts_t;
23
24class AliTrackMap: public TNamed {
25
26public:
27 AliTrackMap();
28 AliTrackMap(Int_t size, Int_t *array);
e2afb3b6 29 AliTrackMap(const AliTrackMap& trm);
30 AliTrackMap& operator=(const AliTrackMap& trm)
31 {trm.Copy(*this); return(*this);}
f0a0d075 32 ~AliTrackMap();
e2afb3b6 33 Int_t At(Int_t label) const;
34 Int_t Size() const {return fSize;}
f0a0d075 35 void SetEventNr(Int_t eventNr);
e2afb3b6 36 void PrintValues() const;
f0a0d075 37
38private:
6c4904c2 39 void Copy(TObject &trm) const;
f0a0d075 40
e2afb3b6 41 Int_t fSize; // size of the array
f0a0d075 42 Int_t *fArray; //[fSize] actual map
43
44 ClassDef(AliTrackMap,1) // connection between track label and TreeH indeces
45};
46
47#endif // ALITRACKMAP_H
48
49
50
51
52