AliRoot Core  a565103 (a565103)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMpPadRowLSegment.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: AliMpPadRowLSegment.cxx,v 1.6 2006/05/24 13:58:46 ivana Exp $
18 // Category: sector
19 
20 //-----------------------------------------------------------------------------
21 // Class AliMpPadRowLSegment
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 left.
27 //
28 // Included in AliRoot: 2003/05/02
29 // Authors: David Guez, Ivana Hrivnacova; IPN Orsay
30 //-----------------------------------------------------------------------------
31 
32 #include "AliMpPadRowLSegment.h"
33 #include "AliMpPadRow.h"
34 #include "AliMpMotif.h"
35 #include "AliMpMotifType.h"
36 
40 
41 //_____________________________________________________________________________
43  AliMpPadRow* padRow, AliMpMotif* motif,
44  Int_t motifPositionId, Int_t nofPads)
45  : AliMpVPadRowSegment(padRow, motif, motifPositionId, nofPads)
46 {
48 }
49 
50 //_____________________________________________________________________________
53 {
55 }
56 
57 //_____________________________________________________________________________
59 {
61 }
62 
63 //
64 // private methods
65 //
66 
67 //_____________________________________________________________________________
69 {
72 
73  return GetOffsetX() - GetMotif()->GetPadDimensionX();
74 }
75 
76 //_____________________________________________________________________________
78 {
82 
83  return GetOffsetX() - (2.*GetNofPads() - 1)*GetMotif()->GetPadDimensionX();
84 }
85 
86 //_____________________________________________________________________________
88 {
91 
92  return GetOffsetX();
93  // Also could be
94  // return FirstPadCenterX() + GetMotif()->GetPadDimensionX();
95 }
96 
97 //_____________________________________________________________________________
99 {
102 
103  return LastPadCenterX() - GetMotif()->GetPadDimensionX();
104 }
105 
106 //
107 // public methods
108 //
109 
110 //_____________________________________________________________________________
112 {
115 
116  return LastPadBorderX();
117 }
118 
119 //_____________________________________________________________________________
121 {
124 
125  return FirstPadBorderX();
126 }
A pad row composed of the pad row segments.
Definition: AliMpPadRow.h:25
virtual Double_t GetPadDimensionX(Int_t=0) const
Return the pad x dimension.
Definition: AliMpMotif.h:72
Double_t FirstPadCenterX() const
Double_t LastPadBorderX() const
Double_t GetOffsetX() const
Return the x position of the right/left border.
A left pad row segment composed of the identic pads.
ClassImp(TPCGenInfo)
Definition: AliTPCCmpNG.C:254
virtual Double_t LeftBorderX() const
virtual AliMpMotif * GetMotif() const
virtual Double_t RightBorderX() const
Double_t LastPadCenterX() const
Int_t GetNofPads() const
Return number of pads.
Double_t FirstPadBorderX() 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.