]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/mapping/AliMpVPadRowSegment.cxx
Commenting out the infamous speed eater = StdoutToAliDebug until a better solution...
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpVPadRowSegment.cxx
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 // Class AliMpVPadRowSegment
21 // --------------------
22 // The abstract base class for a pad row segment composed of the 
23 // the identic pads.
24 // Included in AliRoot: 2003/05/02
25 // Authors: David Guez, Ivana Hrivnacova; IPN Orsay
26
27 #include "AliMpVPadRowSegment.h"
28 #include "AliMpPadRow.h"
29 #include "AliMpMotif.h"
30 #include "AliMpMotifType.h"
31
32 /// \cond CLASSIMP
33 ClassImp(AliMpVPadRowSegment)
34 /// \endcond
35
36 //_____________________________________________________________________________
37 AliMpVPadRowSegment::AliMpVPadRowSegment(AliMpPadRow* padRow, AliMpMotif* motif, 
38                                        Int_t motifPositionId, Int_t nofPads)
39   : TObject(),
40     fNofPads(nofPads),
41     fOffsetX(0.),
42     fPadRow(padRow),
43     fMotif(motif),
44     fMotifPositionId(motifPositionId)
45 {
46 /// Standard contructor 
47 }
48
49 //_____________________________________________________________________________
50 AliMpVPadRowSegment::AliMpVPadRowSegment() 
51   : TObject(),
52     fNofPads(0),
53     fOffsetX(0.),
54     fPadRow(0),
55     fMotif(0),
56     fMotifPositionId(0)
57 {
58 /// Default contructor 
59 }
60
61 //_____________________________________________________________________________
62 AliMpVPadRowSegment::~AliMpVPadRowSegment() 
63 {
64 /// Destructor   
65 }
66
67 //
68 // public methods  
69 //
70
71 //_____________________________________________________________________________
72 Double_t  AliMpVPadRowSegment::HalfSizeY() const
73 {
74 /// Return the size in y of this row segment.
75
76   return fMotif->GetPadDimensions().Y();
77 }
78
79 //_____________________________________________________________________________
80 AliMpPadRow*  AliMpVPadRowSegment::GetPadRow() const
81 {
82 /// Return the pad row.which this pad row segment belongs to.
83
84   return fPadRow;
85 }  
86
87 //_____________________________________________________________________________
88 AliMpMotif*  AliMpVPadRowSegment::GetMotif() const
89 {
90 /// Return the motif of this pad row segment. 
91
92   return fMotif;
93 }  
94
95 //_____________________________________________________________________________
96 Int_t  AliMpVPadRowSegment::GetMotifPositionId() const
97 {
98 /// Return the motif of this pad row segment. 
99
100   return fMotifPositionId;
101 }  
102
103 //_____________________________________________________________________________
104 void  AliMpVPadRowSegment::SetOffsetX(Double_t offsetX)
105 {
106 /// Set the x offset.
107
108   fOffsetX = offsetX;
109 }    
110