////////////////////////////////////////////////////////////////////////////
#include "AliTPCCorrection.h"
+#include "TVectorD.h"
+class TGeoMatrix;
+
class AliTPCCalibGlobalMisalignment : public AliTPCCorrection {
public:
void SetRotPhiC(Float_t rotPhiC) {fRotPhiC=rotPhiC;}
void SetdRPhiOffsetA(Float_t dRPhiOffsetA) {fdRPhiOffsetA=dRPhiOffsetA;}
void SetdRPhiOffsetC(Float_t dRPhiOffsetC) {fdRPhiOffsetC=dRPhiOffsetC;}
-
+ void SetUseGeoManager(Bool_t useGeomanager) {fUseGeomanager = useGeomanager;}
+
Float_t GetXShift() const {return fXShift;}
Float_t GetYShift() const {return fYShift;}
Float_t GetZShift() const {return fZShift;}
Float_t GetRotPhiC() const {return fRotPhiC;}
Float_t GetdRPhiOffsetA() const {return fdRPhiOffsetA;}
Float_t GetdRPhiOffsetC() const {return fdRPhiOffsetC;}
-
+ Bool_t GetUseGeoManager() const { return fUseGeomanager;}
virtual void Print(Option_t* option="") const;
-
+ void SetQuadranAlign(const TVectorD *dq1, const TVectorD *dq2, const TVectorD *q2);
+ void SetGlobalAlign(const TGeoMatrix * matrixGlobal, const TGeoMatrix *matrixA, const TGeoMatrix *matrixC );
protected:
virtual void GetCorrection(const Float_t x[],const Short_t roc,Float_t dx[]);
Float_t fRotPhiC; // simple rotation of C side read-out plane around the Z axis [rad]
Float_t fdRPhiOffsetA; // add a constant offset of dRPhi (or local Y) in [cm]: purely for calibration purposes!
Float_t fdRPhiOffsetC; // add a constant offset of dRPhi (or local Y) in [cm]: purely for calibration purposes!
-
- ClassDef(AliTPCCalibGlobalMisalignment,1);
+ //
+ // Quadrant alignment
+ //
+ TVectorD *fQuadrantDQ1; //OROC medium pads delta ly+ - ly-
+ TVectorD *fQuadrantDQ2; //OROC long pads delta ly+ - ly-
+ TVectorD *fQuadrantQ2; //OROC long pads - OROC medium pads
+ //
+ // Global alignment - use native ROOT representation
+ //
+ TGeoMatrix * fMatrixGlobal; // global Alignment common
+ TGeoMatrix * fMatrixASide; // global Alignment A side
+ TGeoMatrix * fMatrixCSide; // global Alignment C side
+ //
+ Bool_t fUseGeomanager; // switch to use GeoManager - for visualization purposes
+ AliTPCCalibGlobalMisalignment& operator=(const AliTPCCalibGlobalMisalignment&);
+ AliTPCCalibGlobalMisalignment(const AliTPCCalibGlobalMisalignment&);
+ ClassDef(AliTPCCalibGlobalMisalignment,2);
};
#endif