/************************************************************************** * 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. * **************************************************************************/ #include "AliRICHRawCluster.h" #include ClassImp(AliRICHRawCluster) //__________________________________________________________________________________________________ AliRICHRawCluster :: AliRICHRawCluster() {//default ctor fTracks[0]=fTracks[1]=fTracks[2]=-1; fX=fY=0; fQ=fMultiplicity=0; for (int k=0;k<50;k++) { fIndexMap[k]=-1; fContMap[k]=0; fPhysicsMap[k]=-1; fCtype=-1; } fNcluster[0]=fNcluster[1]=-1; }//ctor //__________________________________________________________________________________________________ Int_t AliRICHRawCluster::Compare(const TObject *obj) const {//Compare two clusters AliRICHRawCluster *raw=(AliRICHRawCluster *)obj; Float_t y=fY; Float_t yo=raw->fY; if(y>yo) return 1; else if(y