#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 // reads AliITSclusterV2 clusters and creates AliITStrackV2 tracks // Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch //------------------------------------------------------------------------- #include #include "AliTracker.h" #include "AliITSrecoV2.h" #include "AliITStrackV2.h" class AliITSclusterV2; class AliESD; class AliITSgeom; class TTree; //------------------------------------------------------------------------- class AliITStrackerV2 : public AliTracker { public: AliITStrackerV2():AliTracker(){} AliITStrackerV2(const AliITSgeom *geom); AliCluster *GetCluster(Int_t index) const; AliITSclusterV2 *GetClusterLayer(Int_t layn, Int_t ncl) const {return fgLayers[layn].GetCluster(ncl);} Int_t GetNumberOfClustersLayer(Int_t layn) const {return fgLayers[layn].GetNumberOfClusters();} Int_t LoadClusters(TTree *cf); void UnloadClusters(); Int_t Clusters2Tracks(AliESD *event); Int_t PropagateBack(AliESD *event); 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); 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: AliITSdetector(){} AliITSdetector(Double_t r,Double_t phi) {fR=r; fPhi=phi;} Double_t GetR() const {return fR;} Double_t GetPhi() const {return fPhi;} private: Double_t fR; // polar coordinates Double_t fPhi; // of this detector }; class AliITSlayer { friend class AliITStrackerV2; public: AliITSlayer(); AliITSlayer(Double_t r, Double_t p, Double_t z, Int_t nl, Int_t nd); ~AliITSlayer(); Int_t InsertCluster(AliITSclusterV2 *c); void ResetClusters(); void ResetWeights(); void SelectClusters(Double_t zmi,Double_t zma,Double_t ymi,Double_t yma); const AliITSclusterV2 *GetNextCluster(Int_t &ci); void ResetRoad(); Double_t GetRoad() const {return fRoad;} Double_t GetR() const {return fR;} AliITSclusterV2 *GetCluster(Int_t i) const {return iGetLabel(); if (tpcLabel<0) return; AliTracker::CookLabel(t,wrong); if (tpcLabel!=TMath::Abs(t->GetLabel())){ t->SetFakeRatio(1.); } if (tpcLabel !=t->GetLabel()) { t->SetLabel(-tpcLabel); } } #endif