]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - STEER/AliTrackMap.h
correction for a potential problem, says Cvetan
[u/mrichter/AliRoot.git] / STEER / AliTrackMap.h
... / ...
CommitLineData
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);
29 AliTrackMap(const AliTrackMap& trm);
30 AliTrackMap& operator=(const AliTrackMap& trm)
31 {trm.Copy(*this); return(*this);}
32 ~AliTrackMap();
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;
37
38private:
39 void Copy(TObject &trm) const;
40
41 Int_t fSize; // size of the array
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