AliRoot Core  edcc906 (edcc906)
AliMpPadRowRSegment.cxx
Go to the documentation of this file.
1 /**************************************************************************
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3  * *
4  * Author: The ALICE Off-line Project. *
5  * Contributors are mentioned in the code where appropriate. *
6  * *
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  **************************************************************************/
15 
16 // $Id$
17 // $MpId: AliMpPadRowRSegment.cxx,v 1.6 2006/05/24 13:58:46 ivana Exp $
18 // Category: sector
19 
20 //-----------------------------------------------------------------------------
21 // Class AliMpPadRowRSegment
22 // -------------------------
23 // Class describing a pad row segment composed of the
24 // the identic pads;
25 // the pads are placed from the offset (defined in the base class)
26 // to the right.
27 //
28 // Included in AliRoot: 2003/05/02
29 // Authors: David Guez, Ivana Hrivnacova; IPN Orsay
30 //-----------------------------------------------------------------------------
31 
32 #include "AliMpPadRowRSegment.h"
33 #include "AliMpPadRow.h"
34 #include "AliMpMotif.h"
35 #include "AliMpMotifType.h"
36 
38 ClassImp(AliMpPadRowRSegment)
40 
41 //______________________________________________________________________________
43  Int_t motifPositionId, Int_t nofPads)
44  : AliMpVPadRowSegment(padRow, motif, motifPositionId, nofPads)
45 {
47 }
48 
49 //______________________________________________________________________________
52 {
54 }
55 
56 //______________________________________________________________________________
58 {
60 }
61 
62 //
63 // private methods
64 //
65 
66 //______________________________________________________________________________
68 {
71 
72  return GetOffsetX() + GetMotif()->GetPadDimensionX();
73 }
74 
75 //______________________________________________________________________________
77 {
81 
82  return GetOffsetX() + (2.*GetNofPads() - 1)*GetMotif()->GetPadDimensionX();
83 }
84 
85 //______________________________________________________________________________
87 {
90 
91  return GetOffsetX();
92  // Also could be
93  // return FirstPadCenterX() + GetMotif()->GetPadDimensionX();
94 }
95 
96 //______________________________________________________________________________
98 {
101 
102  return LastPadCenterX() + GetMotif()->GetPadDimensionX();
103 }
104 
105 //
106 // public methods
107 //
108 
109 //______________________________________________________________________________
111 {
114 
115  return FirstPadBorderX();
116 }
117 
118 //______________________________________________________________________________
120 {
123 
124  return LastPadBorderX();
125 }
126 
A pad row composed of the pad row segments.
Definition: AliMpPadRow.h:25
virtual Double_t LeftBorderX() const
virtual Double_t RightBorderX() const
Double_t FirstPadBorderX() const
virtual Double_t GetPadDimensionX(Int_t=0) const
Return the pad x dimension.
Definition: AliMpMotif.h:74
Double_t LastPadCenterX() const
Double_t GetOffsetX() const
Return the x position of the right/left border.
A right pad row segment composed of the identic pads.
virtual AliMpMotif * GetMotif() const
Int_t GetNofPads() const
Return number of pads.
Double_t LastPadBorderX() const
Double_t FirstPadCenterX() const
A motif with its unique ID and the motif type.
Definition: AliMpMotif.h:23
The abstract base class for a pad row segment composed of the the identic pads.