]>
Commit | Line | Data |
---|---|---|
ab2f6604 | 1 | #ifndef ALIGTRANSFORM_H |
2 | #define ALIGTRANSFORM_H | |
3 | ||
4 | /* -*- C++ -*- */ | |
5 | /* */ | |
6 | /* 1999/01/13 */ | |
7 | /* --------------------------------------------------------------------------- */ | |
8 | /* */ | |
9 | /* AliGTransform Class */ | |
10 | /* */ | |
11 | /* This file is part of the ALICE Geometry Database . */ | |
12 | /* */ | |
13 | /* Author: Joana E. Santo */ | |
14 | /* */ | |
15 | /* --------------------------------------------------------------------------- */ | |
16 | /* This class represents the transformations applied to regions to position them*/ | |
17 | /* in the node structure. */ | |
18 | ||
19 | ||
20 | #include <TNamed.h> | |
21 | #include <TVector.h> | |
22 | #include <TSystem.h> | |
23 | #include <TString.h> | |
24 | ||
25 | class AliGTransform: public TNamed { | |
26 | ||
27 | private: | |
28 | TString fExpression; | |
29 | TVector* fMatrix; | |
30 | Float_t fX; | |
31 | Float_t fY; | |
32 | Float_t fZ; | |
33 | Float_t fTheta; | |
34 | Float_t fPsi; | |
35 | Float_t fPhi; | |
36 | ||
37 | public: | |
38 | AliGTransform(); /* Default Constructor */ | |
39 | AliGTransform(AliGTransform *tra); | |
40 | AliGTransform( Text_t* name, Text_t* title ); | |
41 | AliGTransform( Text_t* name, Text_t* title, Text_t *expression ); | |
42 | AliGTransform( Text_t* name, Text_t* title, Text_t *axis, Float_t angle); | |
43 | AliGTransform( Text_t* name, Text_t* title, Float_t theta1,Float_t phi1, | |
44 | Float_t theta2, | |
45 | Float_t phi2, | |
46 | Float_t theta3,Float_t | |
47 | phi3); | |
48 | ||
49 | AliGTransform( Text_t* name, Text_t* title, Float_t a1,Float_t a2,Float_t a3,Float_t b1,Float_t b2, | |
50 | Float_t b3,Float_t c1,Float_t c2,Float_t c3,Float_t Dx,Float_t Dy,Float_t Dz); | |
51 | virtual ~AliGTransform(); /* Destructor */ | |
52 | ||
53 | void BuildMatrix(Float_t Dx=0., Float_t Dy=0., Float_t Dz=0., Float_t | |
54 | theta=0., Float_t psi=0.,Float_t phi=0. ); | |
55 | void CheckExpression(); | |
56 | TVector* GetMatrix() {return fMatrix;} | |
57 | ||
58 | ClassDef(AliGTransform,1) //Transformation class (Rotation and Translation) | |
59 | }; | |
60 | #endif |