1 #ifndef AliTRDCALCHAMBERPOS_H
2 #define AliTRDCALCHAMBERPOS_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 ///////////////////////////////////////////////////////////////////////////////
10 // TRD calibration class for position parameters chambers //
12 ///////////////////////////////////////////////////////////////////////////////
16 class AliTRDCalChamberPos : public TNamed {
20 AliTRDCalChamberPos();
21 AliTRDCalChamberPos(const Text_t* name, const Text_t* title);
23 const Float_t* GetPos(Int_t det) const { return fChamberPos[det]; };
24 const Float_t* GetRot(Int_t det) const { return fChamberRot[det]; };
26 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; };
27 void SetPos(Int_t det, Float_t* xyz) { SetPos(det, xyz[0], xyz[1], xyz[2]); };
29 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; };
30 void SetRot(Int_t det, Float_t* xyz) { SetRot(det, xyz[0], xyz[1], xyz[2]); };
33 Float_t fChamberPos[kNdet][3]; // Deviations of the positions of the chambers from the ideal position
34 Float_t fChamberRot[kNdet][3]; // Rotation of the chambers in respect to the ideal position
36 ClassDef(AliTRDCalChamberPos,1)