AliRoot Core  3dc7879 (3dc7879)
AliMpVPadRowSegment.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: AliMpVPadRowSegment.cxx,v 1.7 2006/05/24 13:58:46 ivana Exp $
18 // Category: sector
19 
20 //-----------------------------------------------------------------------------
21 // Class AliMpVPadRowSegment
22 // --------------------
23 // The abstract base class for a pad row segment composed of the
24 // the identic pads.
25 // Included in AliRoot: 2003/05/02
26 // Authors: David Guez, Ivana Hrivnacova; IPN Orsay
27 //-----------------------------------------------------------------------------
28 
29 #include "AliMpVPadRowSegment.h"
30 #include "AliMpPadRow.h"
31 #include "AliMpMotif.h"
32 #include "AliMpMotifType.h"
33 
35 ClassImp(AliMpVPadRowSegment)
37 
38 //_____________________________________________________________________________
40  Int_t motifPositionId, Int_t nofPads)
41  : TObject(),
42  fNofPads(nofPads),
43  fOffsetX(0.),
44  fPadRow(padRow),
45  fMotif(motif),
46  fMotifPositionId(motifPositionId)
47 {
49 }
50 
51 //_____________________________________________________________________________
53  : TObject(),
54  fNofPads(0),
55  fOffsetX(0.),
56  fPadRow(0),
57  fMotif(0),
58  fMotifPositionId(0)
59 {
61 }
62 
63 //_____________________________________________________________________________
65 {
67 }
68 
69 //
70 // public methods
71 //
72 
73 //_____________________________________________________________________________
75 {
77 
78  return fMotif->GetPadDimensionY();
79 }
80 
81 //_____________________________________________________________________________
83 {
85 
86  return fPadRow;
87 }
88 
89 //_____________________________________________________________________________
91 {
93 
94  return fMotif;
95 }
96 
97 //_____________________________________________________________________________
99 {
101 
102  return fMotifPositionId;
103 }
104 
105 //_____________________________________________________________________________
106 void AliMpVPadRowSegment::SetOffsetX(Double_t offsetX)
107 {
109 
110  fOffsetX = offsetX;
111 }
112 
A pad row composed of the pad row segments.
Definition: AliMpPadRow.h:25
Int_t fMotifPositionId
the motif position id
Double_t fOffsetX
the x position of the right/left border
virtual Double_t GetPadDimensionY(Int_t=0) const
Return the pad y dimension.
Definition: AliMpMotif.h:78
void SetOffsetX(Double_t offsetX)
AliMpMotif * fMotif
the motif
virtual AliMpMotif * GetMotif() const
A motif with its unique ID and the motif type.
Definition: AliMpMotif.h:23
virtual AliMpPadRow * GetPadRow() const
virtual Int_t GetMotifPositionId() const
virtual Double_t HalfSizeY() const
AliMpPadRow * fPadRow
the pad row containing this segment
The abstract base class for a pad row segment composed of the the identic pads.