Example for vertex finder starting from reconstructed tracks
[u/mrichter/AliRoot.git] / ITS / AliITStrackerSA.h
CommitLineData
13918578 1#ifndef ALIITSTRACKERSA_H
2#define ALIITSTRACKERSA_H
3
4
5
6#include "AliITStrackerV2.h"
7
8/* Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. *
9 * See cxx source for full Copyright notice */
10
11////////////////////////////////////////////////////
12// Stand alone tracker class //
13// Origin: Elisabetta Crescio //
14// e-mail: crescio@to.infn.it //
15////////////////////////////////////////////////////
16
17class AliITSclusterTable;
18class AliITStrackSA;
19class AliITSVertex;
20class AliITSVertexer;
21
22class AliITStrackerSA : public AliITStrackerV2 {
23
24
25 public:
26
27 AliITStrackerSA();
28 AliITStrackerSA(AliITSgeom *geom,AliITSVertex *vert);
29 AliITStrackerSA(AliITSgeom *geom,AliITSVertexer *vertexer);
30 AliITStrackerSA(AliITStrackerSA& tracker);
31 virtual ~AliITStrackerSA();
32 void FindTracks(TTree *clusterTree, TTree *out,Int_t evnumber=0,
bef31448 33 char *opt="6/6");
34 void FindTracks(TTree *clusterTree, AliESD* event, Int_t evnumber=0,
35 char *opt="6/6");
13918578 36 AliITStrackV2* FitTrack(AliITStrackSA* tr,Double_t* primaryVertex,
bef31448 37 Double_t *errorprimvert,char *opt="6/6");
13918578 38
39 AliITStrackV2* FindTrackLowChiSquare(TObjArray* tracklist, Int_t dim) const;
40 void SetVertex(AliITSVertex *vtx){fVert = vtx;}
41 void SetWindowSizes(Int_t n=46, Double_t *phi=0, Double_t *lam=0);
42 void UseFoundTracksV2(Int_t evnum,TTree* treev2, TTree* clustertree);
bef31448 43 void UseFoundTracksV2(Int_t evnum,AliESD *event, TTree* clustertree);
13918578 44
45 protected:
46
47 // copy constructor (NO copy allowed: the constructor is protected
48 // to avoid misuse)
49 AliITStrackerSA(const AliITStrackerSA& trkr);
50 // assignment operator (NO assignment allowed)
51 AliITStrackerSA& operator=(const AliITStrackerSA& /* trkr */);
52 //Initialization
53 void Init();
54 Int_t GetFlagLoadedClusters() const {return fFlagLoad;}
bef31448 55
13918578 56 void ResetForFinding();
57 void SetFlagLoadedClusters(Int_t d) {fFlagLoad=d;}
58
59 void UpdatePoints();
60
61 static Double_t Curvature(Double_t x1,Double_t y1,Double_t x2,Double_t y2,
bef31448 62 Double_t x3,Double_t y3);
13918578 63
64 Double_t ChoosePoint(Double_t p1, Double_t p2, Double_t pp);
65
66 static Int_t FindIntersection(Float_t a1, Float_t b1, Float_t c1, Float_t c2,
67 Float_t& x1,Float_t& y1, Float_t& x2, Float_t& y2);
68 static Int_t FindEquation(Float_t x1, Float_t y1, Float_t x2, Float_t y2,
69 Float_t x3, Float_t y3,Float_t& a, Float_t& b,
70 Float_t& c);
71
72 static Int_t FindLabel(Int_t l1, Int_t l2, Int_t l3, Int_t l4, Int_t l5, Int_t l6);
73 static Int_t Label(Int_t gl1, Int_t gl2, Int_t gl3, Int_t gl4, Int_t gl5,
74 Int_t gl6,Int_t gl7, Int_t gl8, Int_t gl9, Int_t gl10,Int_t gl11,
75 Int_t gl12, Int_t gl13, Int_t gl14,Int_t gl15, Int_t gl16,
76 Int_t gl17, Int_t gl18, Int_t numberofpoints=6);
bef31448 77
13918578 78 Int_t SearchClusters(Int_t layer,Double_t phiwindow,Double_t lambdawindow,
bef31448 79 AliITStrackSA* trs,Double_t zvertex,Int_t flagp, AliITSclusterTable* table);
13918578 80
81
82 Double_t fPhiEstimate; //Estimation of phi angle on next layer
bef31448 83 Double_t fPoint1[2]; //! coord. of 1-st point to evaluate the curvature
84 Double_t fPoint2[2]; //! coord. of 2-nd point to evaluate the curvature
85 Double_t fPoint3[2]; //! coord. of 3-rd point to evaluate the curvature
86 Double_t fPointc[2]; //! current point coord (for curvature eval.)
13918578 87 Double_t fLambdac; //! current value of the Lambda angle in the window
88 Double_t fPhic; //! current value of the Phi angle in the window
89 Float_t fCoef1; //! param. of the equation of the circ. approx a layer
90 Float_t fCoef2; //! param. of the equation of the circ. approx a layer
91 Float_t fCoef3; //! param. of the equation of the circ. approx a layer
92 Int_t fNloop; // Number of iterqations on phi and lambda windows
93 Double_t *fPhiWin; // phi window sizes
94 Double_t *fLambdaWin; // lambda window sizes
95 AliITSVertex *fVert; //! primary vertex
96 AliITSVertexer *fVertexer; //! vertexer
97 AliITSgeom *fGeom; //! ITS geometry
98 Int_t fFlagLoad; // flag for loaded clusters (1==already loaded)
99 AliITSclusterTable* fTable; // table with clusters
100 ClassDef(AliITStrackerSA,1)
101};
102
103#endif
104