]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TOF/AliTOFcluster.h
Changes for TOF Reconstruction using TGeo
[u/mrichter/AliRoot.git] / TOF / AliTOFcluster.h
CommitLineData
571dda3d 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
13class AliTOFcluster : public TObject {
14 public:
15 AliTOFcluster(); // default ctor
6dc9348d 16 AliTOFcluster(Double_t *h, Int_t *l, Int_t *ind, Int_t idx, Float_t ToT, Double_t TdcND); // ctor
571dda3d 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
6dc9348d 25 Double_t GetTDCND() const {return fTdcND;} // Cluster ToF
571dda3d 26 Double_t GetADC() const {return TMath::Abs(fADC);} // Cluster Charge
6dc9348d 27 Double_t GetToT() const {return fToT;} // Cluster Charge
571dda3d 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;}
d88fbf15 33 Double_t GetQuality() const {return fQuality;}
34 void SetQuality(Double_t quality) {fQuality = quality;}
6dc9348d 35 void SetToT(Float_t ToT) {fToT = ToT;}
571dda3d 36 private:
37
38 Int_t fLab[3]; // track labels
39 Int_t fIdx; // index of this cluster
40 Int_t fdetIndex[5]; // Cluster detector Indeces (sector,plate,strip,padz,padx)
41 Double_t fR; // r-coordinate
42 Double_t fPhi; // phi-coordinate
43 Double_t fZ; // z-coordinate
44 Double_t fTDC; // TDC count
45 Double_t fADC; // ADC count
d88fbf15 46 Double_t fQuality; // quality of the best track
6dc9348d 47 Float_t fToT; // ToT
48 Double_t fTdcND; // TDC count
49
50 ClassDef(AliTOFcluster, 2) // TOF cluster
571dda3d 51};
52
53#endif