]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TOF/AliTOFcluster.h
Coding convention violations: suppression
[u/mrichter/AliRoot.git] / TOF / AliTOFcluster.h
1 #ifndef ALITOFCLUSTER_H
2 #define ALITOFCLUSTER_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$ */
8
9 //////////////////////////////////////////////
10 //                                          //
11 //     Class for TOF cluster definition     //
12 //                                          //
13 //////////////////////////////////////////////
14
15 #include "TMath.h"
16 #include "AliCluster3D.h"
17
18 class AliTOFcluster : public AliCluster3D {
19  public:
20   AliTOFcluster(); // default ctor
21   AliTOFcluster(UShort_t volId, 
22      Float_t x,   Float_t y,   Float_t z,
23      Float_t sx2, Float_t sxy, Float_t sxz,
24                   Float_t sy2, Float_t syz,
25                                Float_t sz2,
26                 Int_t *lab, Int_t *ind, Int_t *par, 
27                 Bool_t status, Int_t idx); // ctor
28   AliTOFcluster(const AliTOFcluster & cluster); // copy ctor
29   virtual ~AliTOFcluster(); // dtor
30
31   // Getters and Setters
32   Double_t GetR() const   {return fR;}   // Cluster Radius
33   Double_t GetPhi() const {return fPhi;} // Cluster Phi
34
35   Double_t GetQuality() const {return fQuality;} // Cluster quality getter
36   Bool_t   GetStatus()  const {return fStatus;}  // Cluster status getter
37   Int_t GetToT()    const {return fToT;}    // Cluster Charge getter
38   Int_t GetTDC()    const {return fTDC;}    // Cluster ToF getter
39   Int_t GetTDCND()  const {return fTdcND;}  // Cluster ToF getter
40   Int_t GetTDCRAW() const {return fTdcRAW;} // Cluster Raw time getter
41   Int_t GetADC()    const {return TMath::Abs(fADC);} // Cluster Charge getter
42   Int_t IsUsed()    const {return (fADC<0) ? 1 : 0;} // Flagging
43   Int_t GetDetInd(Int_t n) const {return fdetIndex[n];} // Cluster Detector Indices getter
44   Int_t GetIndex()  const {return fIdx;} // Digit Index getter
45
46   void  Use(Int_t = 0) {fADC=-fADC;}        //  setter
47   void  SetQuality(Double_t quality) {fQuality = quality;} // Cluster quality setter
48   void  SetStatus(Bool_t status) {fStatus = status;}       // Cluster status setter
49   void  SetToT(Int_t ToT) {fToT = ToT;}       // Cluster ToT setter
50   void  SetTDC(Int_t Tdc) {fTDC = Tdc;}       // Cluster ToF setter
51   void  SetTDCND(Int_t Tdc) {fTdcND = Tdc;}   // Cluster ToFnd setter
52   void  SetTDCRAW(Int_t Tdc) {fTdcRAW = Tdc;} // Cluster ToF-raw setter
53
54  private:
55
56   Int_t fIdx;         // index of the digit related to this cluster
57   Int_t fdetIndex[5]; // Cluster detector indices
58                       // (sector, plate, strip, padz, padx)
59   // Cluster Quality
60   Double_t fQuality;  // quality of the best track 
61
62   // Cluster Global Position
63   Double_t fR;        // r-coordinate
64   Double_t fPhi;      // phi-coordinate
65
66   // TOF Signal parameters
67   Int_t  fTDC;        // TDC count
68   Int_t  fToT;        // ToT
69   Int_t  fADC;        // ADC count
70   Int_t  fTdcND;      // TDC count
71   Int_t  fTdcRAW;     // RAW TDC count
72   Bool_t fStatus;     // cluster online status 
73
74   ClassDef(AliTOFcluster, 6) // TOF cluster
75 };
76
77 #endif