-#ifndef ALIITSTRACKER_H
-#define ALIITSTRACKER_H
+#ifndef ALIITSTRACKERV2_H
+#define ALIITSTRACKERV2_H
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
//-------------------------------------------------------------------------
// ITS tracker
-//
-// Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch
+// reads AliITSclusterV2 clusters and creates AliITStrackV2 tracks
+// Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch
//-------------------------------------------------------------------------
#include "AliTracker.h"
#include "AliITSrecoV2.h"
#include "AliITStrackV2.h"
class AliITSclusterV2;
+class AliESD;
class AliITSgeom;
-class TFile;
+class TTree;
//-------------------------------------------------------------------------
AliITStrackerV2():AliTracker(){}
AliITStrackerV2(const AliITSgeom *geom);
AliCluster *GetCluster(Int_t index) const;
- void LoadClusters();
+ Int_t LoadClusters(TTree *cf);
void UnloadClusters();
- Int_t Clusters2Tracks(const TFile *in, TFile *out);
- Int_t PropagateBack(const TFile *in, TFile *out);
+ Int_t Clusters2Tracks(TTree *in, TTree *out);
+ Int_t Clusters2Tracks(AliESD *event);
+ Int_t PropagateBack(TTree *in, TTree *out);
+ Int_t PropagateBack(AliESD *event);
+ Int_t RefitInward(TTree *in, TTree *out);
+ Int_t RefitInward(AliESD *event);
+ Bool_t RefitAt(Double_t x, AliITStrackV2 *seed, const AliITStrackV2 *t);
void SetupFirstPass(Int_t *flags, Double_t *cuts=0);
void SetupSecondPass(Int_t *flags, Double_t *cuts=0);
- Bool_t RefitAt(Double_t x, AliITStrackV2 *t, Int_t *index);
+
+ void SetLastLayerToTrackTo(Int_t l=0) {fLastLayerToTrackTo=l;}
+ void SetLayersNotToSkip(Int_t *l);
+
+ void UseClusters(const AliKalmanTrack *t, Int_t from=0) const;
class AliITSdetector {
public:
void SelectClusters(Double_t zmi,Double_t zma,Double_t ymi,Double_t yma);
const AliITSclusterV2 *GetNextCluster(Int_t &ci);
void *operator new(size_t s, AliITSlayer *p) {return p;}
+ void ResetRoad();
+ Double_t GetRoad() const {return fRoad;}
Double_t GetR() const {return fR;}
AliITSclusterV2 *GetCluster(Int_t i) const {return fClusters[i];}
AliITSdetector &GetDetector(Int_t n) const { return fDetectors[n]; }
Double_t fYmin; // of the
Double_t fYmax; // "window"
Int_t fI; // index of the current cluster within the "window"
+ Double_t fRoad; // road defined by the cluster density
Int_t FindClusterIndex(Double_t z) const;
};
new(&fTrackToFollow) AliITStrackV2(t);
}
Int_t fI; // index of the current layer
- static AliITSlayer fLayers[kMaxLayer]; // ITS layers
+ static AliITSlayer fgLayers[kMaxLayer];// ITS layers
AliITStrackV2 fTracks[kMaxLayer]; // track estimations at the ITS layers
AliITStrackV2 fBestTrack; // "best" track
AliITStrackV2 fTrackToFollow; // followed track
Int_t fPass; // current pass through the data
Int_t fConstraint[2]; // constraint flags
+
+ Int_t fLayersNotToSkip[kMaxLayer]; // layer masks
+ Int_t fLastLayerToTrackTo; // the innermost layer to track to
+
+ ClassDef(AliITStrackerV2,1) //ITS tracker V2
};