]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITStrackerSA.h
fix warnings
[u/mrichter/AliRoot.git] / ITS / AliITStrackerSA.h
CommitLineData
13918578 1#ifndef ALIITSTRACKERSA_H
2#define ALIITSTRACKERSA_H
3
4
5
36e140f1 6#include "AliITSgeomTGeo.h"
e43c066c 7#include "AliITStrackerMI.h"
13918578 8
9/* Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. *
10 * See cxx source for full Copyright notice */
11
deae0246 12/* $Id$ */
13
14
13918578 15////////////////////////////////////////////////////
16// Stand alone tracker class //
17// Origin: Elisabetta Crescio //
18// e-mail: crescio@to.infn.it //
36e140f1 19// adapted for cosmics by A.Dainese //
13918578 20////////////////////////////////////////////////////
21
22class AliITSclusterTable;
23class AliITStrackSA;
d681bb2d 24class AliESDVertex;
b8ed1a92 25class AliESDEvent;
13918578 26class AliITSVertexer;
2257f27e 27class TTree;
7e5bf5af 28class TArrayD;
13918578 29
e43c066c 30class AliITStrackerSA : public AliITStrackerMI {
13918578 31
32
33 public:
34
35 AliITStrackerSA();
cc088660 36 AliITStrackerSA(const Char_t *geom);
37 AliITStrackerSA(const Char_t *geom,AliESDVertex *vert);
38 AliITStrackerSA(const Char_t *geom,AliITSVertexer *vertexer);
7d62fb64 39 AliITStrackerSA(const AliITStrackerSA& tracker);
e399f961 40 AliITStrackerSA& operator=(const AliITStrackerSA& source);
13918578 41 virtual ~AliITStrackerSA();
af885e0f 42 virtual Int_t Clusters2Tracks(AliESDEvent *event);
3bfb5cac 43 Int_t FindTracks(AliESDEvent* event, Bool_t useAllClusters=kFALSE);
13918578 44
5a03f353 45 AliITStrackV2* FitTrack(AliITStrackSA* tr,Double_t* primaryVertex,Bool_t onePoint=kFALSE);
3bfb5cac 46 void StoreTrack(AliITStrackV2 *t,AliESDEvent *event, Bool_t pureSA) const;
deae0246 47 Int_t FindTrackLowChiSquare() const;
12b1afb7 48 Int_t LoadClusters(TTree *cf) {Int_t rc=AliITStrackerMI::LoadClusters(cf); SetClusterTree(cf); return rc;}
d681bb2d 49 void SetVertex(AliESDVertex *vtx){fVert = vtx;}
2257f27e 50 void SetClusterTree(TTree * itscl){fITSclusters = itscl;}
12b1afb7 51
52 void SetOutwardFinding() {fInwardFlag=kFALSE;}
53 void SetInwardFinding() {fInwardFlag=kTRUE;}
54 void SetOuterStartLayer(Int_t osl = 0) {
55 if(osl>(AliITSgeomTGeo::GetNLayers()-2)) AliWarning("Minimum Number of layers is 2. OuterStartLayer set to Nlayers-2");
56 fOuterStartLayer = TMath::Min(AliITSgeomTGeo::GetNLayers()-2,osl);
57 }
b8ed1a92 58 Int_t GetOuterStartLayer() const {return fOuterStartLayer;}
12b1afb7 59 void SetInnerStartLayer(Int_t isl = 5) {
60 if(isl<1) AliWarning("Minimum Number of layers is 2. InnerStartLayer set to 1");
61 fInnerStartLayer = TMath::Max(1,isl);
62 }
63 Int_t GetInnerStartLayer() const {return fInnerStartLayer;}
64
1966f03c 65 void SetSAFlag(Bool_t fl){fITSStandAlone=fl;} // StandAlone flag setter
66 Bool_t GetSAFlag() const {return fITSStandAlone;} // StandAlone flag getter
c7d6d7b7 67 void SetFixedWindowSizes(Int_t n=46, Double_t *phi=0, Double_t *lam=0);
68 void SetCalculatedWindowSizes(Int_t n=10, Float_t phimin=0.002, Float_t phimax=0.0145, Float_t lambdamin=0.003, Float_t lambdamax=0.008);
13918578 69
12b1afb7 70 void SetMinNPoints(Int_t np){fMinNPoints=np;}
71 Int_t GetMinNPoints() const {return fMinNPoints;}
3733ccd2 72 void SetMinimumChargeSDDSSD(Float_t minq=0.){fMinQ=minq;}
627b6db6 73 enum {kSAflag=0x8000}; //flag to mark clusters used in the SA tracker
13918578 74 protected:
75
13918578 76 //Initialization
77 void Init();
4e05ab9a 78 void ResetForFinding();
79 void UpdatePoints();
12b1afb7 80 Bool_t SetFirstPoint(Int_t lay, Int_t clu, Double_t* primaryVertex);
13918578 81 static Double_t Curvature(Double_t x1,Double_t y1,Double_t x2,Double_t y2,
bef31448 82 Double_t x3,Double_t y3);
13918578 83
84 Double_t ChoosePoint(Double_t p1, Double_t p2, Double_t pp);
85
86 static Int_t FindIntersection(Float_t a1, Float_t b1, Float_t c1, Float_t c2,
87 Float_t& x1,Float_t& y1, Float_t& x2, Float_t& y2);
88 static Int_t FindEquation(Float_t x1, Float_t y1, Float_t x2, Float_t y2,
89 Float_t x3, Float_t y3,Float_t& a, Float_t& b,
90 Float_t& c);
91
ee16fb28 92 Int_t FindLabel(AliITStrackV2* track);
13918578 93 Int_t SearchClusters(Int_t layer,Double_t phiwindow,Double_t lambdawindow,
cfe729e0 94 AliITStrackSA* trs,Double_t zvertex,Int_t flagp);
7e5bf5af 95
cc088660 96 void GetCoorAngles(AliITSRecPoint* cl,Double_t &phi,Double_t &lambda,Float_t &x,Float_t &y,Float_t &z,Double_t* vertex);
97 void GetCoorErrors(AliITSRecPoint* cl,Float_t &sx,Float_t &sy, Float_t &sz);
7e5bf5af 98
99 AliITSclusterTable* GetClusterCoord(Int_t layer,Int_t n) const {return (AliITSclusterTable*)fCluCoord[layer]->UncheckedAt(n);}
100 void RemoveClusterCoord(Int_t layer, Int_t n) {fCluCoord[layer]->RemoveAt(n);fCluCoord[layer]->Compress();}
101
102
13918578 103 Double_t fPhiEstimate; //Estimation of phi angle on next layer
1966f03c 104 Bool_t fITSStandAlone; //Tracking is performed in the ITS alone if kTRUE
4e05ab9a 105 Float_t fPoint1[2]; //! coord. of 1-st point to evaluate the curvature
106 Float_t fPoint2[2]; //! coord. of 2-nd point to evaluate the curvature
107 Float_t fPoint3[2]; //! coord. of 3-rd point to evaluate the curvature
108 Float_t fPointc[2]; //! current point coord (for curvature eval.)
13918578 109 Double_t fLambdac; //! current value of the Lambda angle in the window
110 Double_t fPhic; //! current value of the Phi angle in the window
111 Float_t fCoef1; //! param. of the equation of the circ. approx a layer
112 Float_t fCoef2; //! param. of the equation of the circ. approx a layer
113 Float_t fCoef3; //! param. of the equation of the circ. approx a layer
114 Int_t fNloop; // Number of iterqations on phi and lambda windows
115 Double_t *fPhiWin; // phi window sizes
116 Double_t *fLambdaWin; // lambda window sizes
d681bb2d 117 AliESDVertex *fVert; //! primary vertex
13918578 118 AliITSVertexer *fVertexer; //! vertexer
f2150e42 119 TClonesArray *fListOfTracks; //! container for found tracks
120 TClonesArray *fListOfSATracks; //! container for found SA tracks
2257f27e 121 TTree *fITSclusters; //! pointer to ITS tree of clusters
12b1afb7 122 Bool_t fInwardFlag; // set to kTRUE for inward track finding
123 Int_t fOuterStartLayer; // Outward search for tracks with <6 points: outer layer to start from
124 Int_t fInnerStartLayer; // Inward search for tracks with <6 points: inner layer to start from
125 Int_t fMinNPoints; // minimum number of clusters for a track
3733ccd2 126 Float_t fMinQ; // lower cut on cluster charge (SDD and SSD)
7e5bf5af 127
128 TClonesArray** fCluLayer; //! array with clusters
129 TClonesArray** fCluCoord; //! array with cluster info
130
f2150e42 131 ClassDef(AliITStrackerSA,10)
13918578 132};
133
134#endif
f2150e42 135
136