]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TOF/AliTOFcluster.h
- Adapted comments for Doxygen
[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"
571dda3d 16#include "TObject.h"
17
18class AliTOFcluster : public TObject {
19 public:
20 AliTOFcluster(); // default ctor
6dc9348d 21 AliTOFcluster(Double_t *h, Int_t *l, Int_t *ind, Int_t idx, Float_t ToT, Double_t TdcND); // ctor
571dda3d 22 AliTOFcluster(Double_t *h, Int_t *ind); // new ctor
23 AliTOFcluster(const AliTOFcluster & cluster); // copy ctor
24 virtual ~AliTOFcluster(); // dtor
25
26 Double_t GetR() const {return fR;} // Cluster Radius
27 Double_t GetPhi() const {return fPhi;} // Cluster Phi
28 Double_t GetZ() const {return fZ;} // Cluster Z
29 Double_t GetTDC() const {return fTDC;} // Cluster ToF
6dc9348d 30 Double_t GetTDCND() const {return fTdcND;} // Cluster ToF
571dda3d 31 Double_t GetADC() const {return TMath::Abs(fADC);} // Cluster Charge
6dc9348d 32 Double_t GetToT() const {return fToT;} // Cluster Charge
571dda3d 33 Int_t IsUsed() const {return (fADC<0) ? 1 : 0;} // Flagging
34 Int_t GetLabel(Int_t n) const {return fLab[n];} // Labels of tracks in Cluster
35 Int_t GetDetInd(Int_t n) const {return fdetIndex[n];} // Cluster Detector Indeces
36 Int_t GetIndex() const {return fIdx;} // Cluster Index
37 void Use() {fADC=-fADC;}
d88fbf15 38 Double_t GetQuality() const {return fQuality;}
39 void SetQuality(Double_t quality) {fQuality = quality;}
6dc9348d 40 void SetToT(Float_t ToT) {fToT = ToT;}
1473feb0 41 void SetTDC(Float_t Tdc) {fTDC = Tdc;}
42 void SetTDCND(Float_t Tdc) {fTdcND = Tdc;}
571dda3d 43 private:
44
45 Int_t fLab[3]; // track labels
46 Int_t fIdx; // index of this cluster
47 Int_t fdetIndex[5]; // Cluster detector Indeces (sector,plate,strip,padz,padx)
48 Double_t fR; // r-coordinate
49 Double_t fPhi; // phi-coordinate
50 Double_t fZ; // z-coordinate
51 Double_t fTDC; // TDC count
52 Double_t fADC; // ADC count
d88fbf15 53 Double_t fQuality; // quality of the best track
6dc9348d 54 Float_t fToT; // ToT
55 Double_t fTdcND; // TDC count
56
57 ClassDef(AliTOFcluster, 2) // TOF cluster
571dda3d 58};
59
60#endif