]>
Commit | Line | Data |
---|---|---|
cc7cef99 | 1 | #ifndef AliTRDCALCHAMBERPOS_H |
2 | #define AliTRDCALCHAMBERPOS_H | |
3551db50 | 3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
8 | /////////////////////////////////////////////////////////////////////////////// | |
9 | // // | |
10 | // TRD calibration class for position parameters chambers // | |
11 | // // | |
12 | /////////////////////////////////////////////////////////////////////////////// | |
13 | ||
14 | #include "TNamed.h" | |
15 | ||
cc7cef99 | 16 | class AliTRDCalChamberPos : public TNamed { |
3551db50 | 17 | public: |
18 | enum { kNdet = 540 }; | |
19 | ||
cc7cef99 | 20 | AliTRDCalChamberPos(); |
21 | AliTRDCalChamberPos(const Text_t* name, const Text_t* title); | |
3551db50 | 22 | |
23 | const Float_t* GetChamberPos(Int_t det) const { return fChamberPos[det]; }; | |
24 | const Float_t* GetChamberRot(Int_t det) const { return fChamberRot[det]; }; | |
25 | ||
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]); }; | |
28 | ||
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]); }; | |
31 | ||
32 | protected: | |
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 | |
35 | ||
cc7cef99 | 36 | ClassDef(AliTRDCalChamberPos,1) |
3551db50 | 37 | }; |
38 | ||
39 | #endif |