- Volume name attribute replaced with volume path
[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
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
23class TGeoTranslation;
24class TGeoRotation;
25class TGeoCombiTrans;
26class TObjArray;
27class TArrayI;
28
29class AliMUONGeometryDetElement;
30class AliMUONGeometryStore;
31
32class 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;
b75f649b 62 AliMUONGeometryDetElement* GetDetElement(
63 Int_t detElemId, Bool_t warn = true) const;
4f8b0abb 64
65 protected:
66 AliMUONGeometryModuleTransformer(const AliMUONGeometryModuleTransformer& rhs);
67 // operators
68 AliMUONGeometryModuleTransformer& operator = (const AliMUONGeometryModuleTransformer& rhs);
69
70 private:
71 // data members
72 Int_t fModuleId; // the module Id
73 TGeoCombiTrans* fTransformation;// the module transformation wrt to top
74 // volume
75 AliMUONGeometryStore* fDetElements; // detection elements
76
77 ClassDef(AliMUONGeometryModuleTransformer,2) // MUON geometry module class
78};
79
80// inline functions
81
82inline Int_t AliMUONGeometryModuleTransformer::GetModuleId() const
83{ return fModuleId; }
84
85inline const TGeoCombiTrans* AliMUONGeometryModuleTransformer::GetTransformation() const
86{ return fTransformation; }
87
88inline AliMUONGeometryStore* AliMUONGeometryModuleTransformer::GetDetElementStore() const
89{ return fDetElements; }
90
91#endif //ALI_MUON_GEOMETRY_MODULE_PARAM_H