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