]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSRecPoint.h
New split libs
[u/mrichter/AliRoot.git] / ITS / AliITSRecPoint.h
index 0cccf1b6bd1f1031c83e1e8ea374493619296f20..578449974921e796560b802852b26cd1778d8e32 100644 (file)
@@ -1,53 +1,49 @@
 #ifndef ALIITSRECPOINT_H
 #define ALIITSRECPOINT_H 
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+/*
+  $Id$
+*/
 
 ////////////////////////////////////////////////////
 //  Reconstructed space point class for set:ITS   //
 ////////////////////////////////////////////////////
 
 #include <TObject.h>
+#include <Riostream.h>
 
 
 class AliITSRecPoint : public TObject {
-
-
  public:
-
-  AliITSRecPoint() {
-    // default creator
-    fTracks[0]=fTracks[1]=fTracks[2]=-3; 
-    fX=fZ=fQ=fdEdX=0.;
-    fSigmaX2=fSigmaZ2=0.;
-    fProbability=0;
-   }
-
-  virtual ~AliITSRecPoint() {}; // distructor
-  Bool_t IsSortable() const {return kTRUE;} // allows for sorting
-  Int_t * GetTracks() {return fTracks;} // returns pointer to tracks
-  Float_t GetX(){return fX;} // gets fX
-  Float_t GetZ(){return fZ;} // gets fZ
-  Float_t GetQ(){return fQ;} // gets fQ
-  Float_t GetdEdX(){return fdEdX;} // gets fdEdX
-  Float_t GetSigmaX2(){return fSigmaX2;} // gets fSigmaX2
-  Float_t GetSigmaZ2(){return fSigmaZ2;} // gets fSigmaZ2
-  Float_t GetProbability(){return fProbability;} // gets fProbability
-  void SetX(Float_t x){fX=x;} // sets fX
-  void SetZ(Float_t z){fZ=z;} // sets fZ
-  void SetQ(Float_t q){fQ=q;} // sets fQ
-  void SetdEdX(Float_t dedx){fdEdX=dedx;} // sets fdEdX
-  void SetSigmaX2(Float_t sx2){fSigmaX2=sx2;} // sets fSigmaX2
-  void SetSigmaZ2(Float_t sz2){fSigmaZ2=sz2;} // sets fSigmaZ2
-  void SetProbability(Float_t p){fProbability = p;} // sets fProbability
-  void  Use() {
-    //if fQ<0 cluster is already associated with a track
-    fQ=-fQ;
-  }
-  Int_t IsUsed() const {return (fQ<0) ? 1 : 0;} // checks Use condision
-  Int_t Compare(TObject *o) {
-    //to be defined
-    return 0;
-  } 
-
+    AliITSRecPoint();
+    virtual ~AliITSRecPoint() {}; // distructor
+    Bool_t IsSortable() const {return kTRUE;} // allows for sorting
+    Int_t   GetLabel(Int_t i) const {return fTracks[i];} // get track label
+    Int_t  *GetTracks(){return fTracks;}// Returns pointer to track array
+    Int_t   GetNTracks(){return 3;} // returns track array size
+    Float_t GetX() const {return fX;} // gets fX
+    Float_t GetZ() const {return fZ;} // gets fZ
+    Float_t GetQ() const {return fQ;} // gets fQ
+    Float_t GetdEdX() const {return fdEdX;} // gets fdEdX
+    Float_t GetSigmaX2() const {return fSigmaX2;} // gets fSigmaX2
+    Float_t GetSigmaZ2() const {return fSigmaZ2;} // gets fSigmaZ2
+    void SetLabel(Int_t i, Int_t lab){fTracks[i]=lab;} // sets track label
+    void SetX(Float_t x){fX=x;} // sets fX
+    void SetZ(Float_t z){fZ=z;} // sets fZ
+    void SetQ(Float_t q){fQ=q;} // sets fQ
+    void SetdEdX(Float_t dedx){fdEdX=dedx;} // sets fdEdX
+    void SetSigmaX2(Float_t sx2){fSigmaX2=sx2;} // sets fSigmaX2
+    void SetSigmaZ2(Float_t sz2){fSigmaZ2=sz2;} // sets fSigmaZ2
+    void  Use() { //if fQ<0 cluster is already associated with a track
+       fQ=-fQ;}
+    Int_t IsUsed() const {return (fQ<0) ? 1 : 0;} // checks Use condision
+    Int_t Compare(const TObject *) const {return 0;} //to be defined
+    // Prints out the content of this class in ASCII format.
+    void Print(ostream *os); 
+    // Reads in the content of this class in the format of Print
+    void Read(istream *is);
  public:
     Int_t     fTracks[3]; //labels of overlapped tracks
     Float_t   fX ;        //X of cluster
@@ -57,13 +53,9 @@ class AliITSRecPoint : public TObject {
     Float_t   fSigmaX2;   //Sigma X square of cluster
     Float_t   fSigmaZ2;   //Sigma Z square of cluster
 
-    Float_t   fProbability; // only temporary solution! - The probability 
-                            // that this is a "real" point in SSD 
-
-  ClassDef(AliITSRecPoint,1)  // AliITSRecPoint class
+    ClassDef(AliITSRecPoint,1)  // AliITSRecPoint class
 };
-
+// Input and output function for standard C++ input/output.
+ostream& operator<<(ostream &os,AliITSRecPoint &source);
+istream& operator>>(istream &is,AliITSRecPoint &source);
 #endif
-
-
-