]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/AliTRDtracklet.h
Remove AliTRDv2
[u/mrichter/AliRoot.git] / TRD / AliTRDtracklet.h
CommitLineData
53c17fbf 1#ifndef ALITRDTRACKLET_H
2#define ALITRDTRACKLET_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7#include <TObject.h>
8
9class AliTRDtracklet : public TObject {
10
11 //friend class AliTRDtrack;
12
13 public:
14
15 AliTRDtracklet();
16
17 void Set(Float_t x, Float_t y, Float_t z, Float_t alpha, Float_t error2)
18 { fX=x; fY=y; fZ=z; fAlpha=alpha; fSigma2= error2; }
19 void SetP0(Float_t p0) { fP0 = p0; }
20 void SetP1(Float_t p1) { fP1 = p1; }
21 void SetN(Int_t n) { fNFound = n; }
22 void SetNCross(Int_t nc) { fNCross = nc; }
23 void SetPlane(Int_t plane) { fPlane = plane; }
24 void SetSigma2(Float_t sigma2) { fExpectedSigma2 = sigma2; }
25 void SetChi2(Float_t chi2) { fChi2 = chi2; }
26 void SetTilt(Float_t tilt) { fTilt = tilt; }
27 void SetMaxPos(Short_t pos, Short_t pos4, Short_t pos5)
28 { fMaxPos = pos; fMaxPos4 = pos4; fMaxPos5 = pos5; }
29
30 Float_t GetX() const { return fX; }
31 Float_t GetY() const { return fY; }
32 Float_t GetZ() const { return fZ; }
33 Float_t GetAlpha() const { return fAlpha; }
34 Float_t GetTrackletSigma2() const { return fSigma2; }
35 Float_t GetP0() const { return fP0; }
36 Float_t GetP1() const { return fP1; }
37 Int_t GetN() const { return fNFound; }
38 Int_t GetNCross() const { return fNCross; }
39 Int_t GetPlane() const { return fPlane; }
40 Float_t GetClusterSigma2() const { return fExpectedSigma2; }
41 Float_t GetChi2() const { return fChi2; }
42 Float_t GetTilt() const { return fTilt; }
43
44 protected:
45
46 Float_t fY; // y position
47 Float_t fZ; // z position
48 Float_t fX; // x position
49 Float_t fAlpha; // rotation angle
50 Float_t fSigma2; // expected error of tracklet position
51 Float_t fP0; // offset in y
52 Float_t fP1; // offset in tangent
53 Int_t fNFound; // number of found clusters
54 Int_t fNCross; // number of crosses
55 Int_t fPlane; // plane number
56 Float_t fExpectedSigma2; // expected sigma of residual distribution of clusters
57 Float_t fChi2; // chi2 of the tracklet
58 Float_t fTilt; // tilt factor
59 Short_t fMaxPos; // time bin with max charge
60 Short_t fMaxPos4; // time bin with max charge
61 Short_t fMaxPos5; // time bin with max charge
62
63 ClassDef(AliTRDtracklet,2) // The TRD tracklet in one ROC
64
65};
66
67#endif