]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCTransform.h
added correction for 0 multiplicity bin
[u/mrichter/AliRoot.git] / TPC / AliTPCTransform.h
index eed9ee00ab6a6b356085f3d8885952c4e8043fd9..3258ee78044d64dd22cf4561b481bb7da049dad1 100755 (executable)
@@ -1,7 +1,18 @@
-#ifndef ALI_TPC_TRANSFORM_H
-#define ALI_TPC_TRANSFORM_H
+#ifndef ALITPCTRANSFORM_H
+#define ALITPCTRANSFORM_H
+
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+/* $Id$ */
+
+//
+//    Class for tranformation of the coordinate frame
+//    Transformation  
+//      local coordinate frame (sector, padrow, pad, timebine) ==>
+//      rotated global (tracking) cooridnate frame (sector, lx,ly,lz)
+//
 
-#include "TGeoMatrix.h"
 #include "AliTransform.h"
 
 class AliTPCTransform:public AliTransform {
@@ -10,15 +21,16 @@ public:
   virtual ~AliTPCTransform();
   virtual void Transform(Double_t *x,Int_t *i,UInt_t time,
                         Int_t coordinateType);
+  void SetPrimVertex(Double_t *vtx);
 protected:
-  void Pad2RotatedGlobal(Int_t pad,Int_t row,Double_t *x) const;
+  void Local2RotatedGlobal(Int_t sec,  Double_t *x) const;
   void RotatedGlobal2Global(Int_t sector,Double_t *x) const;
   void Global2RotatedGlobal(Int_t sector,Double_t *x) const;
   void GetCosAndSin(Int_t sector,Double_t &cos,Double_t &sin) const;
 private:
-  Double_t fCoss[18];
-  Double_t fSins[18];
-
+  Double_t fCoss[18];  // cache the transformation
+  Double_t fSins[18];  // cache the transformation
+  Double_t fPrimVtx[3];// position of the primary vertex - needed for TOF correction
   ClassDef(AliTPCTransform,1)
 };