1 #ifndef ALITOFCLUSTER_H
2 #define ALITOFCLUSTER_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
13 class AliTOFcluster : public TObject {
15 AliTOFcluster(); // default ctor
16 AliTOFcluster(Double_t *h, Int_t *l, Int_t *ind, Int_t idx, Float_t ToT, Double_t TdcND); // ctor
17 AliTOFcluster(Double_t *h, Int_t *ind); // new ctor
18 AliTOFcluster(const AliTOFcluster & cluster); // copy ctor
19 virtual ~AliTOFcluster(); // dtor
21 Double_t GetR() const {return fR;} // Cluster Radius
22 Double_t GetPhi() const {return fPhi;} // Cluster Phi
23 Double_t GetZ() const {return fZ;} // Cluster Z
24 Double_t GetTDC() const {return fTDC;} // Cluster ToF
25 Double_t GetTDCND() const {return fTdcND;} // Cluster ToF
26 Double_t GetADC() const {return TMath::Abs(fADC);} // Cluster Charge
27 Double_t GetToT() const {return fToT;} // Cluster Charge
28 Int_t IsUsed() const {return (fADC<0) ? 1 : 0;} // Flagging
29 Int_t GetLabel(Int_t n) const {return fLab[n];} // Labels of tracks in Cluster
30 Int_t GetDetInd(Int_t n) const {return fdetIndex[n];} // Cluster Detector Indeces
31 Int_t GetIndex() const {return fIdx;} // Cluster Index
32 void Use() {fADC=-fADC;}
33 Double_t GetQuality() const {return fQuality;}
34 void SetQuality(Double_t quality) {fQuality = quality;}
35 void SetToT(Float_t ToT) {fToT = ToT;}
38 Int_t fLab[3]; // track labels
39 Int_t fIdx; // index of this cluster
40 Int_t fdetIndex[5]; // Cluster detector Indeces (sector,plate,strip,padz,padx)
41 Double_t fR; // r-coordinate
42 Double_t fPhi; // phi-coordinate
43 Double_t fZ; // z-coordinate
44 Double_t fTDC; // TDC count
45 Double_t fADC; // ADC count
46 Double_t fQuality; // quality of the best track
48 Double_t fTdcND; // TDC count
50 ClassDef(AliTOFcluster, 2) // TOF cluster