AliRoot Core  da88d91 (da88d91)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMFTVSegmentation.h
Go to the documentation of this file.
1 #ifndef AliMFTVSegmentation_H
2 #define AliMFTVSegmentation_H
3 
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice */
6 
7 // $Id$
8 
17 
18 #include "TNamed.h"
19 #include "TVector3.h"
20 #include "TGeoMatrix.h"
21 
22 
23 class AliMFTVSegmentation : public TNamed {
24 
25 public:
26 
29 
30  virtual ~AliMFTVSegmentation(){};
31 
33  void SetPosition(const Double_t *pos){
34  fTransformation->SetTranslation(pos[0],pos[1],pos[2]);
35  };
36 
38  void SetRotationAngles(const Double_t *ang);
39 
41  void RotateX(const Double_t ang) {fTransformation->RotateX(ang);};
43  void RotateY(const Double_t ang) {fTransformation->RotateY(ang);};
45  void RotateZ(const Double_t ang) {fTransformation->RotateZ(ang);};
46 
53  TGeoCombiTrans * GetTransformation() const {return fTransformation;};
54 
55 private:
56 
57  TGeoCombiTrans * fTransformation;
58 
63  ClassDef(AliMFTVSegmentation, 1);
65 
66 
67 };
68 
69 
70 #endif
71 
TGeoCombiTrans * GetTransformation() const
Returns the Transformation Combining a Rotation followed by a Translation.
Abstract base class for MFT Segmentation description.
void RotateZ(const Double_t ang)
Rotate around Z axis, ang in deg.
void RotateX(const Double_t ang)
Rotate around X axis, ang in deg.
void RotateY(const Double_t ang)
Rotate around Y axis, ang in deg.
TGeoCombiTrans * fTransformation
Represent a rotation folowed by a translation. The rotation is a composition of : first a rotation ab...
void SetRotationAngles(const Double_t *ang)
Set The rotation angles. Unit is [deg].
void SetPosition(const Double_t *pos)
Set Position of the Element. Unit is [cm].