Next version of train config
[u/mrichter/AliRoot.git] / ITS / UPGRADE / AliITSUTrackerGlo.h
CommitLineData
32d38de2 1#ifndef ALIITSTRACKERU_H
2#define ALIITSTRACKERU_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6//-------------------------------------------------------------------------
7// ITS upgrade tracker base class
8//-------------------------------------------------------------------------
9
10#include "AliTracker.h"
11#include "AliESDEvent.h"
12
13class AliITSUReconstructor;
14class AliITSURecoDet;
15class AliITSUSeed;
c61e50c3 16class AliITSUClusterPix;
17
32d38de2 18class TTree;
19
c61e50c3 20
32d38de2 21//-------------------------------------------------------------------------
22class AliITSUTrackerGlo : public AliTracker {
23
24 public:
25 enum { // info from track extrapolation to layer for cluster check
26 kTrXIn ,kTrYIn ,kTrZIn ,kTrPhiIn , // entrance (outer) point on the layer from above
27 kTrXOut,kTrYOut,kTrZOut,kTrPhiOut, // exit (inner) point on the layer
28 kTrPhi0, kTrDPhi, kTrZ0, kTrDZ, // mean phi,dPhi, mean z, dZ (don't change this order)
c61e50c3 29 kNTrImpData};
32d38de2 30 //
31 enum {kTransportFailed=1 // seed did not reach target layer
32 ,kRWCheckFailed =2 // failed to rotate the seed to frame of the layer impact point
33 };
34
35 AliITSUTrackerGlo(AliITSUReconstructor* rec);
36 virtual ~AliITSUTrackerGlo();
37
38 virtual Int_t Clusters2Tracks(AliESDEvent *event);
39 virtual Int_t PropagateBack(AliESDEvent *event);
40 virtual Int_t RefitInward(AliESDEvent *event);
41 virtual Int_t LoadClusters(TTree * treeRP=0);
42 virtual void UnloadClusters();
43 virtual AliCluster* GetCluster(Int_t index) const;
44
45
46 //------------------------------------
47 Bool_t NeedToProlong(AliESDtrack* estTr);
48 void Init(AliITSUReconstructor* rec);
49 void FindTrack(AliESDtrack* esdTr);
50 Bool_t InitSeed(AliESDtrack *esdTr);
c61e50c3 51 Int_t GetNSeeds(Int_t lr) const {return fSeedsLr[lr].GetEntriesFast();} //RS TOCHECK
52 AliITSUSeed* GetSeed(Int_t lr, Int_t sID) const {return (AliITSUSeed*)fSeedsLr[lr].UncheckedAt(sID);} //RS TOCHECK
32d38de2 53 Bool_t TransportToLayer(AliITSUSeed* seed, Int_t lFrom, Int_t lTo);
54 Bool_t NeedToKill(AliITSUSeed* seed, Int_t flag) {return kFALSE;} // todo
55 void KillSeed(Int_t ilr, Int_t id) {} // todo
c61e50c3 56 Bool_t GetRoadWidth(AliITSUSeed* seed, int ilrA);
57 //
58 AliITSUSeed* NewSeedFromPool(const AliITSUSeed* src=0);
59 void DeleteLastSeedFromPool() {fSeedsPool.RemoveLast();}
60 void ResetSeedTree(); // RS TOCHECK
32d38de2 61 //
32d38de2 62 private:
63
64 AliITSUTrackerGlo(const AliITSUTrackerGlo&);
65 AliITSUTrackerGlo &operator=(const AliITSUTrackerGlo &tr);
66 //
67 protected:
68 AliITSUReconstructor* fReconstructor; // ITS global reconstructor
69 AliITSURecoDet* fITS; // interface to ITS
70 Double_t fCurrMass; // current track mass
c61e50c3 71 Double_t fTrImpData[kNTrImpData]; // data on track impact on the layer
32d38de2 72 //
c61e50c3 73 // the seeds management to be optimized
74 TObjArray* fSeedsLr; // seeds at each layer
32d38de2 75 TClonesArray fSeedsPool; // pool for seeds
76
77 ClassDef(AliITSUTrackerGlo,1) //ITS upgrade tracker
78
79};
80#endif
81