]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITStrackerV2.h
Set of fixes for the DA + updated documentation (Johny)
[u/mrichter/AliRoot.git] / ITS / AliITStrackerV2.h
index bca24192ca80bc0698dcd829cee546219181c1ee..e49294df733c75dc9bdf07467fe2dfedb35c99f7 100644 (file)
@@ -5,27 +5,28 @@
 
 //-------------------------------------------------------------------------
 //                          ITS tracker
-//     reads AliITSclusterV2 clusters and creates AliITStrackV2 tracks
+//     reads AliITSRecPoint clusters and creates AliITStrackV2 tracks
 //           Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch 
 //-------------------------------------------------------------------------
 #include "AliTracker.h"
-#include "AliITSrecoV2.h"
+#include "AliITSRecoParam.h"
 #include "AliITStrackV2.h"
+#include "AliITSgeomTGeo.h"
 
-class AliITSclusterV2;
-class AliESD;
-class AliITSgeom;
+
+class AliITSRecPoint;
+class AliESDEvent;
 class TTree;
 
 
 //-------------------------------------------------------------------------
 class AliITStrackerV2 : public AliTracker {
 public:
-  AliITStrackerV2():AliTracker(){}
-  AliITStrackerV2(const AliITSgeom *geom);
+  AliITStrackerV2();
+  AliITStrackerV2(const Char_t *geom);
   ~AliITStrackerV2(){}
   AliCluster *GetCluster(Int_t index) const;
-  AliITSclusterV2 *GetCluster(Int_t l, Int_t c) const {
+  AliITSRecPoint *GetCluster(Int_t l, Int_t c) const {
     return fgLayers[l].GetCluster(c);
   }
   Int_t GetNumberOfClustersLayer(Int_t n) const {
@@ -33,10 +34,11 @@ public:
   }   
   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);
+  Int_t Clusters2Tracks(AliESDEvent *event);
+  Int_t PropagateBack(AliESDEvent *event);
+  Int_t RefitInward(AliESDEvent *event);
+  Bool_t RefitAt(Double_t x, AliITStrackV2 *seed, 
+                 const AliITStrackV2 *t, Bool_t extra=kFALSE);
   void SetupFirstPass(Int_t *flags, Double_t *cuts=0);
   void SetupSecondPass(Int_t *flags, Double_t *cuts=0);
 
@@ -47,8 +49,8 @@ public:
 
   class AliITSdetector {
   public:
-    AliITSdetector(){}
-    AliITSdetector(Double_t r,Double_t phi) {fR=r; fPhi=phi;}
+    AliITSdetector():fR(0.),fPhi(0.){}
+    AliITSdetector(Double_t r,Double_t phi):fR(r),fPhi(phi){}
     Double_t GetR()   const {return fR;}
     Double_t GetPhi() const {return fPhi;}
   private:
@@ -58,18 +60,18 @@ public:
 
   class AliITSlayer {
   public:
-    enum {kNsector=5, kMaxClusterPerSector=kMaxClusterPerLayer/kNsector};
+    enum {kNsector=5, kMaxClusterPerSector=AliITSRecoParam::fgkMaxClusterPerLayer/kNsector};
     AliITSlayer();
     AliITSlayer(Double_t r, Double_t p, Double_t z, Int_t nl, Int_t nd);
    ~AliITSlayer();
-    Int_t InsertCluster(AliITSclusterV2 *c);
+    Int_t InsertCluster(AliITSRecPoint *c);
     void ResetClusters();
     Int_t SelectClusters(Float_t zmi, Float_t zma, Float_t ymi, Float_t yma);
-    const AliITSclusterV2 *GetNextCluster(Int_t &ci);
+    const AliITSRecPoint *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 fClusters[i]; } 
+    AliITSRecPoint *GetCluster(Int_t i) const { return fClusters[i]; } 
     AliITSdetector &GetDetector(Int_t n) const { return fDetectors[n]; }
     Int_t FindDetectorIndex(Double_t phi, Double_t z) const;
     Double_t GetThickness(Double_t y, Double_t z, Double_t &x0) const;
@@ -77,6 +79,8 @@ public:
     Int_t GetNdetectors() const {return fNdetectors;}
     Int_t GetNumberOfClusters() const;
   protected:
+    AliITSlayer(const AliITSlayer&);
+    AliITSlayer &operator=(const AliITSlayer &tr);  
     Double_t fR;                // mean radius of this layer
     Double_t fPhiOffset;        // offset of the first detector in Phi
     Int_t fNladders;            // number of ladders
@@ -84,10 +88,10 @@ public:
     Int_t fNdetectors;          // detectors/ladder
     AliITSdetector *fDetectors; // array of detectors
 
-    AliITSclusterV2 *fClusters[kMaxClusterPerLayer]; // pointers to clusters
+    AliITSRecPoint *fClusters[AliITSRecoParam::fgkMaxClusterPerLayer]; // pointers to clusters
     Int_t fN[kNsector];         // numbers of clusters sector by sector 
 
-    Int_t fIndex[kMaxClusterPerLayer]; // indexes of selected clusters 
+    Int_t fIndex[AliITSRecoParam::fgkMaxClusterPerLayer]; // indexes of selected clusters 
     Int_t fNsel;                       // number of selected clusters
 
     Double_t fRoad;     // road defined by the cluster density
@@ -95,6 +99,7 @@ public:
   };
 
 protected:
+  AliITStrackerV2(const AliITStrackerV2&);
   void CookLabel(AliKalmanTrack *t,Float_t wrong) const;
   Double_t GetEffectiveThickness(Double_t y, Double_t z) const;
   void  FollowProlongation();
@@ -108,16 +113,18 @@ protected:
      new(&fTrackToFollow) AliITStrackV2(t);
   }
   Int_t fI;                              // index of the current layer
-  static AliITSlayer fgLayers[kMaxLayer];// ITS layers
-  AliITStrackV2 fTracks[kMaxLayer];      // track estimations at the ITS layers
+  static AliITSlayer fgLayers[AliITSgeomTGeo::kNLayers];// ITS layers
+  AliITStrackV2 fTracks[AliITSgeomTGeo::kNLayers];      // 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 fLayersNotToSkip[AliITSgeomTGeo::kNLayers];     // layer masks
   Int_t fLastLayerToTrackTo;             // the innermost layer to track to
 
+private:
+  AliITStrackerV2 &operator=(const AliITStrackerV2 &tr);  
   ClassDef(AliITStrackerV2,1)   //ITS tracker V2
 };