]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONGeometryModuleTransformer.h
Corrected Doxygen warnings:
[u/mrichter/AliRoot.git] / MUON / AliMUONGeometryModuleTransformer.h
CommitLineData
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
a9aad96e 9/// \brief Geometry transformer for a detector module
4f8b0abb 10///
a9aad96e 11/// Class for definition of the trasformation for adetector module
12/// and its detection elements
4f8b0abb 13///
a9aad96e 14/// \author Ivana Hrivnacova, IPN Orsay
4f8b0abb 15
f32e74e9 16#ifndef ALI_MUON_GEOMETRY_MODULE_TRANSFORMER_H
17#define ALI_MUON_GEOMETRY_MODULE_TRANSFORMER_H
4f8b0abb 18
19#include <TObject.h>
20#include <TString.h>
21
ab488200 22class AliMUONGeometryDetElement;
fa66b479 23
24class AliMpExMap;
ab488200 25
4f8b0abb 26class TGeoTranslation;
27class TGeoRotation;
ab488200 28class TGeoHMatrix;
4f8b0abb 29class TObjArray;
30class TArrayI;
31
4f8b0abb 32class AliMUONGeometryModuleTransformer : public TObject
33{
34 public:
35 AliMUONGeometryModuleTransformer(Int_t moduleId);
36 AliMUONGeometryModuleTransformer();
37 virtual ~AliMUONGeometryModuleTransformer();
38
fa66b479 39 // static methods
40 static TString GetModuleNamePrefix();
41
4f8b0abb 42 // methods
43 void Global2Local(Int_t detElemId,
44 Float_t xg, Float_t yg, Float_t zg,
45 Float_t& xl, Float_t& yl, Float_t& zl) const;
46 void Global2Local(Int_t detElemId,
47 Double_t xg, Double_t yg, Double_t zg,
48 Double_t& xl, Double_t& yl, Double_t& zl) const;
49
50 void Local2Global(Int_t detElemId,
51 Float_t xl, Float_t yl, Float_t zl,
52 Float_t& xg, Float_t& yg, Float_t& zg) const;
53 void Local2Global(Int_t detElemId,
54 Double_t xl, Double_t yl, Double_t zl,
55 Double_t& xg, Double_t& yg, Double_t& zg) const;
56
57 // set methods
ab488200 58 void SetTransformation(const TGeoHMatrix& transform);
59 void SetVolumePath(const TString& volumePath);
4f8b0abb 60
61 // get methods
ab488200 62 Int_t GetModuleId() const;
eb288296 63 TString GetModuleName() const;
ab488200 64 TString GetVolumePath() const;
65 TString GetVolumeName() const;
66 TString GetMotherVolumeName() const;
67
68 const TGeoHMatrix* GetTransformation() const;
fa66b479 69 AliMpExMap* GetDetElementStore() const;
70 AliMUONGeometryDetElement*
71 GetDetElement(Int_t detElemId, Bool_t warn = true) const;
4f8b0abb 72
73 protected:
74 AliMUONGeometryModuleTransformer(const AliMUONGeometryModuleTransformer& rhs);
ab488200 75 AliMUONGeometryModuleTransformer&
76 operator = (const AliMUONGeometryModuleTransformer& rhs);
4f8b0abb 77
78 private:
eb288296 79 // static data members
80 static const TString fgkModuleNamePrefix; /// < Geometry module name prefix
81
4f8b0abb 82 // data members
829425a5 83 Int_t fModuleId; ///< the module Id
eb288296 84 TString fModuleName; ///< the module name
829425a5 85 TString fVolumePath; ///< \brief the full path of aligned module volume
86 /// or envelope in geometry
87 TGeoHMatrix* fTransformation;///< \brief the module transformation wrt to top
a9aad96e 88 /// volume (world)
fa66b479 89 AliMpExMap* fDetElements; ///< detection elements
4f8b0abb 90
ab488200 91 ClassDef(AliMUONGeometryModuleTransformer,3) // MUON geometry module class
4f8b0abb 92};
93
94// inline functions
95
fa66b479 96/// Return module name prefix
97inline TString
98AliMUONGeometryModuleTransformer::GetModuleNamePrefix()
99{ return fgkModuleNamePrefix; }
100
a9aad96e 101/// Set the full path of aligned module volume or envelope in geometry
ab488200 102inline void
103AliMUONGeometryModuleTransformer::SetVolumePath(const TString& volumePath)
104{ fVolumePath = volumePath; }
105
a9aad96e 106/// Return module ID
ab488200 107inline Int_t
108AliMUONGeometryModuleTransformer::GetModuleId() const
4f8b0abb 109{ return fModuleId; }
110
eb288296 111/// Return module name
112inline TString
113AliMUONGeometryModuleTransformer::GetModuleName() const
114{ return fModuleName; }
115
a9aad96e 116/// Return the full path of aligned module volume or envelope in geometry
ab488200 117inline TString
118AliMUONGeometryModuleTransformer::GetVolumePath() const
119{ return fVolumePath; }
120
a9aad96e 121/// Return the module transformation wrt to the top volume (world)
ab488200 122inline const TGeoHMatrix*
123AliMUONGeometryModuleTransformer::GetTransformation() const
4f8b0abb 124{ return fTransformation; }
125
a9aad96e 126/// Return detection elements associated with this module
fa66b479 127inline AliMpExMap*
ab488200 128AliMUONGeometryModuleTransformer::GetDetElementStore() const
4f8b0abb 129{ return fDetElements; }
130
f32e74e9 131#endif //ALI_MUON_GEOMETRY_MODULE_TRANSFORMER_H