]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliTracker.h
Avoid filenames which differs only by case
[u/mrichter/AliRoot.git] / STEER / AliTracker.h
index 2ed13b04f1ed816f9069bb509fc721ce3dbe9d70..1e68c05f7ffdd2031e0fa1e9c77fe79b21c01725 100644 (file)
@@ -7,40 +7,71 @@
 
 //-------------------------------------------------------------------------
 //                          class AliTracker
-//
+//   that is the base for AliTPCtracker, AliITStrackerV2 and AliTRDtracker
 //       Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch 
 //-------------------------------------------------------------------------
-#include <Rtypes.h>
+#include <TObject.h>
 
 class AliKalmanTrack;
 class AliCluster;
 class TFile;
+class TTree;
+class AliESD;
+
+class AliTracker : public TObject {
+
 
-class AliTracker {
 public:
-  AliTracker() { fX=fY=fZ=0.; fEventN=0; }
+
+  enum {kTrackInward, kTrackBack, kTrackRefit} Propagation_t;
+  
+  AliTracker() { fX=fY=fZ=0.; fSigmaX=fSigmaY=fSigmaZ=0.; fEventN=0; fStoreBarrel = 1;}
   virtual ~AliTracker(){}
-  virtual Int_t Clusters2Tracks(const TFile *in, TFile *out)=0;
-  virtual Int_t PropagateBack(const TFile *in, TFile *out)=0;
-  void SetVertex(Double_t *xyz) { fX=xyz[0]; fY=xyz[1]; fZ=xyz[2]; }
+  virtual Int_t Clusters2Tracks(AliESD *event)=0;
+  virtual Int_t PropagateBack(AliESD *event)=0;
+  virtual Int_t RefitInward(AliESD *event)=0;
+  void SetVertex(const Double_t *xyz, const Double_t *ers=0) { 
+     fX=xyz[0]; fY=xyz[1]; fZ=xyz[2];
+     if (ers) { fSigmaX=ers[0]; fSigmaY=ers[1]; fSigmaZ=ers[2]; } 
+  }
   void SetEventNumber(Int_t ev) { fEventN=ev; }
 
+  
+
 //protected:
+  virtual Int_t LoadClusters(TTree *)=0;
+  virtual void UnloadClusters()=0;
   virtual AliCluster *GetCluster(Int_t index) const=0;
   virtual void  UseClusters(const AliKalmanTrack *t, Int_t from=0) const;
   virtual void  CookLabel(AliKalmanTrack *t,Float_t wrong) const; 
   Double_t GetX() const {return fX;}
   Double_t GetY() const {return fY;}
   Double_t GetZ() const {return fZ;}
+  Double_t GetSigmaX() const {return fSigmaX;}
+  Double_t GetSigmaY() const {return fSigmaY;}
+  Double_t GetSigmaZ() const {return fSigmaZ;}
   Int_t GetEventNumber() const {return fEventN;}
 
+  static Int_t SetFieldFactor(const char* fileName, Bool_t closeFile = kTRUE);
+  static Int_t SetFieldFactor(TFile* file, Bool_t deletegAlice = kTRUE);
+  static Int_t SetFieldFactor();
+  
+  Int_t IsStoringBarrel() const {return fStoreBarrel;}
+  void  SetStoreBarrel(Int_t s) {fStoreBarrel = s;}
+
 private:
   Int_t fEventN;//event number
 
+  Int_t fStoreBarrel;
+
   Double_t fX;  //X-coordinate of the primary vertex
   Double_t fY;  //Y-coordinate of the primary vertex
   Double_t fZ;  //Z-coordinate of the primary vertex
 
+  Double_t fSigmaX; // error of the primary vertex position in X
+  Double_t fSigmaY; // error of the primary vertex position in Y
+  Double_t fSigmaZ; // error of the primary vertex position in Z
+
   ClassDef(AliTracker,1) //abstract tracker
 };