- void SetAddTRDseeds() { fAddTRDseeds = kTRUE; }
- void SetNoTilt() { fNoTilt = kTRUE; }
-
- Double_t GetTiltFactor(const AliTRDcluster* c);
-
- Int_t ReadClusters(TObjArray *array, TTree *in) const;
- Int_t CookSectorIndex(Int_t gs) const { return kTrackingSectors - 1 - gs; }
- AliTRDcluster * GetCluster(AliTRDtrack * track, Int_t plane, Int_t timebin);
- Int_t GetLastPlane(AliTRDtrack * track); //return last updated plane
-
- Float_t GetSeedGap() const {return fgkSeedGap;}
- Int_t GetMaxGap() const {return fMaxGap;}
- Int_t GetTimeBinsPerPlane() const {return fTimeBinsPerPlane;}
- Float_t GetSeedStep() const {return fgkSeedStep;}
- Float_t GetSeedDepth() const {return fgkSeedDepth;}
- Float_t GetSkipDepth() const {return fgkSkipDepth;}
- Double_t GetMaxChi2() const {return fgkMaxChi2;}
- Float_t GetMaxSeedC() const {return fgkMaxSeedC;}
- Float_t GetMaxSeedTan() const {return fgkMaxSeedTan;}
- Double_t GetSeedErrorSY() const {return fgkSeedErrorSY;}
- Double_t GetSeedErrorSY3() const {return fgkSeedErrorSY3;}
- Double_t GetSeedErrorSZ() const {return fgkSeedErrorSZ;}
- Float_t GetLabelFraction() const {return fgkLabelFraction;}
- Float_t GetWideRoad() const {return fgkWideRoad;}
-
- Float_t GetMinClustersInTrack() const {return fgkMinClustersInTrack;}
- Float_t GetMinClustersInSeed() const {return fgkMinClustersInSeed;}
- Float_t GetMaxSeedDeltaZ() const {return fgkMaxSeedDeltaZ;}
- Float_t GetMaxSeedVertexZ() const {return fgkMaxSeedVertexZ;}
-
- // x <-> timebin conversions useful in analysis macros
- Double_t GetX(Int_t sec, Int_t plane, Int_t localTB) const;
- Double_t GetX(Int_t sec, Int_t pl) const {
- return fTrSec[sec]->GetLayer(pl)->GetX(); }
- Int_t GetGlobalTimeBin(Int_t sec, Int_t plane, Int_t localTB) const {
- return fTrSec[sec]->CookTimeBinIndex(plane,localTB); }
- Double_t GetLayerNumber(Int_t sec, Double_t x) const {
- return fTrSec[sec]->GetLayerNumber(x); }
-
- class AliTRDpropagationLayer {
- // ***************** internal class *******************
- public:
- AliTRDpropagationLayer(Double_t x, Double_t dx, Double_t rho,
- Double_t x0, Int_t tbIndex);
-
- ~AliTRDpropagationLayer() {
- if(fTimeBinIndex >= 0) { delete[] fClusters; delete[] fIndex; }
- }
- void InsertCluster(AliTRDcluster *c, UInt_t index);
- operator Int_t() const {return fN;}
- AliTRDcluster* operator[](Int_t i) {return fClusters[i];}
- UInt_t GetIndex(Int_t i) const {return fIndex[i];}
- Double_t GetX() const { return fX; }
- Double_t GetdX() const { return fdX; }
- Double_t GetRho() const { return fRho; }
- Double_t GetX0() const { return fX0; }
- Int_t GetTimeBinIndex() const { return fTimeBinIndex; }
- void GetPropagationParameters(Double_t y, Double_t z,
- Double_t &dx, Double_t &rho, Double_t &x0,
- Bool_t &lookForCluster) const;
- Int_t GetZone( Double_t z) const;
- Int_t Find(Double_t y) const;
- void SetZmax(Int_t cham, Double_t center, Double_t w)
- { fZc[cham] = center; fZmax[cham] = w; }
- void SetZ(Double_t* center, Double_t *w, Double_t *wsensitive);
- void SetHoles(Bool_t* holes);
- void SetYmax(Double_t w, Double_t wsensitive) { fYmax = w; fYmaxSensitive = wsensitive; }
- Double_t GetYmax() const { return fYmax; }
- Double_t GetZmax(Int_t c) const { return fZmax[c]; }
- Double_t GetZc(Int_t c) const { return fZc[c]; }
-
- void SetHole(Double_t Zmax, Double_t Ymax,
- Double_t rho = 1.29e-3, Double_t x0 = 36.66,
- Double_t Yc = 0, Double_t Zc = 0);
-
- Bool_t IsSensitive() const {return (fTimeBinIndex>=0)? kTRUE: kFALSE;}
-
- void Clear() {for(Int_t i=0; i<fN; i++) fClusters[i] = NULL; fN = 0;}
- Bool_t IsHole(Int_t zone) const { return fIsHole[zone];}
- private:
-
- Int_t fN; // this is fN
- Int_t fSec; // sector mumber
- AliTRDcluster **fClusters; // array of pointers to clusters
- UInt_t *fIndex; // array of cluster indexes
- Double_t fX; // x coordinate of the middle plane
- Double_t fdX; // radial thickness of the time bin
- Double_t fRho; // default density of the material
- Double_t fX0; // default radiation length
- Int_t fTimeBinIndex; // plane * F(local_tb)
- Double_t fZc[kZones]; // Z position of the center for 5 active areas
- Double_t fZmax[kZones]; // half of active area length in Z
- Double_t fZmaxSensitive[kZones]; //sensitive area for detection Z
- Bool_t fIsHole[kZones]; //is hole in given sector
- Double_t fYmax; // half of active area length in Y
- Double_t fYmaxSensitive; // half of active area length in Y
+ void SetAddTRDseeds() { fAddTRDseeds = kTRUE; }
+ void SetNoTilt() { fNoTilt = kTRUE; }
+
+ Int_t GetTimeBinsPerPlane() const { return fTimeBinsPerPlane; }
+ Double_t GetMaxChi2() const { return fgkMaxChi2; }
+ Float_t GetLabelFraction() const { return fgkLabelFraction; }
+ Float_t GetMinClustersInTrack() const { return fgkMinClustersInTrack; }
+ Int_t GetLastPlane(AliTRDtrack *track);
+ Double_t GetTiltFactor(const AliTRDcluster *c);
+ virtual Bool_t GetTrackPoint(Int_t index, AliTrackPoint& p) const;
+ Double_t GetX(Int_t sec, Int_t plane, Int_t localTB) const;
+ Double_t GetX(Int_t sec, Int_t pl) const
+ { return fTrSec[sec]->GetLayer(pl)->GetX(); }
+ Int_t GetGlobalTimeBin(Int_t sec, Int_t plane, Int_t localTB) const
+ { return fTrSec[sec]->CookTimeBinIndex(plane,localTB); }
+ Double_t GetLayerNumber(Int_t sec, Double_t x) const
+ { return fTrSec[sec]->GetLayerNumber(x); }
+ AliCluster *GetCluster(Int_t index) const { if (index >= fNclusters) return NULL;
+ return (AliCluster *) fClusters->UncheckedAt(index); }
+
+ static Int_t Freq(Int_t n, const Int_t *inlist, Int_t *outlist, Bool_t down);
+ Int_t Clusters2Tracks(AliESDEvent *event);
+ Int_t PropagateBack(AliESDEvent *event);
+ Int_t RefitInward(AliESDEvent *event);
+
+ virtual void CookLabel(AliKalmanTrack *t, Float_t wrong) const;
+
+ Int_t LocalToGlobalID(Int_t lid);
+ Int_t GlobalToLocalID(Int_t gid);
+
+ Int_t LoadClusters(TTree *cTree);
+ void UnloadClusters();
+ virtual void UseClusters(const AliKalmanTrack *t, Int_t from = 0) const;
+ Int_t ReadClusters(TObjArray *array, TTree *in) const;
+ AliTRDcluster *GetCluster(AliTRDtrack *track, Int_t plane, Int_t timebin, UInt_t &index);
+ Int_t FindClusters(Int_t sector, Int_t t0, Int_t t1, AliTRDtrack *track
+ , Int_t *clusters, AliTRDtracklet &tracklet);
+
+ protected: