]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TOF/AliTOFcluster.h
Implemented new class to read raw data and published TOF cluster class
[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); // 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 GetADC() const {return TMath::Abs(fADC);}  // Cluster Charge
26   Int_t    IsUsed() const {return (fADC<0) ? 1 : 0;}  // Flagging
27   Int_t    GetLabel(Int_t n) const  {return fLab[n];} // Labels of tracks in Cluster
28   Int_t    GetDetInd(Int_t n) const {return fdetIndex[n];} // Cluster Detector Indeces
29   Int_t    GetIndex() const         {return fIdx;}         // Cluster Index
30   void     Use() {fADC=-fADC;}
31
32  private:
33
34   Int_t fLab[3];      // track labels
35   Int_t fIdx;         // index of this cluster
36   Int_t fdetIndex[5]; // Cluster detector Indeces (sector,plate,strip,padz,padx)
37   Double_t fR;        // r-coordinate
38   Double_t fPhi;      // phi-coordinate
39   Double_t fZ;        // z-coordinate
40   Double_t fTDC;      // TDC count
41   Double_t fADC;      // ADC count
42
43   ClassDef(AliTOFcluster, 1) // TOF cluster
44 };
45
46 #endif