]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONRawCluster.h
Extracting PHOS and EMCAL trackers from the correspondig reconstructors (Yu.Belikov)
[u/mrichter/AliRoot.git] / MUON / AliMUONRawCluster.h
CommitLineData
a9e2aefa 1#ifndef ALIMUONRAWCLUSTER_H
2#define ALIMUONRAWCLUSTER_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7/* $Id$ */
30178c30 8// Revision of includes 07/05/2004
a9e2aefa 9
3afdba21 10// Class for the MUON RecPoint
11// It contains the propeorties of the physics cluters found in the tracking chambers
12// RawCluster contains also the information from the both cathode of the chambers.
13
14
a9e2aefa 15#include <TObject.h>
ecfa008b 16#include <TMath.h> // because of inline funtion GetRadius
a9e2aefa 17
30178c30 18class TArrayF;
19
a9e2aefa 20class AliMUONRawCluster : public TObject {
3afdba21 21
a9e2aefa 22public:
3afdba21 23 AliMUONRawCluster();
24 virtual ~AliMUONRawCluster() { }
25 Float_t GetRadius(Int_t i) {return TMath::Sqrt(fX[i]*fX[i]+fY[i]*fY[i]);}
26 Bool_t IsSortable() const {return kTRUE;}
27 Int_t Compare(const TObject *obj) const;
28 Int_t PhysicsContribution() const;
29 static Int_t BinarySearch(Float_t r, TArrayF ccord, Int_t from, Int_t upto);
30 static void SortMin(Int_t *idx,Float_t *xdarray, Float_t *xarray, Float_t *yarray, Float_t *qarray,Int_t ntr);
31 void DumpIndex();
a9e2aefa 32
3afdba21 33 Int_t AddCharge(Int_t i, Int_t Q);
34 Int_t AddX(Int_t i, Float_t X);
35 Int_t AddY(Int_t i, Float_t Y);
36 Int_t AddZ(Int_t i, Float_t Z);
37
38 Int_t GetCharge(Int_t i) const;
39 Float_t GetX(Int_t i) const;
40 Float_t GetY(Int_t i) const;
41 Float_t GetZ(Int_t i) const;
9e993f2a 42 Int_t GetTrack(Int_t i) const;
43 Int_t GetPeakSignal(Int_t i) const;
44 Int_t GetMultiplicity(Int_t i) const;
45 Int_t GetClusterType() const;
3b5272e3 46 Int_t GetGhost() const;
47 Int_t GetNcluster(Int_t i) const;
48 Float_t GetChi2(Int_t i) const;
0164904a 49 Int_t GetIndex(Int_t i, Int_t j) const;
50 Int_t GetOffset(Int_t i, Int_t j) const;
51 Float_t GetContrib(Int_t i, Int_t j) const;
52 Int_t GetPhysics(Int_t i) const;
3afdba21 53
54 Int_t SetCharge(Int_t i,Int_t Q);
55 Int_t SetX(Int_t i, Float_t X);
56 Int_t SetY(Int_t i, Float_t Y);
57 Int_t SetZ(Int_t i, Float_t Z);
9e993f2a 58 Int_t SetTrack(Int_t i, Int_t track);
59 Int_t SetPeakSignal(Int_t i, Int_t peaksignal);
60 Int_t SetMultiplicity(Int_t i, Int_t mul);
61 Int_t SetClusterType(Int_t type);
3b5272e3 62 Int_t SetGhost(Int_t ghost);
63 Int_t SetNcluster(Int_t i, Int_t ncluster);
64 Int_t SetChi2(Int_t i, Float_t chi2);
0164904a 65 void SetIndex(Int_t i, Int_t j, Int_t index);
66 void SetOffset(Int_t i, Int_t j, Int_t offset);
67 void SetContrib(Int_t i, Int_t j, Float_t contrib);
68 void SetPhysics(Int_t i, Int_t physics);
3afdba21 69
0164904a 70private:
a9e2aefa 71 Int_t fIndexMap[50][2]; // indeces of digits
72 Int_t fOffsetMap[50][2]; // Emmanuel special
73 Float_t fContMap[50][2]; // Contribution from digit
74 Int_t fPhysicsMap[50]; // Distinguish signal and background contr.
3b5272e3 75
9e993f2a 76 Int_t fQ[2] ; // Q of cluster (in ADC counts)
77 Float_t fX[2] ; // X of cluster
78 Float_t fY[2] ; // Y of cluster
79 Float_t fZ[2] ; // Z of cluster
80 Int_t fTracks[3]; //labels of overlapped tracks
81 Int_t fPeakSignal[2]; // Peak signal
82 Int_t fMultiplicity[2]; // Cluster multiplicity
83 Int_t fClusterType; // Cluster type
3b5272e3 84 Int_t fGhost; // 0 if not a ghost or ghost problem solved
85 // >0 if ghost problem remains because
86 // 1 both (true and ghost) satify
87 // charge chi2 compatibility
88 // 2 none give satisfactory chi2
89 Int_t fNcluster[2]; // Number of clusters
90 Float_t fChi2[2]; // Chi**2 of fit
07cfabcf 91
a1001283 92 ClassDef(AliMUONRawCluster,1) //Cluster class for MUON
a9e2aefa 93};
0164904a 94
95// inline functions
96
97inline Int_t AliMUONRawCluster::GetIndex(Int_t i, Int_t j) const
98{ return fIndexMap[i][j]; }
99
100inline Int_t AliMUONRawCluster::GetOffset(Int_t i, Int_t j) const
101{ return fOffsetMap[i][j]; }
102
103inline Float_t AliMUONRawCluster::GetContrib(Int_t i, Int_t j) const
104{ return fContMap[i][j]; }
105
106inline Int_t AliMUONRawCluster::GetPhysics(Int_t i) const
107{ return fPhysicsMap[i]; }
108
109inline void AliMUONRawCluster::SetIndex(Int_t i, Int_t j, Int_t index)
110{ fIndexMap[i][j] = index; }
111
112inline void AliMUONRawCluster::SetOffset(Int_t i, Int_t j, Int_t offset)
113{ fOffsetMap[i][j] = offset; }
114
115inline void AliMUONRawCluster::SetContrib(Int_t i, Int_t j, Float_t contrib)
116{ fContMap[i][j] = contrib; }
117
118inline void AliMUONRawCluster::SetPhysics(Int_t i, Int_t physics)
119{ fPhysicsMap[i] = physics; }
120
a9e2aefa 121#endif
122
123
124
125
126
127