]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSLink.h
bug fix in the vertex selection
[u/mrichter/AliRoot.git] / PHOS / AliPHOSLink.h
index e17576f89685b2e4929067b6f63734df9b62c28a..53b59d475ab54927333a5c7e45f83c4be7f01459 100644 (file)
@@ -23,23 +23,16 @@ class AliPHOSLink : public  TObject{
   
 public:
   
-  AliPHOSLink( Float_t r, Int_t EMC, Int_t PPSD) ;  // ctor            
+  AliPHOSLink() ;  // ctor            
+  AliPHOSLink( Float_t x, Float_t z, Int_t emc, Int_t cpv, Int_t track) ;  // ctor            
   virtual ~AliPHOSLink(){
     // dtor
   }
   Int_t   Compare(const TObject * obj) const;
-  Int_t   GetEmc(void) { 
-    // returns the index of EMC
-    return fEmcN; 
-  }
-  Int_t   GetPpsd(void) { 
-    // returns the index of PPSD
-    return fPpsdN ; 
-  }
-  Float_t GetR(void) { 
-    // returns the distance between EMC and PPSD
-    return fR ; 
-  } 
+  Int_t   GetEmc(void) const { return fEmcN; }
+  Int_t   GetCpv(void) const { return fCpvN ; }
+  void    GetXZ(Float_t &dx, Float_t &dz) const { dx=fx ; dz = fz ; } 
+  Int_t   GetTrack(void) const { return fTrack ; }
   Bool_t  IsSortable() const{ 
     // tells if this is a sortable object 
     return kTRUE ; 
@@ -48,10 +41,12 @@ public:
 private:
   
   Int_t fEmcN ;  // Emc index
-  Int_t fPpsdN ; // Ppsd index 
-  Float_t fR ;   // Distance between EMC and PPSD RecPoints in a track segment 
+  Int_t fCpvN ;  // Cpv index 
+  Int_t fTrack;  // Charged tracked within a minimum distance of the EMC
+  Float_t fx ;   // Distance between EMC and CPV RecPoints in a track segment
+  Float_t fz ;   // Distance between EMC and CPV RecPoints in a track segment
   
-  ClassDef(AliPHOSLink,1)  // Auxilliary algorithm class used by AliPHOSTrackSegmentMaker
+  ClassDef(AliPHOSLink,2)  // Auxilliary algorithm class used by AliPHOSTrackSegmentMaker
 
 };