4 // Class AliMpVPadRowSegment
5 // --------------------
6 // The abstract base class for a pad row segment composed of the
9 // Authors: David Guez, Ivana Hrivnacova; IPN Orsay
13 #include "AliMpVPadRowSegment.h"
14 #include "AliMpPadRow.h"
15 #include "AliMpMotif.h"
16 #include "AliMpMotifType.h"
18 ClassImp(AliMpVPadRowSegment)
20 //_____________________________________________________________________________
21 AliMpVPadRowSegment::AliMpVPadRowSegment(AliMpPadRow* padRow, AliMpMotif* motif,
22 Int_t motifPositionId, Int_t nofPads)
28 fMotifPositionId(motifPositionId)
33 //_____________________________________________________________________________
34 AliMpVPadRowSegment::AliMpVPadRowSegment()
45 //_____________________________________________________________________________
46 AliMpVPadRowSegment::AliMpVPadRowSegment(const AliMpVPadRowSegment& right)
49 Fatal("AliMpVPadRowSegment", "Copy constructor not provided.");
52 //_____________________________________________________________________________
53 AliMpVPadRowSegment::~AliMpVPadRowSegment() {
61 //_____________________________________________________________________________
63 AliMpVPadRowSegment::operator=(const AliMpVPadRowSegment& right)
65 // check assignement to self
66 if (this == &right) return *this;
68 Fatal("operator =", "Assignement operator not provided.");
77 //_____________________________________________________________________________
78 Double_t AliMpVPadRowSegment::HalfSizeY() const
80 // Returns the size in y of this row segment.
83 return fMotif->GetPadDimensions().Y();
86 //_____________________________________________________________________________
87 AliMpPadRow* AliMpVPadRowSegment::GetPadRow() const
89 // Returns the pad row.which this pad row segment belongs to.
95 //_____________________________________________________________________________
96 AliMpMotif* AliMpVPadRowSegment::GetMotif() const
98 // Returns the motif of this pad row segment.
104 //_____________________________________________________________________________
105 Int_t AliMpVPadRowSegment::GetMotifPositionId() const
107 // Returns the motif of this pad row segment.
110 return fMotifPositionId;
113 //_____________________________________________________________________________
114 void AliMpVPadRowSegment::SetOffsetX(Double_t offsetX)
116 // Sets the x offset.