]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONGeometryModuleTransformer.h
Fix in HasDE()
[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;
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
81inline Int_t AliMUONGeometryModuleTransformer::GetModuleId() const
82{ return fModuleId; }
83
84inline const TGeoCombiTrans* AliMUONGeometryModuleTransformer::GetTransformation() const
85{ return fTransformation; }
86
87inline AliMUONGeometryStore* AliMUONGeometryModuleTransformer::GetDetElementStore() const
88{ return fDetElements; }
89
90#endif //ALI_MUON_GEOMETRY_MODULE_PARAM_H