]> git.uio.no Git - u/mrichter/AliRoot.git/blame - RICH/AliRICHRawCluster.h
Fixed compiling error for HP (multiple declaration)
[u/mrichter/AliRoot.git] / RICH / AliRICHRawCluster.h
CommitLineData
237c933d 1#ifndef ALIRICHRAWCLUSTER_H
2#define ALIRICHRAWCLUSTER_H
3
4
5/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
6 * See cxx source for full Copyright notice */
7
8/* $Id$ */
9#include <TObject.h>
10#include <TMath.h>
11#include <TArrayF.h>
12
13
14class AliRICHRawCluster : public TObject {
15public:
16 Int_t fTracks[3]; //labels of overlapped tracks
17 Int_t fQ ; // Q of cluster (in ADC counts)
18 Float_t fX ; // X of cluster
19 Float_t fY ; // Y of cluster
20 Int_t fPeakSignal; // Charge in the peak
21 Int_t fIndexMap[50]; //indeces of digits
22 Int_t fOffsetMap[50]; // offset map
23 Float_t fContMap[50]; //Contribution from digit
24 Int_t fPhysicsMap[50]; // physics processes
25 Int_t fMultiplicity; //cluster multiplicity
26 Int_t fNcluster[2]; //number of clusters
27 Int_t fClusterType; //??
28 Int_t fCtype; //CL0, CL1, etc...
29 public:
30 AliRICHRawCluster() {
31 fTracks[0]=fTracks[1]=fTracks[2]=-1;
32 fQ=0; fX=fY=0; fMultiplicity=0;
33 for (int k=0;k<50;k++) {
34 fIndexMap[k]=-1;
35 fOffsetMap[k]=0;
36 fContMap[k]=0;
37 fPhysicsMap[k]=-1;
38 fCtype=-1;
39 }
40 fNcluster[0]=fNcluster[1]=-1;
41 }
42 virtual ~AliRICHRawCluster() {}
43
44 Float_t GetRadius() {return TMath::Sqrt(fX*fX+fY*fY);}
45
46 Bool_t IsSortable() const {return kTRUE;}
47 Int_t Compare(TObject *obj);
48 Int_t PhysicsContribution();
49 static Int_t BinarySearch(Float_t r, TArrayF coord, Int_t from, Int_t upto);
50 static void SortMin(Int_t *idx,Float_t *xdarray,Float_t *xarray,Float_t *yarray,Float_t *qarray,Int_t ntr);
51
52 ClassDef(AliRICHRawCluster,1) //Cluster object for set:RICH
53};
54#endif