#ifndef AliTRDCALCHAMBERPOS_H #define AliTRDCALCHAMBERPOS_H /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ /* $Id$ */ /////////////////////////////////////////////////////////////////////////////// // // // TRD calibration class for position parameters chambers // // // /////////////////////////////////////////////////////////////////////////////// #include "TNamed.h" class AliTRDCalChamberPos : public TNamed { public: enum { kNdet = 540 }; AliTRDCalChamberPos(); AliTRDCalChamberPos(const Text_t* name, const Text_t* title); const Float_t* GetChamberPos(Int_t det) const { return fChamberPos[det]; }; const Float_t* GetChamberRot(Int_t det) const { return fChamberRot[det]; }; void SetPos(Int_t det, Float_t x, Float_t y, Float_t z) { fChamberPos[det][0] = x; fChamberPos[det][1] = y; fChamberPos[det][2] = z; }; void SetPos(Int_t det, Float_t* xyz) { SetPos(det, xyz[0], xyz[1], xyz[2]); }; void SetRot(Int_t det, Float_t x, Float_t y, Float_t z) { fChamberRot[det][0] = x; fChamberRot[det][1] = y; fChamberRot[det][2] = z; }; void SetRot(Int_t det, Float_t* xyz) { SetRot(det, xyz[0], xyz[1], xyz[2]); }; protected: Float_t fChamberPos[kNdet][3]; // Deviations of the positions of the chambers from the ideal position Float_t fChamberRot[kNdet][3]; // Rotation of the chambers in respect to the ideal position ClassDef(AliTRDCalChamberPos,1) }; #endif