const TString AliMUONGeometryDetElement::fgkDENamePrefix = "DE";
+//______________________________________________________________________________
+TString AliMUONGeometryDetElement::GetDEName(Int_t detElemId)
+{
+/// Return the module name for given moduleId
+
+ TString deName(fgkDENamePrefix);
+ deName += detElemId;
+ return deName;
+}
+
+//______________________________________________________________________________
+AliMUONGeometryDetElement::AliMUONGeometryDetElement(Int_t detElemId)
+ : TObject(),
+ fDEName(GetDEName(detElemId)),
+ fVolumePath(),
+ fLocalTransformation(0),
+ fGlobalTransformation(0)
+{
+/// Standard constructor
+
+ SetUniqueID(detElemId);
+}
+
//______________________________________________________________________________
AliMUONGeometryDetElement::AliMUONGeometryDetElement(
Int_t detElemId,
const TString& volumePath)
: TObject(),
- fDEName(),
+ fDEName(GetDEName(detElemId)),
fVolumePath(volumePath),
fLocalTransformation(0),
fGlobalTransformation(0)
/// Standard constructor
SetUniqueID(detElemId);
-
- fDEName = fgkDENamePrefix;
- fDEName += detElemId;
}
//______________________________________________________________________________
-AliMUONGeometryDetElement::AliMUONGeometryDetElement()
+AliMUONGeometryDetElement::AliMUONGeometryDetElement(TRootIOCtor* /*ioCtor*/)
: TObject(),
fDEName(),
fVolumePath(),
fLocalTransformation(0),
fGlobalTransformation(0)
{
-/// Default constructor
+/// Root IO constructor
}
//______________________________________________________________________________
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(
const TGeoHMatrix* GetGlobalTransformation() const;
protected:
+ /// Not implemented
+ AliMUONGeometryDetElement();
/// Not implemented
AliMUONGeometryDetElement(const AliMUONGeometryDetElement& rhs);
/// Not implemented
void PrintTransform(const TGeoHMatrix* transform) const;
// static data members
- static const TString fgkDENamePrefix; ///< Geometry module name prefix
+ static const TString fgkDENamePrefix;///< Geometry module name prefix
// data members
TString fDEName; ///< detection element name