]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/AliTRDCalChamber.h
New offline PID code by Prashant
[u/mrichter/AliRoot.git] / TRD / AliTRDCalChamber.h
1 #ifndef AliTRDCALCHAMBER_H
2 #define AliTRDCALCHAMBER_H
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
16 class AliTRDCalChamber : public TNamed {
17   public:
18     enum { kNdet = 540 };
19   
20     AliTRDCalChamber();
21     AliTRDCalChamber(const Text_t* name, const Text_t* title);
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     
36     ClassDef(AliTRDCalChamber,1)                      
37 };
38
39 #endif