Fixing coding violation
[u/mrichter/AliRoot.git] / TPC / AliTPCCalibGlobalMisalignment.h
CommitLineData
b1f0a2a5 1#ifndef ALI_TPC_CALIB_GLOBAL_MISALIGNMENT_H
2#define ALI_TPC_CALIB_GLOBAL_MISALIGNMENT_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7////////////////////////////////////////////////////////////////////////////
8// //
9// AliTPCCalibGlobalMisalignment class //
10// The class calculates the space point distortions due to simple //
11// misalignments like shifts in caresian coordinates or a rotation //
12// of the TPC read out planes (A and C side) //
13// //
14// date: 06/05/2010 //
15// Authors: Stefan Rossegger, Jim Thomas, Magnus Mager //
16////////////////////////////////////////////////////////////////////////////
17
18#include "AliTPCCorrection.h"
19
20class AliTPCCalibGlobalMisalignment : public AliTPCCorrection {
21public:
22 AliTPCCalibGlobalMisalignment();
23 virtual ~AliTPCCalibGlobalMisalignment();
24
25 // initialization and update functions
26 // virtual void Init();
27 // virtual void Update(const TTimeStamp &timeStamp);
28
29 // setters and getters for misalignments
30 void SetXShift(Float_t xShift) {fXShift=xShift;}
31 void SetYShift(Float_t yShift) {fYShift=yShift;}
32 void SetZShift(Float_t zShift) {fZShift=zShift;}
33 void SetRotPhiA(Float_t rotPhiA) {fRotPhiA=rotPhiA;}
34 void SetRotPhiC(Float_t rotPhiC) {fRotPhiC=rotPhiC;}
35 void SetdRPhiOffsetA(Float_t dRPhiOffsetA) {fdRPhiOffsetA=dRPhiOffsetA;}
36 void SetdRPhiOffsetC(Float_t dRPhiOffsetC) {fdRPhiOffsetC=dRPhiOffsetC;}
37
38 Float_t GetXShift() const {return fXShift;}
39 Float_t GetYShift() const {return fYShift;}
40 Float_t GetZShift() const {return fZShift;}
41 Float_t GetRotPhiA() const {return fRotPhiA;}
42 Float_t GetRotPhiC() const {return fRotPhiC;}
43 Float_t GetdRPhiOffsetA() const {return fdRPhiOffsetA;}
44 Float_t GetdRPhiOffsetC() const {return fdRPhiOffsetC;}
45
46 virtual void Print(Option_t* option="") const;
47
48protected:
49 virtual void GetCorrection(const Float_t x[],const Short_t roc,Float_t dx[]);
50
51private:
52 Float_t fXShift; // Shift in global X [cm]
53 Float_t fYShift; // Shift in global Y [cm]
54 Float_t fZShift; // Shift in global Z [cm]
55
56 Float_t fRotPhiA; // simple rotation of A side read-out plane around the Z axis [rad]
57 Float_t fRotPhiC; // simple rotation of C side read-out plane around the Z axis [rad]
58 Float_t fdRPhiOffsetA; // add a constant offset of dRPhi (or local Y) in [cm]: purely for calibration purposes!
59 Float_t fdRPhiOffsetC; // add a constant offset of dRPhi (or local Y) in [cm]: purely for calibration purposes!
60
61 ClassDef(AliTPCCalibGlobalMisalignment,1);
62};
63
64#endif