]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TOF/AliTOFcluster.h
Reduction of DPs from DCS - only HV kept
[u/mrichter/AliRoot.git] / TOF / AliTOFcluster.h
CommitLineData
571dda3d 1#ifndef ALITOFCLUSTER_H
2#define ALITOFCLUSTER_H
0e46b9ae 3
571dda3d 4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
571dda3d 6
0e46b9ae 7/* $Id$ */
571dda3d 8
0e46b9ae 9//////////////////////////////////////////////
10// //
11// Class for TOF cluster definition //
12// //
13//////////////////////////////////////////////
571dda3d 14
0e46b9ae 15#include "TMath.h"
638f14f1 16#include "AliCluster3D.h"
571dda3d 17
638f14f1 18class AliTOFcluster : public AliCluster3D {
571dda3d 19 public:
20 AliTOFcluster(); // default ctor
638f14f1 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, Int_t *lab, Int_t *ind, Int_t *par, Bool_t status, Int_t idx); // ctor
571dda3d 26 AliTOFcluster(const AliTOFcluster & cluster); // copy ctor
27 virtual ~AliTOFcluster(); // dtor
28
638f14f1 29 // Getters and Setters
571dda3d 30 Double_t GetR() const {return fR;} // Cluster Radius
31 Double_t GetPhi() const {return fPhi;} // Cluster Phi
bf33f8f0 32 Int_t GetTDC() const {return fTDC;} // Cluster ToF
33 Int_t GetTDCND() const {return fTdcND;} // Cluster ToF
34 Int_t GetTDCRAW() const {return fTdcRAW;} // Cluster Raw time
35 Int_t GetADC() const {return TMath::Abs(fADC);} // Cluster Charge
36 Int_t GetToT() const {return fToT;} // Cluster Charge
37 Int_t IsUsed() const {return (fADC<0) ? 1 : 0;} // Flagging
bf33f8f0 38 Int_t GetDetInd(Int_t n) const {return fdetIndex[n];} // Cluster Detector Indeces
39 Int_t GetIndex() const {return fIdx;} // Cluster Index
638f14f1 40 void Use(Int_t = 0) {fADC=-fADC;}
d88fbf15 41 Double_t GetQuality() const {return fQuality;}
42 void SetQuality(Double_t quality) {fQuality = quality;}
58d8d9a3 43 Bool_t GetStatus() const {return fStatus;}
44 void SetStatus(Bool_t status) {fStatus = status;}
bf33f8f0 45 void SetToT(Int_t ToT) {fToT = ToT;}
46 void SetTDC(Int_t Tdc) {fTDC = Tdc;}
47 void SetTDCND(Int_t Tdc) {fTdcND = Tdc;}
48 void SetTDCRAW(Int_t Tdc) {fTdcRAW = Tdc;}
49
571dda3d 50 private:
51
571dda3d 52 Int_t fIdx; // index of this cluster
53 Int_t fdetIndex[5]; // Cluster detector Indeces (sector,plate,strip,padz,padx)
638f14f1 54 // Cluster Quality
55 Double_t fQuality; // quality of the best track
56
57 // Cluster Global Position
571dda3d 58 Double_t fR; // r-coordinate
59 Double_t fPhi; // phi-coordinate
6dc9348d 60
bf33f8f0 61 // TOF Signal parameters
62 Int_t fTDC; // TDC count
63 Int_t fToT; // ToT
64 Int_t fADC; // ADC count
65 Int_t fTdcND; // TDC count
66 Int_t fTdcRAW; // RAW TDC count
67 Bool_t fStatus; // cluster online status
68
638f14f1 69 ClassDef(AliTOFcluster, 6) // TOF cluster
571dda3d 70};
71
72#endif