]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCtracker.h
AliTPCCalibPulser.cxx.diff check if channel has data
[u/mrichter/AliRoot.git] / TPC / AliTPCtracker.h
index cd1bdaa915045c15d54dbcbbce2b79dc99e2d82e..85a775f1ce576fda5b33188422040ed9e322fc1d 100644 (file)
@@ -21,7 +21,7 @@ class TBranch;
 class AliTPCParam;
 class TObjArray;
 class TClonesArray;
-class AliESD;
+class AliESDEvent;
 
 class AliTPCtracker : public AliTracker {
 public:
@@ -35,9 +35,9 @@ public:
    void UnloadClusters();
 
    AliCluster *GetCluster(Int_t index) const;
-   Int_t Clusters2Tracks(AliESD *event);
-   Int_t PropagateBack(AliESD *event);
-   Int_t RefitInward(AliESD *event);
+   Int_t Clusters2Tracks(AliESDEvent *event);
+   Int_t PropagateBack(AliESDEvent *event);
+   Int_t RefitInward(AliESDEvent *event);
 
    virtual void  CookLabel(AliKalmanTrack *t,Float_t wrong) const; 
 
@@ -46,8 +46,8 @@ public:
    class AliTPCRow {
    public:
      AliTPCRow():
-         fN(0), fSize(kMaxClusterPerRow/8),
-         fClusterArray(new AliTPCcluster[fSize]), fX(0) {}
+         fN(0), fClusters(), fSize(kMaxClusterPerRow/8),
+         fClusterArray(new AliTPCcluster[fSize]), fIndex(), fX(0) {}
      ~AliTPCRow() {delete[] fClusterArray;}
      void InsertCluster(const AliTPCcluster *c, Int_t sec, Int_t row);
      void ResetClusters() {fN=0; delete[] fClusterArray; fClusterArray=0;}
@@ -125,14 +125,14 @@ public:
      AliTPCSector& operator=(const AliTPCSector &s);//dummy assignment operator
    };
 
-//**************** Internal tracker class ********************** 
+//**************** Internal tracker class **********************
    class AliTPCseed : public AliTPCtrack {
    public:
-     AliTPCseed():AliTPCtrack(){}
-     AliTPCseed(const AliTPCtrack &t):AliTPCtrack(t){}
+     AliTPCseed():AliTPCtrack(){Init();}
+     AliTPCseed(const AliTPCtrack &t):AliTPCtrack(t){Init();}
      AliTPCseed(Double_t xr, Double_t alpha, const Double_t xx[5], 
                 const Double_t cc[15], Int_t index): 
-                AliTPCtrack(xr, alpha, xx, cc, index) {}
+                AliTPCtrack(xr, alpha, xx, cc, index) {Init();}
      void SetSampledEdx(Float_t q, Int_t i) {
         Double_t s=GetSnp(), t=GetTgl();
         q *= TMath::Sqrt((1-s*s)/(1+t*t));
@@ -141,9 +141,9 @@ public:
      void CookdEdx(Double_t low=0.05, Double_t up=0.70);
 
    private:
+     void Init() {for (Int_t i=0; i<200; i++) fdEdxSample[i]=0.;}
      Float_t fdEdxSample[200]; //array of dE/dx samples 
    };
-
 private:
 
    void MakeSeeds(Int_t i1, Int_t i2);