1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
16 #include "AliRICHRawCluster.h"
18 ClassImp(AliRICHRawCluster)
19 //__________________________________________________________________________________________________
21 AliRICHRawCluster :: AliRICHRawCluster()
23 fTracks[0]=fTracks[1]=fTracks[2]=-1;
24 fQ=0; fX=fY=0; fMultiplicity=0;
25 for (int k=0;k<50;k++) {
32 fNcluster[0]=fNcluster[1]=-1;
34 //__________________________________________________________________________________________________
35 Int_t AliRICHRawCluster::Compare(const TObject *obj) const
36 {//Compare two clusters
37 AliRICHRawCluster *raw=(AliRICHRawCluster *)obj;
41 else if(y<yo) return -1;
44 //__________________________________________________________________________________________________
45 Int_t AliRICHRawCluster::PhysicsContribution()
46 {//Type of physics processes
50 for (Int_t i=0; i<fMultiplicity; i++){
51 if(fPhysicsMap[i]==2) iPhys++;
52 if(fPhysicsMap[i]==1) iMixed++;
53 if(fPhysicsMap[i]==0) iBg++;
55 if(iMixed==0 && iBg==0) return 2;
56 else if((iPhys != 0 && iBg !=0) || iMixed != 0) return 1;
58 }//PhysicsContribution
59 //__________________________________________________________________________________________________
60 void AliRICHRawCluster::Print(Option_t*)const
62 Info("","X=%7.2f, Y=%7.2f, Qdc=%4i, Peak=%4i, Multip=%2i, T0=%5i T0=%5i T0=%5i",
63 fX, fY, fQ, fPeakSignal,fMultiplicity, fTracks[0], fTracks[1], fTracks[2]);
64 }//void AliRICHRawCluster::Print(Option_t *option)const