]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TOF/AliTOFcluster.h
calib+alignment classes moved/added to base libs
[u/mrichter/AliRoot.git] / TOF / AliTOFcluster.h
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                               */
5 // AliTOFcluster Class
6
7 /* $Id $ */
8
9 #include "TMath.h"
10
11 #include "TObject.h"
12
13 class AliTOFcluster : public TObject {
14  public:
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
20
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;}
36   void     SetTDC(Float_t Tdc) {fTDC = Tdc;}
37   void     SetTDCND(Float_t Tdc) {fTdcND = Tdc;}
38  private:
39
40   Int_t fLab[3];      // track labels
41   Int_t fIdx;         // index of this cluster
42   Int_t fdetIndex[5]; // Cluster detector Indeces (sector,plate,strip,padz,padx)
43   Double_t fR;        // r-coordinate
44   Double_t fPhi;      // phi-coordinate
45   Double_t fZ;        // z-coordinate
46   Double_t fTDC;      // TDC count
47   Double_t fADC;      // ADC count
48   Double_t fQuality;  // quality of the best track 
49   Float_t  fToT;       // ToT
50   Double_t fTdcND;      // TDC count
51
52   ClassDef(AliTOFcluster, 2) // TOF cluster
53 };
54
55 #endif