]> git.uio.no Git - u/mrichter/AliRoot.git/blame - RICH/AliRICHRawCluster.cxx
Removed
[u/mrichter/AliRoot.git] / RICH / AliRICHRawCluster.cxx
CommitLineData
237c933d 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
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 **************************************************************************/
15
237c933d 16#include "AliRICHRawCluster.h"
17
237c933d 18ClassImp(AliRICHRawCluster)
543d5224 19//__________________________________________________________________________________________________
8a235e5c 20
21AliRICHRawCluster :: AliRICHRawCluster()
543d5224 22{//default ctor
8a235e5c 23 fTracks[0]=fTracks[1]=fTracks[2]=-1;
24 fQ=0; fX=fY=0; fMultiplicity=0;
25 for (int k=0;k<50;k++) {
26 fIndexMap[k]=-1;
27 fOffsetMap[k]=0;
28 fContMap[k]=0;
29 fPhysicsMap[k]=-1;
30 fCtype=-1;
31 }
32 fNcluster[0]=fNcluster[1]=-1;
543d5224 33}//ctor
34//__________________________________________________________________________________________________
2a941f4e 35Int_t AliRICHRawCluster::Compare(const TObject *obj) const
543d5224 36{//Compare two clusters
37 AliRICHRawCluster *raw=(AliRICHRawCluster *)obj;
38 Float_t y=fY;
39 Float_t yo=raw->fY;
40 if(y>yo) return 1;
41 else if(y<yo) return -1;
42 else return 0;
43}//Compare()
44//__________________________________________________________________________________________________
237c933d 45Int_t AliRICHRawCluster::PhysicsContribution()
543d5224 46{//Type of physics processes
47 Int_t iPhys=0;
48 Int_t iBg=0;
49 Int_t iMixed=0;
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++;
54 }
55 if(iMixed==0 && iBg==0) return 2;
56 else if((iPhys != 0 && iBg !=0) || iMixed != 0) return 1;
57 else return 0;
58}//PhysicsContribution
59//__________________________________________________________________________________________________
60void AliRICHRawCluster::Print(Option_t*)const
237c933d 61{
543d5224 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