/************************************************************************** * 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$ */ // Class for the MUON RecPoint // It contains the properties of the physics cluters found in the tracking chambers // RawCluster contains also the information from the both cathode of the chambers. // // #include #include "AliMUONRawCluster.h" ClassImp(AliMUONRawCluster) AliMUONRawCluster::AliMUONRawCluster() : TObject() { // Constructor fTracks[0]=fTracks[1]=fTracks[2]=-1; for (int j=0;j<2;j++) { fQ[j]=0; fX[j]=0; fY[j]=0; fMultiplicity[j]=0; fPeakSignal[j]=-1; fChi2[j]=-1; for (int k=0;k<50;k++) { fIndexMap[k][j]=-1; fOffsetMap[k][j]=0; fContMap[k][j]=0; fPhysicsMap[k]=-1; } } fNcluster[0]=fNcluster[1]=-1; fGhost=0; } //____________________________________________________ Int_t AliMUONRawCluster::Compare(const TObject *obj) const { /* AliMUONRawCluster *raw=(AliMUONRawCluster *)obj; Float_t r=GetRadius(); Float_t ro=raw->GetRadius(); if (r>ro) return 1; else if (rfY[0]; if (y>yo) return 1; else if (y1) { half=(high+low)/2; if(y>coord[half]) low=half; else high=half; } return low; } //____________________________________________________ void AliMUONRawCluster::SortMin(Int_t *idx,Float_t *xdarray,Float_t *xarray,Float_t *yarray,Float_t *qarray, Int_t ntr) { // // Get the 3 closest points(cog) one can find on the second cathode // starting from a given cog on first cathode // // // Loop over deltax, only 3 times // Float_t xmin; Int_t jmin; Int_t id[3] = {-2,-2,-2}; Float_t jx[3] = {0.,0.,0.}; Float_t jy[3] = {0.,0.,0.}; Float_t jq[3] = {0.,0.,0.}; Int_t jid[3] = {-2,-2,-2}; Int_t i,j,imax; if (ntr<3) imax=ntr; else imax=3; for(i=0;i