]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/src/AliHLTConfMapper.h
reverting to version 1.12 due to new library dependencies
[u/mrichter/AliRoot.git] / HLT / src / AliHLTConfMapper.h
CommitLineData
3e87ef69 1// @(#) $Id$
2
e9ecfae3 3#ifndef ALIL3CONFMAPPER_H
4#define ALIL3CONFMAPPER_H
5
6//
7//Conformal mapping base class
8//
9// Author: Anders Vestbo <mailto:vestbo@fi.uib.no>
10//*-- Copyright &copy ALICE HLT Group
108615fc 11
108615fc 12
4aa41877 13class AliHLTConfMapPoint;
14class AliHLTConfMapTrack;
15class AliHLTVertex;
16class AliHLTTrackArray;
17class AliHLTSpacePointData;
108615fc 18
b661165c 19
4aa41877 20class AliHLTConfMapper {
108615fc 21
e9ecfae3 22 public:
23
4aa41877 24 AliHLTConfMapper();
25 // AliHLTConfMapper(AliTPCParam *param,AliHLTVertex *vertex,Bool_t bench=(Bool_t)false);
26 virtual ~AliHLTConfMapper();
e9ecfae3 27
28 void InitVolumes();
29 void InitSector(Int_t sector,Int_t *rowrange=0,Float_t *etarange=0);
4aa41877 30 void SetVertex(AliHLTVertex *vertex){fVertex = vertex;}
e9ecfae3 31 void MainVertexTracking_a();
32 void MainVertexTracking_b();
33 void MainVertexTracking();
34 void NonVertexTracking();
35 void MainVertexSettings(Int_t trackletlength, Int_t tracklength,
36 Int_t rowscopetracklet, Int_t rowscopetrack,Double_t maxphi=0.1,Double_t maxeta=0.1);
37 void NonVertexSettings(Int_t trackletlength, Int_t tracklength,
38 Int_t rowscopetracklet, Int_t rowscopetrack);
4aa41877 39 Bool_t ReadHits(UInt_t count, AliHLTSpacePointData* hits );
e9ecfae3 40 void ClusterLoop();
4aa41877 41 void CreateTrack(AliHLTConfMapPoint *hit);
42 AliHLTConfMapPoint *GetNextNeighbor(AliHLTConfMapPoint *start_hit,AliHLTConfMapTrack *track=NULL);
43 Int_t EvaluateHit(AliHLTConfMapPoint *start_hit,AliHLTConfMapPoint *hit,AliHLTConfMapTrack *track);
e9ecfae3 44
4aa41877 45 Double_t CalcDistance(const AliHLTConfMapPoint *hit1,const AliHLTConfMapPoint *hit2) const;
46 Double_t TrackletAngle(AliHLTConfMapTrack *track,Int_t n=3) const;
47 Bool_t VerifyRange(const AliHLTConfMapPoint *hit1,const AliHLTConfMapPoint *hit2) const;
e9ecfae3 48 Int_t FillTracks();
49
50 //getters
51 Int_t GetNumberOfTracks() const {return fNTracks;}
4aa41877 52 AliHLTTrackArray *GetTracks() const {return fTrack;}
e9ecfae3 53 Double_t GetMaxDca() const {return fMaxDca;}
4aa41877 54 AliHLTVertex* GetVertex() const {return fVertex;}
e9ecfae3 55 Double_t CpuTime();
56
57 //setters
58 void SetTrackCuts(Double_t hitChi2Cut, Double_t goodHitChi2, Double_t trackChi2Cut, Int_t maxdist,Bool_t vertexconstraint);
59 void SetTrackletCuts(Double_t maxangle,Double_t goodDist,Bool_t vc); //Set cut of tracklet for the given vertex_constraint
60 void SetNSegments(Int_t f,Int_t g) {fNumPhiSegment=f,fNumEtaSegment=g;} //Set number of subvolumes (#segments in (phi,eta)
61 void SetMaxDca(Double_t f) {fMaxDca = f;}
62
63 //setter:
64 void SetMinPoints(Int_t f,Bool_t vconstraint) {fMinPoints[(Int_t)vconstraint] = f; }
65 void SetVertexConstraint(Bool_t f) {fVertexConstraint =f;}
66
67 void SetHitChi2Cut(Double_t f,Bool_t vert) {fHitChi2Cut[(Int_t)vert]=f;}
68 void SetGoodHitChi2(Double_t f,Bool_t vert) {fGoodHitChi2[(Int_t)vert]=f;}
69 void SetTrackChi2Cut(Double_t f,Bool_t vert) {fTrackChi2Cut[(Int_t)vert]=f;}
70 void SetMaxDist(Int_t f,Bool_t vert) {fMaxDist[(Int_t)vert]=f;}
71 void SetTrackletLength(Int_t f,Bool_t vert) {fTrackletLength[(Int_t)vert]=f;}
72 void SetRowScopeTrack(Int_t f, Bool_t vc){fRowScopeTrack[(Int_t)vc] = f;}
73 void SetRowScopeTracklet(Int_t f, Bool_t vc){fRowScopeTracklet[(Int_t)vc] = f;}
74 void SetMaxAngleTracklet(Double_t f, Bool_t vc){fMaxAngleTracklet[(Int_t)vc] = f;}
75
76 void SetPointers();
77 void SetParamDone(Bool_t vconstraint) {fParamSet[(Int_t)vconstraint] = kTRUE;}
78
79 private:
80
4aa41877 81 struct AliHLTConfMapContainer
d5cdf5cf 82 {
83 void *first; // first track
84 void *last; // last track
85 };
86
02f030e3 87 Bool_t fBench; //run-time measurements
d5cdf5cf 88 Int_t fNTracks; //number of tracks build.
108615fc 89
4aa41877 90 AliHLTVertex *fVertex; //!
d5cdf5cf 91 Bool_t fParamSet[2]; //!
e9ecfae3 92 Bool_t fVertexFinder; //Include vertexfinding or not
93 //(latter case vertex=(0,0,0))
108615fc 94
4aa41877 95 AliHLTConfMapPoint *fHit; //!
96 AliHLTTrackArray *fTrack; //!
108615fc 97 Double_t fMaxDca; //cut value for momentum fit
98
4aa41877 99 AliHLTConfMapContainer *fVolume; //! Segment volume
100 AliHLTConfMapContainer *fRow; //! Row volume
108615fc 101
102 //Number of cells (segments)
103 Int_t fNumRowSegment; // Total number of padrows
104 Int_t fNumPhiSegment; // number of phi segments
105 Int_t fNumEtaSegment; // number of eta segments
d5cdf5cf 106 Int_t fNumRowSegmentPlusOne; // row+1
107 Int_t fNumPhiSegmentPlusOne; // phi+1
108 Int_t fNumEtaSegmentPlusOne; // eta+1
109 Int_t fNumPhiEtaSegmentPlusOne;// phieta+1
110 Int_t fBounds; // bounds
111 Int_t fPhiHitsOutOfRange; // phi hits out of range
112 Int_t fEtaHitsOutOfRange; // eta hits out of range
108615fc 113
114 //tracking range:
115 Float_t fPhiMin; //MinPhi angle to consider
116 Float_t fPhiMax; //MaxPhi angle to consider
117 Float_t fEtaMin; //MinEta to consider
118 Float_t fEtaMax; //MaxEta to consider
119 Int_t fRowMin; //Minimum row to consider
120 Int_t fRowMax; //Maximum row to consider
121
122 Bool_t fVertexConstraint; //vertex constraint (true or false)
123 Int_t fTrackletLength[2]; //minimal length of tracks
124 Int_t fRowScopeTracklet[2]; //number of row segments to look for the next point of a tracklet
125 Int_t fRowScopeTrack[2]; //number of row segments to look for the next point of a track
126 Int_t fMinPoints[2]; //minimum number of points on one track
127
128 // Cuts
129 Double_t fMaxAngleTracklet[2]; //limit of angle between to pieces of a tracklet
02f030e3 130 Int_t fMaxDist[2]; //maximum distance between two hits
131 Double_t fHitChi2Cut[2]; //Maximum hit chi2
132 Double_t fGoodHitChi2[2]; //Chi2 to stop looking for next hit
133 Double_t fTrackChi2Cut[2]; //Maximum track chi2
108615fc 134 Double_t fGoodDist; //In segment building, distance consider good enough
d5cdf5cf 135 Double_t fMaxPhi; //Maximum phi
136 Double_t fMaxEta; //Maximum eta
108615fc 137
138 // Tracking informtion
139 Int_t fMainVertexTracks; //number of tracks coming from the main vertex
140 Int_t fClustersUnused; //number of unused clusters
141
4aa41877 142 ClassDef(AliHLTConfMapper,1) //Base class for conformal mapping tracking
108615fc 143};
144
4aa41877 145typedef AliHLTConfMapper AliL3ConfMapper; // for backward compatibility
146
108615fc 147#endif