]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/AliTRDseed.h
Classes moved to STEERBase.
[u/mrichter/AliRoot.git] / TRD / AliTRDseed.h
CommitLineData
75bd7f81 1#ifndef ALITRDSEED_H
2#define ALITRDSEED_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
ad670fba 7/* $Id$ */
8
9////////////////////////////////////////////////////////////////////////////
10// //
11// The TRD track seed //
12// //
13////////////////////////////////////////////////////////////////////////////
14
75bd7f81 15#include "TObject.h"
16
17class AliTRDcluster;
18
19class AliTRDseed : public TObject {
20
75bd7f81 21 public:
22
23 AliTRDseed();
ad670fba 24 AliTRDseed(const AliTRDseed &s);
75bd7f81 25 ~AliTRDseed() {};
26
79289e74 27 AliTRDseed &operator=(const AliTRDseed &s) { *(new(this) AliTRDseed(s));
28 return *this; }
29
ad670fba 30
ad670fba 31 static Float_t FitRiemanTilt(AliTRDseed *seed, Bool_t error);
32 void UseClusters();
33 void Update();
34 void CookLabels();
35 void UpdateUsed();
36 void Reset();
ca1e1e5b 37
38 Bool_t IsOK() const { return fN2 > 8; }
39 Bool_t IsUsable(Int_t i) const { return fUsable[i]; }
40
41 Float_t GetTilt() const { return fTilt; }
42 Float_t GetPadLength() const { return fPadLength; }
43 Float_t GetX0() const { return fX0; }
44 Float_t GetX(Int_t i) const { return fX[i]; }
45 Float_t GetY(Int_t i) const { return fY[i]; }
46 Float_t GetZ(Int_t i) const { return fZ[i]; }
47 Int_t GetIndexes(Int_t i) const { return fIndexes[i]; }
48 AliTRDcluster *GetClusters(Int_t i) const { return fClusters[i]; }
49 Float_t GetYref(Int_t i) const { return fYref[i]; }
50 Float_t GetZref(Int_t i) const { return fZref[i]; }
51 Float_t GetYfit(Int_t i) const { return fYfit[i]; }
52 Float_t GetYfitR(Int_t i) const { return fYfitR[i]; }
53 Float_t GetZfit(Int_t i) const { return fZfit[i]; }
54 Float_t GetZfitR(Int_t i) const { return fZfitR[i]; }
55 Float_t GetSigmaY() const { return fSigmaY; }
56 Float_t GetSigmaY2() const { return fSigmaY2; }
57 Float_t GetMeanz() const { return fMeanz; }
58 Float_t GetZProb() const { return fZProb; }
59 Int_t GetLabels(Int_t i) const { return fLabels[i]; }
60 Int_t GetN2() const { return fN2; }
61 Int_t GetNUsed() const { return fNUsed; }
62 Int_t GetFreq() const { return fFreq; }
63 Float_t GetC() const { return fC; }
64 Float_t GetCC() const { return fCC; }
65 Float_t GetChi2() const { return fChi2; }
66 Float_t GetChi2Z() const { return fChi2Z; }
67
68 void SetTilt(Float_t tilt) { fTilt = tilt; }
69 void SetPadLength(Float_t len) { fPadLength = len; }
70 void SetX0(Float_t x0) { fX0 = x0; }
71 void SetX(Int_t i, Float_t x) { fX[i] = x; }
72 void SetY(Int_t i, Float_t y) { fY[i] = y; }
73 void SetZ(Int_t i, Float_t z) { fZ[i] = z; }
74 void SetIndexes(Int_t i, Int_t idx) { fIndexes[i] = idx; }
75 void SetClusters(Int_t i, AliTRDcluster *c) { fClusters[i] = c; }
76 void SetUsable(Int_t i, Bool_t usable) { fUsable[i] = usable; }
77 void SetYref(Int_t i, Float_t yref) { fYref[i] = yref; }
78 void SetZref(Int_t i, Float_t zref) { fZref[i] = zref; }
79 void SetYfit(Int_t i, Float_t yfit) { fYfit[i] = yfit; }
80 void SetYfitR(Int_t i, Float_t yfitr) { fYfitR[i] = yfitr; }
81 void SetZfit(Int_t i, Float_t zfit) { fZfit[i] = zfit; }
82 void SetZfitR(Int_t i, Float_t zfitr) { fZfitR[i] = zfitr; }
83 void SetSigmaY(Float_t sigmay) { fSigmaY = sigmay; }
84 void SetSigmaY2(Float_t sigmay) { fSigmaY2 = sigmay; }
85 void SetMeanz(Float_t meanz) { fMeanz = meanz; }
86 void SetZProb(Float_t zprob) { fZProb = zprob; }
87 void SetLabels(Int_t i, Int_t label) { fLabels[i] = label; }
88 void SetN2(Int_t n2) { fN2 = n2; }
89 void SetNUsed(Int_t nused) { fNUsed = nused; }
90 void SetFreq(Int_t freq) { fFreq = freq; }
91 void SetC(Float_t c) { fC = c; }
92 void SetCC(Float_t cc) { fCC = cc; }
93 void SetChi2(Float_t chi2) { fChi2 = chi2; }
94 void SetChi2Z(Float_t chi2z) { fChi2Z = chi2z; }
75bd7f81 95
96 private:
97
ad670fba 98 Float_t fTilt; // Tilting angle
99 Float_t fPadLength; // Pad length
100 Float_t fX0; // X0 position
101 Float_t fX[25]; //! X position
102 Float_t fY[25]; //! Y position
103 Float_t fZ[25]; //! Z position
104 Int_t fIndexes[25]; //! Indexes
105 AliTRDcluster *fClusters[25]; //! Clusters
106 Bool_t fUsable[25]; //! Indication - usable cluster
107 Float_t fYref[2]; // Reference y
108 Float_t fZref[2]; // Reference z
109 Float_t fYfit[2]; // Y fit position +derivation
110 Float_t fYfitR[2]; // Y fit position +derivation
111 Float_t fZfit[2]; // Z fit position
112 Float_t fZfitR[2]; // Z fit position
113 Float_t fSigmaY; // "Robust" sigma in Y - constant fit
114 Float_t fSigmaY2; // "Robust" sigma in Y - line fit
115 Float_t fMeanz; // Mean vaue of z
116 Float_t fZProb; // Max probbable z
117 Int_t fLabels[2]; // Labels
118 Int_t fN; // Number of associated clusters
119 Int_t fN2; // Number of not crossed
120 Int_t fNUsed; // Number of used clusters
121 Int_t fFreq; // Frequency
122 Int_t fNChange; // Change z counter
123 Float_t fMPads; // Mean number of pads per cluster
124
125 Float_t fC; // Curvature
126 Float_t fCC; // Curvature with constrain
127 Float_t fChi2; // Global chi2
128 Float_t fChi2Z; // Global chi2
129
130 ClassDef(AliTRDseed,1) // Seed for a local TRD track
75bd7f81 131
132};
ad670fba 133
75bd7f81 134#endif