]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliComplexCluster.h
A simple readme file for all the files stored in this dir.
[u/mrichter/AliRoot.git] / TPC / AliComplexCluster.h
index 142f759808b5c2a6e99821cf97ee8d80692b6e08..28e9202208ea979c1dc0b410f9feca36640f0342 100644 (file)
@@ -4,6 +4,11 @@
  * See cxx source for full Copyright notice                               */
 
 /* $Id$ */
+//
+// this is a class
+// AliComplexCluster
+// by M. Ivanov
+//
 
 #include "TObject.h"
 #include "TMath.h"
 
 class AliComplexCluster : public TObject {
 public:
-  friend class AliTPC;
-  friend class AliTPCClusterFinder;
-  friend class AliClusters;
-
-  AliComplexCluster() {
-    fTracks[0]=fTracks[1]=fTracks[2]=0; 
-    fX=fY=fQ=fSigmaX2=fSigmaY2=fSigmaXY=fArea=fMax=0.;
-  }
+
+  AliComplexCluster();
   virtual ~AliComplexCluster() {;}
   Bool_t    IsSortable() const;
   Int_t Compare(const TObject *o) const;
+  // the following getters are needed by HLT
+  // please dont remove... C. Loizides
+  Int_t GetTrack(Int_t i)const {return fTracks[i];} //labels of overlapped tracks
+  Float_t GetX()const {return fX;}
+  Float_t GetY()const {return fY;}
+  Float_t GetQ()const {return fQ;}
+  Float_t GetSigmaX2()const {return fSigmaX2;}
+  Float_t GetSigmaY2()const {return fSigmaY2;}
+  Float_t GetSigmaXY()const {return fSigmaXY;}
+  Float_t GetArea()const {return fArea;}
+  Float_t GetMax()const {return fMax;}
 private:
   Int_t     fTracks[3];//labels of overlapped tracks
   Float_t   fX ;       //Y of cluster
@@ -42,9 +52,19 @@ private:
 
 class AliTPCTrackerPoint  {  
  public:
-  Char_t   fIsShared;     // indicate sharing of the point between several tracks
 
-  AliTPCTrackerPoint(){fTX=0; fTY=0; fTZ=0; fTAngleZ=0; fTAngleY=0; fIsShared = 0;}
+  AliTPCTrackerPoint():
+    fTX(0),
+    fTZ(0),
+    fTY(0),
+    fTAngleZ(0),
+    fTAngleY(0),
+    fSigmaZ(0),
+    fSigmaY(0),
+    fErrZ(0),
+    fErrY(0),
+    fIsShared(0){}
+  virtual ~AliTPCTrackerPoint(){}
   Float_t  GetX() const  {return (fTX*0.01);}
   Float_t  GetZ() const {return (fTZ*0.01);}
   Float_t  GetY() const {return (fTY*0.01);}
@@ -65,6 +85,10 @@ class AliTPCTrackerPoint  {
 
   void     SetSigmaZ(Float_t sigmaz) {fSigmaZ = UChar_t(TMath::Nint(sigmaz*50.));}
   void     SetSigmaY(Float_t sigmay) {fSigmaY = UChar_t(TMath::Nint(sigmay*50.));}
+
+  Char_t   IsShared() const {return fIsShared;}
+  void     SetShared(Char_t s) {fIsShared=s;}
+
   //
  private:
   Short_t   fTX;        // x position of the cluster  in cm - 10 mum prec
@@ -76,20 +100,29 @@ class AliTPCTrackerPoint  {
   UShort_t  fSigmaY;     // shape  Y - normalised shape - normaliziation 1 - precision 2 percent
   UShort_t  fErrZ;       // z error estimate - in  mm - 50 mum precision 
   UShort_t  fErrY;       // y error estimate - in  mm - 50 mum precision 
+  Char_t   fIsShared;     // indicate sharing of the point between several tracks
 
   ClassDef(AliTPCTrackerPoint,1)  
 };
 
 class AliTPCClusterPoint  {
  public:
-  AliTPCClusterPoint(){fCZ=fCY=fSigmaZ=fSigmaY=fQ=fMax=fCType=0;}
-  inline Float_t  GetZ() const    {return (fCZ*0.01);}
-  inline Float_t  GetY() const   {return (fCY*0.01);}
-  inline Float_t  GetSigmaZ() const {return (fSigmaZ*0.02);}
-  inline Float_t  GetSigmaY() const {return (fSigmaY*0.02);}  
-  inline Int_t  GetType() const  {return fCType;}
-  inline Int_t  GetMax()  const {return fMax;}
-  inline Float_t  GetQ()  const {return fQ;}
+  AliTPCClusterPoint():
+                      fCZ(0),
+                      fCY(0), 
+                      fSigmaZ(0),
+                      fSigmaY(0),
+                      fQ(0),
+                      fMax(0),
+                      fCType(0){}
+  virtual ~AliTPCClusterPoint(){}
+  Float_t  GetZ() const    {return (fCZ*0.01);}
+  Float_t  GetY() const   {return (fCY*0.01);}
+  Float_t  GetSigmaZ() const {return (fSigmaZ*0.02);}
+  Float_t  GetSigmaY() const {return (fSigmaY*0.02);}  
+  Int_t  GetType() const  {return fCType;}
+  Int_t  GetMax()  const {return fMax;}
+  Float_t  GetQ()  const {return fQ;}
 
   //
   void     SetY(Float_t y){ fCY = Short_t(TMath::Nint(y*100.));} 
@@ -115,7 +148,17 @@ class AliTPCClusterPoint  {
 
 class AliTPCExactPoint : public TObject{
  public:
-  AliTPCExactPoint(){fEZ=fEY=fEAngleZ=fEAngleY=fEAmp=fEPrim=fTrackID=0;}
+  AliTPCExactPoint():TObject(),
+    fEZ(0.),
+    fEY(0.),
+    fEX(0.),
+    fEAngleZ(0.),
+    fEAngleY(0.),
+    fEAmp(0.),
+    fEPrim(0.),
+    fTrackID(0),
+    fRow(0),
+    fSec(0){}
  private:
   Float_t fEZ;       // current "exact" position according simulation
   Float_t fEY;       // current "exact" position according simulation
@@ -127,15 +170,16 @@ class AliTPCExactPoint : public TObject{
   Int_t   fTrackID;  // id of the track
   Int_t   fRow;      // row
   Int_t   fSec;      //sector
-  friend class AliTPCtrackerMI;
   ClassDef(AliTPCExactPoint,1)  
 };
 
 
 class AliTPCTrackPoint: public TObject{
  public:
-  friend class AliTPCtrackerMI;
-  AliTPCTrackPoint(){}
+  AliTPCTrackPoint():TObject(),
+    fTPoint(),
+    fCPoint(){}
+
   // AliTPCClusterPoint & GetCPoint(){return fCPoint;}
   AliTPCTrackerPoint & GetTPoint(){return fTPoint;}
   AliTPCclusterMI & GetCPoint(){return fCPoint;}  
@@ -149,8 +193,20 @@ class AliTPCTrackPoint: public TObject{
 
 class AliTPCTrackPoint2: public AliTPCTrackPoint{
  public:
-  friend class AliTPCtrackerMI;
-  AliTPCTrackPoint2(){}
+  AliTPCTrackPoint2():AliTPCTrackPoint(),
+    fGX(0.),
+    fGY(0.),
+    fGZ(0.),
+    fDY(0.),
+    fDZ(0.),
+    fDYU(0.),
+    fDYD(0),
+    fDZU(0.),
+    fDZD(0.),
+    fDDY(0),
+    fDDZ(0.),
+    fID(0),
+    fLab(0){}
  private: 
   Float_t fGX;    //global poition of the point
   Float_t fGY;    //global poition of the point
@@ -178,7 +234,6 @@ class AliTPCTrackPoint2: public AliTPCTrackPoint{
 
 class AliTPCTrackPointRef: public AliTPCTrackPoint{
  public:
-  friend class AliTPCtrackerMI;
   AliTPCExactPoint & GetExactPoint(){return fEPoint;}
   AliTPCExactPoint & GetNearestPoint(){return fNPoint;}  
  private: