]>
Commit | Line | Data |
---|---|---|
ea4cae7a | 1 | // $Id$ |
2 | // Category: sector | |
3 | // | |
4 | // Class AliMpVPadRowSegment | |
5 | // -------------------- | |
6 | // The abstract base class for a pad row segment composed of the | |
7 | // the identic pads. | |
8 | // | |
9 | // Authors: David Guez, Ivana Hrivnacova; IPN Orsay | |
10 | ||
11 | #include <TError.h> | |
12 | ||
13 | #include "AliMpVPadRowSegment.h" | |
14 | #include "AliMpPadRow.h" | |
15 | #include "AliMpMotif.h" | |
16 | #include "AliMpMotifType.h" | |
17 | ||
18 | ClassImp(AliMpVPadRowSegment) | |
19 | ||
20 | //_____________________________________________________________________________ | |
21 | AliMpVPadRowSegment::AliMpVPadRowSegment(AliMpPadRow* padRow, AliMpMotif* motif, | |
22 | Int_t motifPositionId, Int_t nofPads) | |
23 | : TObject(), | |
24 | fNofPads(nofPads), | |
25 | fOffsetX(0.), | |
26 | fPadRow(padRow), | |
27 | fMotif(motif), | |
28 | fMotifPositionId(motifPositionId) | |
29 | { | |
30 | // | |
31 | } | |
32 | ||
33 | //_____________________________________________________________________________ | |
34 | AliMpVPadRowSegment::AliMpVPadRowSegment() | |
35 | : TObject(), | |
36 | fNofPads(0), | |
37 | fOffsetX(0.), | |
38 | fPadRow(0), | |
39 | fMotif(0), | |
40 | fMotifPositionId(0) | |
41 | { | |
42 | // | |
43 | } | |
44 | ||
45 | //_____________________________________________________________________________ | |
46 | AliMpVPadRowSegment::~AliMpVPadRowSegment() { | |
47 | // | |
48 | } | |
49 | ||
50 | // | |
51 | // public methods | |
52 | // | |
53 | ||
54 | //_____________________________________________________________________________ | |
55 | Double_t AliMpVPadRowSegment::HalfSizeY() const | |
56 | { | |
57 | // Returns the size in y of this row segment. | |
58 | // --- | |
59 | ||
60 | return fMotif->GetPadDimensions().Y(); | |
61 | } | |
62 | ||
63 | //_____________________________________________________________________________ | |
64 | AliMpPadRow* AliMpVPadRowSegment::GetPadRow() const | |
65 | { | |
66 | // Returns the pad row.which this pad row segment belongs to. | |
67 | // --- | |
68 | ||
69 | return fPadRow; | |
70 | } | |
71 | ||
72 | //_____________________________________________________________________________ | |
73 | AliMpMotif* AliMpVPadRowSegment::GetMotif() const | |
74 | { | |
75 | // Returns the motif of this pad row segment. | |
76 | // --- | |
77 | ||
78 | return fMotif; | |
79 | } | |
80 | ||
81 | //_____________________________________________________________________________ | |
82 | Int_t AliMpVPadRowSegment::GetMotifPositionId() const | |
83 | { | |
84 | // Returns the motif of this pad row segment. | |
85 | // --- | |
86 | ||
87 | return fMotifPositionId; | |
88 | } | |
89 | ||
90 | //_____________________________________________________________________________ | |
91 | void AliMpVPadRowSegment::SetOffsetX(Double_t offsetX) | |
92 | { | |
93 | // Sets the x offset. | |
94 | // --- | |
95 | ||
96 | fOffsetX = offsetX; | |
97 | } | |
98 |