]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCtrackerSector.h
New histogram for D vs. multiplicity studies (Aamer)
[u/mrichter/AliRoot.git] / TPC / AliTPCtrackerSector.h
index 63aa91d5a2f9e08feb4a700e54ca5297f864c5da..30ee252589a6bd4f4a041ecff99b209515d7d19c 100644 (file)
@@ -31,7 +31,7 @@ public:
   Int_t GetN() const {return fN;}
   const AliTPCclusterMI* operator[](Int_t i) const {return fClusters[i];}
   UInt_t GetIndex(Int_t i) const {return fIndex[i];}
-  inline Int_t Find(Double_t z) const; 
+  Int_t Find(Double_t z) const; 
   AliTPCclusterMI *  FindNearest(Double_t y, Double_t z, Double_t roady, Double_t roadz) const;
   AliTPCclusterMI *  FindNearest2(Double_t y, Double_t z, Double_t roady, Double_t roadz, UInt_t & index) const;
   
@@ -43,24 +43,24 @@ public:
   void SetN1(Int_t n) {fN1=n;}
   Int_t GetN2() const {return fN2;}
   void SetN2(Int_t n) {fN2=n;}
-  AliTPCclusterMI* GetClusters1() const {return fClusters1;}
-  AliTPCclusterMI* GetClusters2() const {return fClusters2;}
-  void SetClusters1(AliTPCclusterMI* cl) {fClusters1=cl;}
-  void SetClusters2(AliTPCclusterMI* cl) {fClusters2=cl;}
-  void SetCluster1(Int_t i, const AliTPCclusterMI &cl) {fClusters1[i]=cl;}
-  void SetCluster2(Int_t i, const AliTPCclusterMI &cl) {fClusters2[i]=cl;}
-  AliTPCclusterMI* GetCluster1(Int_t i) const {return &fClusters1[i];}
-  AliTPCclusterMI* GetCluster2(Int_t i) const {return &fClusters2[i];}
+  TClonesArray* GetClusters1() const {return fClusters1;}
+  TClonesArray* GetClusters2() const {return fClusters2;}
+  void SetCluster1(Int_t i, const AliTPCclusterMI &cl);
+  void SetCluster2(Int_t i, const AliTPCclusterMI &cl);
+  AliTPCclusterMI* GetCluster1(Int_t i) const {return (AliTPCclusterMI*) fClusters1->At(i);}
+  AliTPCclusterMI* GetCluster2(Int_t i) const {return (AliTPCclusterMI*) fClusters2->At(i);}
   Short_t GetFastCluster(Int_t i) const {return fFastCluster[i];}
   void SetFastCluster(Int_t i, Short_t cl);
+  Int_t IncrementN1() { return ++fN1;}
+  Int_t IncrementN2() { return ++fN2;}
   
 private:  
   AliTPCtrackerRow & operator=(const AliTPCtrackerRow & );
   AliTPCtrackerRow(const AliTPCtrackerRow& /*r*/);           //dummy copy constructor
   Float_t fDeadZone;  // the width of the dead zone
-  AliTPCclusterMI *fClusters1; //array with clusters 1
+  TClonesArray *fClusters1; //array with clusters 1
   Int_t fN1;  //number of clusters on left side
-  AliTPCclusterMI *fClusters2; //array with clusters 2
+  TClonesArray *fClusters2; //array with clusters 2
   Int_t fN2; // number of clusters on right side of the TPC
   Short_t fFastCluster[510];   //index of the nearest cluster at given position
   Int_t fN;                                          //number of clusters 
@@ -84,7 +84,7 @@ class AliTPCtrackerSector: public TObject {
     fPadPitchWidth(0.),
     fPadPitchLength(0.),
     f1PadPitchLength(0.),
-    f2PadPitchLength(0.){}
+    f2PadPitchLength(0.) {}
     ~AliTPCtrackerSector() { delete[] fRow; }
     AliTPCtrackerRow& operator[](Int_t i) const { return *(fRow+i); }
     Int_t GetNRows() const { return fN; }
@@ -101,6 +101,8 @@ class AliTPCtrackerSector: public TObject {
     Double_t GetPadPitchLength() const {return fPadPitchLength;}
     Double_t GetPadPitchLength(Float_t x) const {return (x<200) ? fPadPitchLength:f2PadPitchLength ;}
     
+    void InsertCluster(AliTPCclusterMI *cl, Int_t size, const AliTPCParam *par);
+
  private:
     AliTPCtrackerSector & operator=(const AliTPCtrackerSector & );
     AliTPCtrackerSector(const AliTPCtrackerSector &/*s*/);           //dummy copy contructor