]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TPC/AliTPCTransform.h
adapted macro to QAManager
[u/mrichter/AliRoot.git] / TPC / AliTPCTransform.h
1 #ifndef ALITPCTRANSFORM_H
2 #define ALITPCTRANSFORM_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 //    Class for tranformation of the coordinate frame
11 //    Transformation  
12 //      local coordinate frame (sector, padrow, pad, timebine) ==>
13 //      rotated global (tracking) cooridnate frame (sector, lx,ly,lz)
14 //
15
16 class AliTPCRecoParam;
17 #include "AliTransform.h"
18
19 class AliTPCTransform:public AliTransform {
20 public:
21   AliTPCTransform();
22   AliTPCTransform(const AliTPCTransform& transform);
23   
24   virtual ~AliTPCTransform();
25   virtual void Transform(Double_t *x,Int_t *i,UInt_t time,
26                          Int_t coordinateType);
27   void SetPrimVertex(Double_t *vtx);
28   void Local2RotatedGlobal(Int_t sec,  Double_t *x) const;
29   void RotatedGlobal2Global(Int_t sector,Double_t *x) const;
30   void Global2RotatedGlobal(Int_t sector,Double_t *x) const;
31   void GetCosAndSin(Int_t sector,Double_t &cos,Double_t &sin) const;
32   UInt_t GetCurrentTimeStamp() const { return fCurrentTimeStamp;}
33   const AliTPCRecoParam * GetCurrentRecoParam() const {return fCurrentRecoParam;}
34   UInt_t GetCurrentRunNumber() const { return fCurrentRun;}
35   //
36   // set current values
37   //
38   void SetCurrentRecoParam(AliTPCRecoParam* param){fCurrentRecoParam=param;}
39   void SetCurrentRun(Int_t run){fCurrentRun=run;}
40   void SetCurrentTimeStamp(Int_t timeStamp){fCurrentTimeStamp=timeStamp;}
41 private:
42   AliTPCTransform& operator=(const AliTPCTransform&); // not implemented
43   Double_t fCoss[18];  // cache the transformation
44   Double_t fSins[18];  // cache the transformation
45   Double_t fPrimVtx[3];// position of the primary vertex - needed for TOF correction
46   AliTPCRecoParam * fCurrentRecoParam; //! current reconstruction parameters
47   Int_t    fCurrentRun;                //! current run
48   UInt_t   fCurrentTimeStamp;          //! current time stamp
49   ClassDef(AliTPCTransform,1)
50 };
51
52 #endif