--- /dev/null
+/**************************************************************************
+ * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * *
+ * Author: The ALICE Off-line Project. *
+ * Contributors are mentioned in the code where appropriate. *
+ * *
+ * Permission to use, copy, modify and distribute this software and its *
+ * documentation strictly for non-commercial purposes is hereby granted *
+ * without fee, provided that the above copyright notice appears in all *
+ * copies and that both the copyright notice and this permission notice *
+ * appear in the supporting documentation. The authors make no claims *
+ * about the suitability of this software for any purpose. It is *
+ * provided "as is" without express or implied warranty. *
+ **************************************************************************/
+
+// $Id$
+// $MpId: AliMpVPadRowSegment.cxx,v 1.7 2006/05/24 13:58:46 ivana Exp $
+// Category: sector
+
+//-----------------------------------------------------------------------------
+// Class AliMpVPadRowSegment
+// --------------------
+// The abstract base class for a pad row segment composed of the
+// the identic pads.
+// Included in AliRoot: 2003/05/02
+// Authors: David Guez, Ivana Hrivnacova; IPN Orsay
+//-----------------------------------------------------------------------------
+
+#include "AliMpVPadRowSegment.h"
+#include "AliMpPadRow.h"
+#include "AliMpMotif.h"
+#include "AliMpMotifType.h"
+
+/// \cond CLASSIMP
+ClassImp(AliMpVPadRowSegment)
+/// \endcond
+
+//_____________________________________________________________________________
+AliMpVPadRowSegment::AliMpVPadRowSegment(AliMpPadRow* padRow, AliMpMotif* motif,
+ Int_t motifPositionId, Int_t nofPads)
+ : TObject(),
+ fNofPads(nofPads),
+ fOffsetX(0.),
+ fPadRow(padRow),
+ fMotif(motif),
+ fMotifPositionId(motifPositionId)
+{
+/// Standard contructor
+}
+
+//_____________________________________________________________________________
+AliMpVPadRowSegment::AliMpVPadRowSegment()
+ : TObject(),
+ fNofPads(0),
+ fOffsetX(0.),
+ fPadRow(0),
+ fMotif(0),
+ fMotifPositionId(0)
+{
+/// Default contructor
+}
+
+//_____________________________________________________________________________
+AliMpVPadRowSegment::~AliMpVPadRowSegment()
+{
+/// Destructor
+}
+
+//
+// public methods
+//
+
+//_____________________________________________________________________________
+Double_t AliMpVPadRowSegment::HalfSizeY() const
+{
+/// Return the size in y of this row segment.
+
+ return fMotif->GetPadDimensionY();
+}
+
+//_____________________________________________________________________________
+AliMpPadRow* AliMpVPadRowSegment::GetPadRow() const
+{
+/// Return the pad row.which this pad row segment belongs to.
+
+ return fPadRow;
+}
+
+//_____________________________________________________________________________
+AliMpMotif* AliMpVPadRowSegment::GetMotif() const
+{
+/// Return the motif of this pad row segment.
+
+ return fMotif;
+}
+
+//_____________________________________________________________________________
+Int_t AliMpVPadRowSegment::GetMotifPositionId() const
+{
+/// Return the motif of this pad row segment.
+
+ return fMotifPositionId;
+}
+
+//_____________________________________________________________________________
+void AliMpVPadRowSegment::SetOffsetX(Double_t offsetX)
+{
+/// Set the x offset.
+
+ fOffsetX = offsetX;
+}
+