1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
7 /// \class AliMUONGeometryDetElement
8 /// \brief Detection element
10 /// The class defines the detection element.
12 /// Author: Ivana Hrivnacova, IPN Orsay
14 #ifndef ALI_MUON_GEOMETRY_DET_ELEMENT_H
15 #define ALI_MUON_GEOMETRY_DET_ELEMENT_H
21 class AliMUONGeometryDetElement : public TObject
24 AliMUONGeometryDetElement(Int_t detElemId,
25 const TString& alignedVolume,
26 const TGeoCombiTrans& relTransform);
27 AliMUONGeometryDetElement();
28 virtual ~AliMUONGeometryDetElement();
32 Float_t xg, Float_t yg, Float_t zg,
33 Float_t& xl, Float_t& yl, Float_t& zl) const;
35 Double_t xg, Double_t yg, Double_t zg,
36 Double_t& xl, Double_t& yl, Double_t& zl) const;
39 Float_t xl, Float_t yl, Float_t zl,
40 Float_t& xg, Float_t& yg, Float_t& zg) const;
42 Double_t xl, Double_t yl, Double_t zl,
43 Double_t& xg, Double_t& yg, Double_t& zg) const;
44 void PrintLocalTransform() const;
45 void PrintGlobalTransform() const;
48 void SetGlobalTransformation(const TGeoCombiTrans& transform);
52 const TString& GetAlignedVolume() const;
53 const TGeoCombiTrans* GetLocalTransformation() const;
54 const TGeoCombiTrans* GetGlobalTransformation() const;
57 AliMUONGeometryDetElement(const AliMUONGeometryDetElement& rhs);
60 AliMUONGeometryDetElement& operator = (const AliMUONGeometryDetElement& rhs);
64 void PrintTransform(const TGeoCombiTrans* transform) const;
67 TString fAlignedVolume; // the name of aligned volume or envelope
68 // representing this detection element
69 TGeoCombiTrans* fLocalTransformation; // the transformation wrt module
70 TGeoCombiTrans* fGlobalTransformation; // the transformation wrt world
72 ClassDef(AliMUONGeometryDetElement,1) // MUON transformations store
77 inline Int_t AliMUONGeometryDetElement::GetId() const
78 { return GetUniqueID(); }
80 inline const TString& AliMUONGeometryDetElement::GetAlignedVolume() const
81 { return fAlignedVolume; }
83 inline const TGeoCombiTrans*
84 AliMUONGeometryDetElement::GetLocalTransformation() const
85 { return fLocalTransformation; }
87 inline const TGeoCombiTrans*
88 AliMUONGeometryDetElement::GetGlobalTransformation() const
89 { return fGlobalTransformation; }
91 #endif //ALI_MUON_GEOMETRY_DET_ELEMENT_H