1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
17 // $MpId: AliMpVPadRowSegment.cxx,v 1.5 2005/08/26 15:43:36 ivana Exp $
20 // Class AliMpVPadRowSegment
21 // --------------------
22 // The abstract base class for a pad row segment composed of the
24 // Included in AliRoot: 2003/05/02
25 // Authors: David Guez, Ivana Hrivnacova; IPN Orsay
29 #include "AliMpVPadRowSegment.h"
30 #include "AliMpPadRow.h"
31 #include "AliMpMotif.h"
32 #include "AliMpMotifType.h"
34 ClassImp(AliMpVPadRowSegment)
36 //_____________________________________________________________________________
37 AliMpVPadRowSegment::AliMpVPadRowSegment(AliMpPadRow* padRow, AliMpMotif* motif,
38 Int_t motifPositionId, Int_t nofPads)
44 fMotifPositionId(motifPositionId)
46 /// Standard contructor
49 //_____________________________________________________________________________
50 AliMpVPadRowSegment::AliMpVPadRowSegment()
58 /// Default contructor
61 //_____________________________________________________________________________
62 AliMpVPadRowSegment::AliMpVPadRowSegment(const AliMpVPadRowSegment& right)
65 /// Protected copy constructor (not provided)
67 Fatal("AliMpVPadRowSegment", "Copy constructor not provided.");
70 //_____________________________________________________________________________
71 AliMpVPadRowSegment::~AliMpVPadRowSegment()
80 //_____________________________________________________________________________
82 AliMpVPadRowSegment::operator=(const AliMpVPadRowSegment& right)
84 /// Protected assignment operator (not provided)
86 // check assignment to self
87 if (this == &right) return *this;
89 Fatal("operator =", "Assignment operator not provided.");
98 //_____________________________________________________________________________
99 Double_t AliMpVPadRowSegment::HalfSizeY() const
101 /// Return the size in y of this row segment.
103 return fMotif->GetPadDimensions().Y();
106 //_____________________________________________________________________________
107 AliMpPadRow* AliMpVPadRowSegment::GetPadRow() const
109 /// Return the pad row.which this pad row segment belongs to.
114 //_____________________________________________________________________________
115 AliMpMotif* AliMpVPadRowSegment::GetMotif() const
117 /// Return the motif of this pad row segment.
122 //_____________________________________________________________________________
123 Int_t AliMpVPadRowSegment::GetMotifPositionId() const
125 /// Return the motif of this pad row segment.
127 return fMotifPositionId;
130 //_____________________________________________________________________________
131 void AliMpVPadRowSegment::SetOffsetX(Double_t offsetX)
133 /// Set the x offset.