]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSLink.h
Fix for coverity (AdC)
[u/mrichter/AliRoot.git] / PHOS / AliPHOSLink.h
index 8bac87f97143cca9f1383fc4077192cdd4fa358b..53b59d475ab54927333a5c7e45f83c4be7f01459 100644 (file)
@@ -3,13 +3,13 @@
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 
-////////////////////////////////////////////////
-//  Short description                         //
-//  Version SUBATECH                          //
-//  Author Dmitri Peressounko   SUBATECH      //
-//      comment: auxiliary class used   ONLY  //  
-//               by AliPHOSTrackSegmentMaker  //
-////////////////////////////////////////////////
+/* $Id$ */
+
+//_________________________________________________________________________
+//  Algorithm class used only by AliPHOSTrackSegmentMaker 
+//  Links recpoints
+// into tracksegments                
+//*-- Author: Dmitri Peressounko (SUBATECH)
 
 // --- ROOT system ---
 
@@ -23,24 +23,30 @@ class AliPHOSLink : public  TObject{
   
 public:
   
-  AliPHOSLink( Float_t r, Int_t EMC, Int_t PPSD) ;  // ctor            
-  virtual ~AliPHOSLink(){} // dtor
-  
-  Int_t   Compare(TObject * obj) ;
-  Int_t   GetEmc(void) { return fEmcN; }
-  Int_t   GetPpsd(void) { return fPpsdN ; }
-  Float_t GetR(void) { return fR ; } 
-  Bool_t  IsSortable() const{ return kTRUE ; }
+  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) 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 ; 
+  }
   
 private:
   
   Int_t fEmcN ;  // Emc index
-  Int_t fPpsdN ; // Ppsd index 
-  Float_t fR ;   // Distance 
-
-public: 
+  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)  // description , version 1
+  ClassDef(AliPHOSLink,2)  // Auxilliary algorithm class used by AliPHOSTrackSegmentMaker
 
 };