/**************************************************************************
 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
 *                                                                        *
 * Author: The ALICE Off-line Project.                                    *
 * Contributors are mentioned in the code where appropriate.              *
 *                                                                        *
 * Permission to use, copy, modify and distribute this software and its   *
 * documentation strictly for non-commercial purposes is hereby granted   *
 * without fee, provided that the above copyright notice appears in all   *
 * copies and that both the copyright notice and this permission notice   *
 * appear in the supporting documentation. The authors make no claims     *
 * about the suitability of this software for any purpose. It is          *
 * provided "as is" without express or implied warranty.                  *
 **************************************************************************/

/* $Id$ */

//_________________________________________________________________________
//  Algorithm class used only by AliPHOSTrackSegmentMaker 
//                  
//*-- Author: Dmitri Peressounko (SUBATECH)

// --- ROOT system ---

// --- Standard library ---

// --- AliRoot header files ---

#include "AliPHOSLink.h"

ClassImp(AliPHOSLink)
//____________________________________________________________________________
   AliPHOSLink::AliPHOSLink(Float_t r, Int_t Emc, Int_t Ppsd)
{
  // ctor

  fR     = r ;  
  fEmcN  = Emc ;
  fPpsdN = Ppsd ;   
}

//____________________________________________________________________________
 Int_t AliPHOSLink::Compare(TObject * obj)
{
  // Compare according to the distance between EMC and PPSD RecPoints in a track segment 

  Int_t rv ;

  AliPHOSLink * link = (AliPHOSLink *) obj ;

  if(this->fR < link->GetR() ) 
    rv = -1 ;
  else 
    rv = 1 ;

  return rv ;
}


ROOT page - Class index - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.