1 #ifndef ALITPCCLUSTER_H
2 #define ALITPCCLUSTER_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 //-------------------------------------------------------
11 // Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch
12 //-------------------------------------------------------
16 //_____________________________________________________________________________
17 class AliTPCcluster : public TObject {
20 AliTPCcluster(Float_t *hits, Int_t *lab);
22 void SetLabel(Int_t lab, Int_t i);
26 void SetSigmaY2(Float_t sy2);
27 void SetSigmaZ2(Float_t sz2);
30 Int_t GetLabel(Int_t i) const;
34 Float_t GetSigmaY2() const;
35 Float_t GetSigmaZ2() const;
38 Int_t fTracks[3];//labels of overlapped tracks
39 Float_t fQ ; //Q of cluster (in ADC counts)
40 Float_t fY ; //Y of cluster
41 Float_t fZ ; //Z of cluster
42 Float_t fSigmaY2; //Sigma Y square of cluster
43 Float_t fSigmaZ2; //Sigma Z square of cluster
45 ClassDef(AliTPCcluster,1) // Time Projection Chamber clusters
48 inline void AliTPCcluster::Use() {
49 //if fQ<0 cluster is already associated with a track
53 inline Int_t AliTPCcluster::IsUsed() const {
54 //is this cluster already associated with any track ?
55 return (fQ<0) ? 1 : 0;
58 inline Int_t AliTPCcluster::GetLabel(Int_t i) const {
63 inline Float_t AliTPCcluster::GetQ() const {
64 //just to calm down our rule checker
68 inline Float_t AliTPCcluster::GetY() const {
69 //just to calm down our rule checker
73 inline Float_t AliTPCcluster::GetZ() const {
74 //just to calm down our rule checker
78 inline Float_t AliTPCcluster::GetSigmaY2() const {
79 //just to calm down our rule checker
83 inline Float_t AliTPCcluster::GetSigmaZ2() const {
84 //just to calm down our rule checker
88 inline void AliTPCcluster::SetLabel(Int_t lab, Int_t i) {
89 //just to calm down our rule checker
93 inline void AliTPCcluster::SetQ(Float_t q) {
94 //just to calm down our rule checker
98 inline void AliTPCcluster::SetY(Float_t y) {
99 //just to calm down our rule checker
103 inline void AliTPCcluster::SetZ(Float_t z) {
104 //just to calm down our rule checker
108 inline void AliTPCcluster::SetSigmaY2(Float_t sy2) {
109 //just to calm down our rule checker
113 inline void AliTPCcluster::SetSigmaZ2(Float_t sz2) {
114 //just to calm down our rule checker