]>
Commit | Line | Data |
---|---|---|
4f8b0abb | 1 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
2 | * See cxx source for full Copyright notice */ | |
3 | ||
4 | /* $Id$ */ | |
5 | // Revision of includes 07/05/2004 | |
6 | ||
7 | /// \ingroup geometry | |
8 | /// \class AliMUONGeometryModuleTransformer | |
9 | /// \brief Geometry transformationer for detector module | |
10 | /// | |
11 | /// Class for definition of the detector module parameters | |
12 | /// (the transformations of detection elements, mapping between | |
13 | /// sensitive volumes and detection elements). | |
14 | /// | |
15 | /// Author: Ivana Hrivnacova, IPN Orsay | |
16 | ||
17 | #ifndef ALI_MUON_GEOMETRY_MODULE_TRANSFORMS_H | |
18 | #define ALI_MUON_GEOMETRY_MODULE_TRANSFORMS_H | |
19 | ||
20 | #include <TObject.h> | |
21 | #include <TString.h> | |
22 | ||
23 | class TGeoTranslation; | |
24 | class TGeoRotation; | |
25 | class TGeoCombiTrans; | |
26 | class TObjArray; | |
27 | class TArrayI; | |
28 | ||
29 | class AliMUONGeometryDetElement; | |
30 | class AliMUONGeometryStore; | |
31 | ||
32 | class AliMUONGeometryModuleTransformer : public TObject | |
33 | { | |
34 | public: | |
35 | AliMUONGeometryModuleTransformer(Int_t moduleId); | |
36 | AliMUONGeometryModuleTransformer(); | |
37 | virtual ~AliMUONGeometryModuleTransformer(); | |
38 | ||
39 | // methods | |
40 | void Global2Local(Int_t detElemId, | |
41 | Float_t xg, Float_t yg, Float_t zg, | |
42 | Float_t& xl, Float_t& yl, Float_t& zl) const; | |
43 | void Global2Local(Int_t detElemId, | |
44 | Double_t xg, Double_t yg, Double_t zg, | |
45 | Double_t& xl, Double_t& yl, Double_t& zl) const; | |
46 | ||
47 | void Local2Global(Int_t detElemId, | |
48 | Float_t xl, Float_t yl, Float_t zl, | |
49 | Float_t& xg, Float_t& yg, Float_t& zg) const; | |
50 | void Local2Global(Int_t detElemId, | |
51 | Double_t xl, Double_t yl, Double_t zl, | |
52 | Double_t& xg, Double_t& yg, Double_t& zg) const; | |
53 | ||
54 | // set methods | |
55 | void SetTransformation(const TGeoCombiTrans& transform); | |
56 | ||
57 | // get methods | |
58 | Int_t GetModuleId() const; | |
59 | const TGeoCombiTrans* GetTransformation() const; | |
60 | ||
61 | AliMUONGeometryStore* GetDetElementStore() const; | |
62 | AliMUONGeometryDetElement* GetDetElement(Int_t detElemId) const; | |
63 | ||
64 | protected: | |
65 | AliMUONGeometryModuleTransformer(const AliMUONGeometryModuleTransformer& rhs); | |
66 | // operators | |
67 | AliMUONGeometryModuleTransformer& operator = (const AliMUONGeometryModuleTransformer& rhs); | |
68 | ||
69 | private: | |
70 | // data members | |
71 | Int_t fModuleId; // the module Id | |
72 | TGeoCombiTrans* fTransformation;// the module transformation wrt to top | |
73 | // volume | |
74 | AliMUONGeometryStore* fDetElements; // detection elements | |
75 | ||
76 | ClassDef(AliMUONGeometryModuleTransformer,2) // MUON geometry module class | |
77 | }; | |
78 | ||
79 | // inline functions | |
80 | ||
81 | inline Int_t AliMUONGeometryModuleTransformer::GetModuleId() const | |
82 | { return fModuleId; } | |
83 | ||
84 | inline const TGeoCombiTrans* AliMUONGeometryModuleTransformer::GetTransformation() const | |
85 | { return fTransformation; } | |
86 | ||
87 | inline AliMUONGeometryStore* AliMUONGeometryModuleTransformer::GetDetElementStore() const | |
88 | { return fDetElements; } | |
89 | ||
90 | #endif //ALI_MUON_GEOMETRY_MODULE_PARAM_H |