]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/mapping/AliMpVPadRowSegment.cxx
Updated for modifs in AliMpFiles
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpVPadRowSegment.cxx
CommitLineData
dee1d5f1 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
ea4cae7a 16// $Id$
dee1d5f1 17// $MpId: AliMpVPadRowSegment.cxx,v 1.5 2005/08/26 15:43:36 ivana Exp $
ea4cae7a 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.
dbe945cc 24// Included in AliRoot: 2003/05/02
ea4cae7a 25// Authors: David Guez, Ivana Hrivnacova; IPN Orsay
26
27#include <TError.h>
28
29#include "AliMpVPadRowSegment.h"
30#include "AliMpPadRow.h"
31#include "AliMpMotif.h"
32#include "AliMpMotifType.h"
33
34ClassImp(AliMpVPadRowSegment)
35
36//_____________________________________________________________________________
37AliMpVPadRowSegment::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{
dee1d5f1 46/// Standard contructor
ea4cae7a 47}
48
49//_____________________________________________________________________________
50AliMpVPadRowSegment::AliMpVPadRowSegment()
51 : TObject(),
52 fNofPads(0),
53 fOffsetX(0.),
54 fPadRow(0),
55 fMotif(0),
56 fMotifPositionId(0)
57{
dee1d5f1 58/// Default contructor
ea4cae7a 59}
60
fb1bf5c0 61//_____________________________________________________________________________
62AliMpVPadRowSegment::AliMpVPadRowSegment(const AliMpVPadRowSegment& right)
dee1d5f1 63 : TObject(right)
64{
65/// Protected copy constructor (not provided)
66
fb1bf5c0 67 Fatal("AliMpVPadRowSegment", "Copy constructor not provided.");
68}
69
ea4cae7a 70//_____________________________________________________________________________
dee1d5f1 71AliMpVPadRowSegment::~AliMpVPadRowSegment()
72{
73/// Destructor
ea4cae7a 74}
75
fb1bf5c0 76//
77// operators
78//
79
80//_____________________________________________________________________________
81AliMpVPadRowSegment&
82AliMpVPadRowSegment::operator=(const AliMpVPadRowSegment& right)
83{
dee1d5f1 84/// Protected assignment operator (not provided)
85
86 // check assignment to self
fb1bf5c0 87 if (this == &right) return *this;
88
dee1d5f1 89 Fatal("operator =", "Assignment operator not provided.");
fb1bf5c0 90
91 return *this;
92}
93
ea4cae7a 94//
95// public methods
96//
97
98//_____________________________________________________________________________
99Double_t AliMpVPadRowSegment::HalfSizeY() const
100{
dee1d5f1 101/// Return the size in y of this row segment.
ea4cae7a 102
103 return fMotif->GetPadDimensions().Y();
104}
105
106//_____________________________________________________________________________
107AliMpPadRow* AliMpVPadRowSegment::GetPadRow() const
108{
dee1d5f1 109/// Return the pad row.which this pad row segment belongs to.
ea4cae7a 110
111 return fPadRow;
112}
113
114//_____________________________________________________________________________
115AliMpMotif* AliMpVPadRowSegment::GetMotif() const
116{
dee1d5f1 117/// Return the motif of this pad row segment.
ea4cae7a 118
119 return fMotif;
120}
121
122//_____________________________________________________________________________
123Int_t AliMpVPadRowSegment::GetMotifPositionId() const
124{
dee1d5f1 125/// Return the motif of this pad row segment.
ea4cae7a 126
127 return fMotifPositionId;
128}
129
130//_____________________________________________________________________________
131void AliMpVPadRowSegment::SetOffsetX(Double_t offsetX)
132{
dee1d5f1 133/// Set the x offset.
ea4cae7a 134
135 fOffsetX = offsetX;
136}
137