Fixing compilation errors: ISO C++ forbids variable-size array
[u/mrichter/AliRoot.git] / TPC / AliTPCTracklet.h
CommitLineData
69209e2c 1#ifndef ALITPCTRACKLET_H
2#define ALITPCTRACKLET_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7////
8// A class that contains a tracklet (a track that lives only in a single TPC
9// sector).
10////
11
12
13#include "TObject.h"
14
15class TObjArray;
16class AliTPCseed;
17class AliExternalTrackParam;
18
19class AliTPCTracklet:public TObject {
20public:
21 AliTPCTracklet();
22 AliTPCTracklet(const AliTPCseed *s,Int_t sector);
23 AliTPCTracklet(const AliTPCTracklet &t);
24 AliTPCTracklet& operator=(const AliTPCTracklet &t);
25 virtual ~AliTPCTracklet();
26
27 static TObjArray CreateTracklets(const AliTPCseed *s,
28 Int_t minClusters=0,
29 Int_t maxTracklets=72);
30
31 // Returns the tracklet parametrisation at its outer most cluster.
32 AliExternalTrackParam* GetOuter() const {return fOuter;};
33 // Returns the tracklet parametrisation at its inner most cluster.
34 AliExternalTrackParam* GetInner() const {return fInner;};
35 // Returns the tracklet parametrisation at X=0, i.e. the "primary vertex".
36 AliExternalTrackParam* GetPrimary() const {return fPrimary;};
37 // Returns the sector in which the tracklet lives.
38 Int_t GetSector() const {return fSector;}
39 // Returns the number of clusters assined to the tracklet.
40 Int_t GetNClusters() const {return fNClusters;}
41private:
42 Int_t fNClusters; // The number of clusters assined to the tracklet.
43 Int_t fSector; // The sector this tracklet lives in.
44 AliExternalTrackParam *fOuter; // The tracklet parametrisation at its outer most cluster.
45 AliExternalTrackParam *fInner; // The tracklet parametrisation at its inner most cluster.
46 AliExternalTrackParam *fPrimary; // The tracklet parametrisation at X=0, i.e. the "primary vertex".
47
48 ClassDef(AliTPCTracklet,1)
49};
50
51#endif