X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=MUON%2FAliMUONGeometryDetElement.h;h=22040cbcb9187ec394a1c594c1d93687868186d6;hb=a225d309417ec793c544a0b769e221b841b88238;hp=7f1e5da858013f5f8240c718631e95440148839a;hpb=a9aad96e253c5dad5b74464038546a9bf4234ecc;p=u%2Fmrichter%2FAliRoot.git diff --git a/MUON/AliMUONGeometryDetElement.h b/MUON/AliMUONGeometryDetElement.h index 7f1e5da8580..22040cbcb91 100644 --- a/MUON/AliMUONGeometryDetElement.h +++ b/MUON/AliMUONGeometryDetElement.h @@ -20,11 +20,15 @@ class TGeoHMatrix; class AliMUONGeometryDetElement : public TObject { public: - AliMUONGeometryDetElement(Int_t detElemId, - const TString& volumePath); - AliMUONGeometryDetElement(); + AliMUONGeometryDetElement(Int_t detElemId); + AliMUONGeometryDetElement(Int_t detElemId, const TString& volumePath); + AliMUONGeometryDetElement(TRootIOCtor* /*ioCtor*/); virtual ~AliMUONGeometryDetElement(); + // static methods + static TString GetDENamePrefix(); + static TString GetDEName(Int_t detElemId); + // methods void Global2Local( Float_t xg, Float_t yg, Float_t zg, @@ -49,6 +53,7 @@ class AliMUONGeometryDetElement : public TObject // get methods Int_t GetId() const; + TString GetDEName() const; TString GetVolumePath() const; TString GetVolumeName() const; Int_t GetVolumeCopyNo() const; @@ -56,14 +61,22 @@ class AliMUONGeometryDetElement : public TObject const TGeoHMatrix* GetGlobalTransformation() const; protected: + /// Not implemented + AliMUONGeometryDetElement(); + /// Not implemented AliMUONGeometryDetElement(const AliMUONGeometryDetElement& rhs); + /// Not implemented AliMUONGeometryDetElement& operator = (const AliMUONGeometryDetElement& rhs); private: // methods void PrintTransform(const TGeoHMatrix* transform) const; - + + // static data members + static const TString fgkDENamePrefix;///< Geometry module name prefix + // data members + TString fDEName; ///< detection element name TString fVolumePath; ///< \brief the full path of aligned volume /// or envelope in geometry TGeoHMatrix* fLocalTransformation; ///< the transformation wrt module @@ -74,6 +87,10 @@ class AliMUONGeometryDetElement : public TObject // inline functions +/// Return module name prefix +inline TString AliMUONGeometryDetElement::GetDENamePrefix() +{ return fgkDENamePrefix; } + /// Set the full path of the aligned volume or envelope in geometry inline void AliMUONGeometryDetElement::SetVolumePath(const TString& volumePath) { fVolumePath = volumePath; } @@ -82,6 +99,10 @@ inline void AliMUONGeometryDetElement::SetVolumePath(const TString& volumePath) inline Int_t AliMUONGeometryDetElement::GetId() const { return GetUniqueID(); } +/// Return detection element ID +inline TString AliMUONGeometryDetElement::GetDEName() const +{ return fDEName; } + /// Return the full path of the aligned volume or envelope in geometry inline TString AliMUONGeometryDetElement::GetVolumePath() const { return fVolumePath; }