1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
6 // Class AliMUONGeometryDetElement
7 // --------------------------------
8 // The class defines the detection element.
10 // Author: Ivana Hrivnacova, IPN Orsay
12 #ifndef ALI_MUON_GEOMETRY_DET_ELEMENT_H
13 #define ALI_MUON_GEOMETRY_DET_ELEMENT_H
19 class AliMUONGeometryDetElement : public TObject
22 AliMUONGeometryDetElement(Int_t detElemId,
23 const TString& alignedVolume,
24 const TGeoCombiTrans& relTransform);
25 AliMUONGeometryDetElement();
26 virtual ~AliMUONGeometryDetElement();
30 Float_t xg, Float_t yg, Float_t zg,
31 Float_t& xl, Float_t& yl, Float_t& zl) const;
33 Double_t xg, Double_t yg, Double_t zg,
34 Double_t& xl, Double_t& yl, Double_t& zl) const;
37 Float_t xl, Float_t yl, Float_t zl,
38 Float_t& xg, Float_t& yg, Float_t& zg) const;
40 Double_t xl, Double_t yl, Double_t zl,
41 Double_t& xg, Double_t& yg, Double_t& zg) const;
42 void PrintLocalTransform() const;
43 void PrintGlobalTransform() const;
46 void SetGlobalTransformation(const TGeoCombiTrans& transform);
50 const TString& GetAlignedVolume() const;
51 const TGeoCombiTrans* GetLocalTransformation() const;
52 const TGeoCombiTrans* GetGlobalTransformation() const;
55 AliMUONGeometryDetElement(const AliMUONGeometryDetElement& rhs);
58 AliMUONGeometryDetElement& operator = (const AliMUONGeometryDetElement& rhs);
62 void PrintTransform(const TGeoCombiTrans* transform) const;
65 TString fAlignedVolume; // the name of aligned volume or envelope
66 // representing this detection element
67 TGeoCombiTrans* fLocalTransformation; // the transformation wrt module
68 TGeoCombiTrans* fGlobalTransformation; // the transformation wrt world
70 ClassDef(AliMUONGeometryDetElement,1) // MUON transformations store
75 inline Int_t AliMUONGeometryDetElement::GetId() const
76 { return GetUniqueID(); }
78 inline const TString& AliMUONGeometryDetElement::GetAlignedVolume() const
79 { return fAlignedVolume; }
81 inline const TGeoCombiTrans*
82 AliMUONGeometryDetElement::GetLocalTransformation() const
83 { return fLocalTransformation; }
85 inline const TGeoCombiTrans*
86 AliMUONGeometryDetElement::GetGlobalTransformation() const
87 { return fGlobalTransformation; }
89 #endif //ALI_MUON_GEOMETRY_DET_ELEMENT_H