1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
5 // Revision of includes 07/05/2004
8 /// \class AliMUONGeometryModule
9 /// \brief Geometry parameters for detector module
11 /// Class for definition of the detector module parameters
12 /// (the transformations of detection elements, mapping between
13 /// sensitive volumes and detection elements).
15 /// Author: Ivana Hrivnacova, IPN Orsay
17 #ifndef ALI_MUON_GEOMETRY_MODULE_H
18 #define ALI_MUON_GEOMETRY_MODULE_H
23 class TGeoTranslation;
29 class AliMUONGeometryEnvelope;
30 class AliMUONGeometryEnvelopeStore;
31 class AliMUONGeometryDetElement;
32 class AliMUONGeometryStore;
33 class AliMUONGeometrySVMap;
34 class AliMUONVGeometryDEIndexing;
36 class AliMUONGeometryModule : public TObject
39 AliMUONGeometryModule(Int_t moduleId);
40 AliMUONGeometryModule();
41 virtual ~AliMUONGeometryModule();
44 void Global2Local(Int_t detElemId,
45 Float_t xg, Float_t yg, Float_t zg,
46 Float_t& xl, Float_t& yl, Float_t& zl) const;
47 void Global2Local(Int_t detElemId,
48 Double_t xg, Double_t yg, Double_t zg,
49 Double_t& xl, Double_t& yl, Double_t& zl) const;
51 void Local2Global(Int_t detElemId,
52 Float_t xl, Float_t yl, Float_t zl,
53 Float_t& xg, Float_t& yg, Float_t& zg) const;
54 void Local2Global(Int_t detElemId,
55 Double_t xl, Double_t yl, Double_t zl,
56 Double_t& xg, Double_t& yg, Double_t& zg) const;
59 void SetMotherVolume(const TString& motherVolumeName);
60 void SetVolume(const TString& volumeName);
61 void SetTranslation(const TGeoTranslation& translation);
62 void SetRotation(const TGeoRotation& rotation);
64 void SetSensitiveVolume(Int_t volId);
65 void SetSensitiveVolume(const TString& name);
66 void SetAlign(Bool_t align);
69 Bool_t IsVirtual() const;
70 Int_t GetModuleId() const;
71 TString GetMotherVolume() const;
72 TString GetVolume() const;
73 const TGeoCombiTrans* GetTransformation() const;
74 AliMUONGeometryDetElement* FindBySensitiveVolume(
75 const TString& volumePath) const;
76 AliMUONVGeometryDEIndexing* GetDEIndexing() const;
77 AliMUONGeometryEnvelopeStore* GetEnvelopeStore() const;
78 AliMUONGeometryStore* GetDetElementStore() const;
79 AliMUONGeometryDetElement* GetDetElement(Int_t detElemId) const;
80 AliMUONGeometrySVMap* GetSVMap() const;
81 Bool_t IsSensitiveVolume(Int_t volId) const;
82 Bool_t IsSensitiveVolume(const TString& volName) const;
85 AliMUONGeometryModule(const AliMUONGeometryModule& rhs);
87 AliMUONGeometryModule& operator = (const AliMUONGeometryModule& rhs);
91 Int_t GetSVIndex(Int_t svVolId) const;
94 Bool_t fIsVirtual; // true if module is not represented
96 Int_t fModuleId; // the module Id
97 TString fMotherVolume; // mother volume name
98 TString fVolume; // the volume name if not virtual
99 Int_t fNofSVs; // number of sensitive volumes
100 TArrayI* fSVVolumeIds; // densitive volumes IDs
101 TGeoCombiTrans* fTransformation;// the module transformation wrt to mother
103 AliMUONGeometryEnvelopeStore* fEnvelopes; // envelopes
104 AliMUONVGeometryDEIndexing* fDEIndexing; // DE indexing
105 AliMUONGeometryStore* fDetElements;// detection elements
106 AliMUONGeometrySVMap* fSVMap; // sensitive volumes map
108 ClassDef(AliMUONGeometryModule,2) // MUON geometry module class
114 AliMUONGeometryModule::SetMotherVolume(const TString& motherVolumeName)
115 { fMotherVolume = motherVolumeName; }
117 inline Bool_t AliMUONGeometryModule::IsVirtual() const
118 { return fIsVirtual; }
120 inline Int_t AliMUONGeometryModule::GetModuleId() const
121 { return fModuleId; }
123 inline TString AliMUONGeometryModule::GetMotherVolume() const
124 { return fMotherVolume; }
126 inline TString AliMUONGeometryModule::GetVolume() const
129 inline const TGeoCombiTrans* AliMUONGeometryModule::GetTransformation() const
130 { return fTransformation; }
132 inline AliMUONGeometryEnvelopeStore*
133 AliMUONGeometryModule::GetEnvelopeStore() const
134 { return fEnvelopes; }
136 inline AliMUONVGeometryDEIndexing*
137 AliMUONGeometryModule::GetDEIndexing() const
138 { return fDEIndexing; }
140 inline AliMUONGeometryStore* AliMUONGeometryModule::GetDetElementStore() const
141 { return fDetElements; }
143 inline AliMUONGeometrySVMap* AliMUONGeometryModule::GetSVMap() const
146 #endif //ALI_MUON_GEOMETRY_MODULE_H