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
20 #include "AliMUONGeometryModuleTransformer.h"
25 class AliMUONGeometryEnvelope;
26 class AliMUONGeometryEnvelopeStore;
27 class AliMUONGeometryDetElement;
28 class AliMUONStringIntMap;
30 class TGeoTranslation;
36 class AliMUONGeometryModule : public TObject
39 AliMUONGeometryModule(Int_t moduleId);
40 AliMUONGeometryModule();
41 virtual ~AliMUONGeometryModule();
45 void SetTransformation(const TGeoCombiTrans& transform);
46 void SetVolumePath(const TString& volumePath);
47 void SetIsVirtual(Bool_t isVirtual);
49 void SetSensitiveVolume(Int_t volId);
50 void SetSensitiveVolume(const TString& name);
51 void SetAlign(Bool_t align);
55 Bool_t IsVirtual() const;
56 Int_t GetModuleId() const;
57 TString GetVolumePath() const;
59 AliMUONGeometryDetElement* FindBySensitiveVolume(
60 const TString& volumePath) const;
61 Bool_t IsSensitiveVolume(Int_t volId) const;
62 Bool_t IsSensitiveVolume(const TString& volName) const;
64 AliMUONGeometryEnvelopeStore* GetEnvelopeStore() const;
65 AliMUONStringIntMap* GetSVMap() const;
66 AliMUONGeometryModuleTransformer* GetTransformer() const;
70 AliMUONGeometryModule(const AliMUONGeometryModule& rhs);
72 AliMUONGeometryModule& operator = (const AliMUONGeometryModule& rhs);
76 Int_t GetSVIndex(Int_t svVolId) const;
79 Bool_t fIsVirtual; ///< \brief true if module is not represented
81 Int_t fNofSVs; ///< number of sensitive volumes
82 TArrayI* fSVVolumeIds; ///< sensitive volumes IDs
84 AliMUONGeometryEnvelopeStore* fEnvelopes; ///< envelopes
85 AliMUONStringIntMap* fSVMap; ///< sensitive volumes map
86 AliMUONGeometryModuleTransformer* fTransformer;///< geometry transformations
88 ClassDef(AliMUONGeometryModule,4) // MUON geometry module class
93 /// Set virtuality (true if module is not represented by a real volume)
94 inline void AliMUONGeometryModule::SetIsVirtual(Bool_t isVirtual)
95 { fIsVirtual = isVirtual; }
97 /// Return true if module is not represented by a real volume
98 inline Bool_t AliMUONGeometryModule::IsVirtual() const
99 { return fIsVirtual; }
102 inline Int_t AliMUONGeometryModule::GetModuleId() const
103 { return fTransformer->GetModuleId(); }
105 /// Return the full path of aligned module volume or envelope in geometry
106 inline TString AliMUONGeometryModule::GetVolumePath() const
107 { return fTransformer->GetVolumePath(); }
109 /// Return envelopes associated with this module
111 AliMUONGeometryEnvelopeStore* AliMUONGeometryModule::GetEnvelopeStore() const
112 { return fEnvelopes; }
114 /// Return sensitive volume map
116 AliMUONStringIntMap* AliMUONGeometryModule::GetSVMap() const
119 /// Return transformer
121 AliMUONGeometryModuleTransformer* AliMUONGeometryModule::GetTransformer() const
122 { return fTransformer; }
124 #endif //ALI_MUON_GEOMETRY_MODULE_H