]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITStrackerSA.h
Fix of parsing bug related to the reading of the calib header. Added consistency...
[u/mrichter/AliRoot.git] / ITS / AliITStrackerSA.h
index aa9344a39a498dcfca7572a1d1dd828a71f27d8d..80b5da1da22e56f5bd9d591110c043bee118f2ed 100644 (file)
@@ -3,6 +3,7 @@
 
 
 
+#include "AliITSgeomTGeo.h"
 #include "AliITStrackerMI.h"
 
 /* Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. *
 //  Stand alone tracker class                     //
 //  Origin:  Elisabetta Crescio                   //
 //  e-mail:  crescio@to.infn.it                   //
+//  adapted for cosmics by A.Dainese              //
 ////////////////////////////////////////////////////
 
 class AliITSclusterTable;
 class AliITStrackSA;
 class AliESDVertex;
+class AliESDEvent;
 class AliITSVertexer;
 class TTree;
 class TArrayD;
@@ -33,17 +36,21 @@ class AliITStrackerSA : public AliITStrackerMI {
   AliITStrackerSA(const AliITStrackerSA& tracker);
   AliITStrackerSA& operator=(const AliITStrackerSA& source);
   virtual ~AliITStrackerSA();  
-  virtual Int_t Clusters2Tracks(AliESD *event);
-  Int_t FindTracks(AliESD* event);
+  virtual Int_t Clusters2Tracks(AliESDEvent *event);
+  Int_t FindTracks(AliESDEvent* event);
 
   AliITStrackV2* FitTrack(AliITStrackSA* tr,Double_t* primaryVertex);
-
+  AliITStrackV2* FitShortTrack(AliITStrackSA* tr,Double_t *primaryVertex,
+                              Int_t innLay);
+  AliITStrackV2* FitJumpyTrack(AliITStrackSA* tr,Double_t *primaryVertex);
   Int_t FindTrackLowChiSquare(TObjArray* tracklist, Int_t dim) const;
-  Int_t LoadClusters(TTree *cf) {Int_t rc=AliITStrackerMI::LoadClusters(cf); SetClusterTree(cf);SetSixPoints(kTRUE); return rc;}
+  Int_t LoadClusters(TTree *cf) {Int_t rc=AliITStrackerMI::LoadClusters(cf); SetClusterTree(cf); SetSixPoints(kTRUE); return rc;}
   void SetVertex(AliESDVertex *vtx){fVert = vtx;}
   void SetClusterTree(TTree * itscl){fITSclusters = itscl;}
   void SetSixPoints(Bool_t sp = kFALSE){fSixPoints = sp;}
   Bool_t GetSixPoints() const {return fSixPoints;}
+  void SetOuterStartLayer(Int_t osl = 0) {if(osl>(AliITSgeomTGeo::GetNLayers()-2)) osl=AliITSgeomTGeo::GetNLayers()-2; fOuterStartLayer = osl;}
+  Int_t GetOuterStartLayer() const {return fOuterStartLayer;}
   void SetSAFlag(Bool_t fl){fITSStandAlone=fl;}  // StandAlone flag setter
   Bool_t GetSAFlag() const {return fITSStandAlone;} // StandAlone flag getter
   void SetWindowSizes(Int_t n=46, Double_t *phi=0, Double_t *lam=0);
@@ -103,11 +110,12 @@ class AliITStrackerSA : public AliITStrackerMI {
   TObjArray *fListOfTracks;   //! container for found tracks 
   TTree *fITSclusters;        //! pointer to ITS tree of clusters
   Bool_t fSixPoints;          // If true 6/6 points are required (default). 5/6 otherwise
+  Int_t fOuterStartLayer;     // Search for tracks with <6 points: outer layer to start from
 
   TClonesArray** fCluLayer; //! array with clusters 
   TClonesArray** fCluCoord; //! array with cluster info
 
-  ClassDef(AliITStrackerSA,4)
+  ClassDef(AliITStrackerSA,6)
 };
 
 #endif