ROOT logo
/**************************************************************************
 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
 *                                                                        *
 * Author: The ALICE Off-line Project.                                    *
 * Contributors are mentioned in the code where appropriate.              *
 *                                                                        *
 * Permission to use, copy, modify and distribute this software and its   *
 * documentation strictly for non-commercial purposes is hereby granted   *
 * without fee, provided that the above copyright notice appears in all   *
 * copies and that both the copyright notice and this permission notice   *
 * appear in the supporting documentation. The authors make no claims     *
 * about the suitability of this software for any purpose. It is          *
 * provided "as is" without express or implied warranty.                  *
 **************************************************************************/

// $Id$
// $MpId: AliMpVPadRowSegment.cxx,v 1.7 2006/05/24 13:58:46 ivana Exp $
// Category: sector

//-----------------------------------------------------------------------------
// Class AliMpVPadRowSegment
// --------------------
// The abstract base class for a pad row segment composed of the 
// the identic pads.
// Included in AliRoot: 2003/05/02
// Authors: David Guez, Ivana Hrivnacova; IPN Orsay
//-----------------------------------------------------------------------------

#include "AliMpVPadRowSegment.h"
#include "AliMpPadRow.h"
#include "AliMpMotif.h"
#include "AliMpMotifType.h"

/// \cond CLASSIMP
ClassImp(AliMpVPadRowSegment)
/// \endcond

//_____________________________________________________________________________
AliMpVPadRowSegment::AliMpVPadRowSegment(AliMpPadRow* padRow, AliMpMotif* motif, 
                                       Int_t motifPositionId, Int_t nofPads)
  : TObject(),
    fNofPads(nofPads),
    fOffsetX(0.),
    fPadRow(padRow),
    fMotif(motif),
    fMotifPositionId(motifPositionId)
{
/// Standard contructor 
}

//_____________________________________________________________________________
AliMpVPadRowSegment::AliMpVPadRowSegment() 
  : TObject(),
    fNofPads(0),
    fOffsetX(0.),
    fPadRow(0),
    fMotif(0),
    fMotifPositionId(0)
{
/// Default contructor 
}

//_____________________________________________________________________________
AliMpVPadRowSegment::~AliMpVPadRowSegment() 
{
/// Destructor   
}

//
// public methods  
//

//_____________________________________________________________________________
Double_t  AliMpVPadRowSegment::HalfSizeY() const
{
/// Return the size in y of this row segment.

  return fMotif->GetPadDimensionY();
}

//_____________________________________________________________________________
AliMpPadRow*  AliMpVPadRowSegment::GetPadRow() const
{
/// Return the pad row.which this pad row segment belongs to.

  return fPadRow;
}  

//_____________________________________________________________________________
AliMpMotif*  AliMpVPadRowSegment::GetMotif() const
{
/// Return the motif of this pad row segment. 

  return fMotif;
}  

//_____________________________________________________________________________
Int_t  AliMpVPadRowSegment::GetMotifPositionId() const
{
/// Return the motif of this pad row segment. 

  return fMotifPositionId;
}  

//_____________________________________________________________________________
void  AliMpVPadRowSegment::SetOffsetX(Double_t offsetX)
{
/// Set the x offset.

  fOffsetX = offsetX;
}    

 AliMpVPadRowSegment.cxx:1
 AliMpVPadRowSegment.cxx:2
 AliMpVPadRowSegment.cxx:3
 AliMpVPadRowSegment.cxx:4
 AliMpVPadRowSegment.cxx:5
 AliMpVPadRowSegment.cxx:6
 AliMpVPadRowSegment.cxx:7
 AliMpVPadRowSegment.cxx:8
 AliMpVPadRowSegment.cxx:9
 AliMpVPadRowSegment.cxx:10
 AliMpVPadRowSegment.cxx:11
 AliMpVPadRowSegment.cxx:12
 AliMpVPadRowSegment.cxx:13
 AliMpVPadRowSegment.cxx:14
 AliMpVPadRowSegment.cxx:15
 AliMpVPadRowSegment.cxx:16
 AliMpVPadRowSegment.cxx:17
 AliMpVPadRowSegment.cxx:18
 AliMpVPadRowSegment.cxx:19
 AliMpVPadRowSegment.cxx:20
 AliMpVPadRowSegment.cxx:21
 AliMpVPadRowSegment.cxx:22
 AliMpVPadRowSegment.cxx:23
 AliMpVPadRowSegment.cxx:24
 AliMpVPadRowSegment.cxx:25
 AliMpVPadRowSegment.cxx:26
 AliMpVPadRowSegment.cxx:27
 AliMpVPadRowSegment.cxx:28
 AliMpVPadRowSegment.cxx:29
 AliMpVPadRowSegment.cxx:30
 AliMpVPadRowSegment.cxx:31
 AliMpVPadRowSegment.cxx:32
 AliMpVPadRowSegment.cxx:33
 AliMpVPadRowSegment.cxx:34
 AliMpVPadRowSegment.cxx:35
 AliMpVPadRowSegment.cxx:36
 AliMpVPadRowSegment.cxx:37
 AliMpVPadRowSegment.cxx:38
 AliMpVPadRowSegment.cxx:39
 AliMpVPadRowSegment.cxx:40
 AliMpVPadRowSegment.cxx:41
 AliMpVPadRowSegment.cxx:42
 AliMpVPadRowSegment.cxx:43
 AliMpVPadRowSegment.cxx:44
 AliMpVPadRowSegment.cxx:45
 AliMpVPadRowSegment.cxx:46
 AliMpVPadRowSegment.cxx:47
 AliMpVPadRowSegment.cxx:48
 AliMpVPadRowSegment.cxx:49
 AliMpVPadRowSegment.cxx:50
 AliMpVPadRowSegment.cxx:51
 AliMpVPadRowSegment.cxx:52
 AliMpVPadRowSegment.cxx:53
 AliMpVPadRowSegment.cxx:54
 AliMpVPadRowSegment.cxx:55
 AliMpVPadRowSegment.cxx:56
 AliMpVPadRowSegment.cxx:57
 AliMpVPadRowSegment.cxx:58
 AliMpVPadRowSegment.cxx:59
 AliMpVPadRowSegment.cxx:60
 AliMpVPadRowSegment.cxx:61
 AliMpVPadRowSegment.cxx:62
 AliMpVPadRowSegment.cxx:63
 AliMpVPadRowSegment.cxx:64
 AliMpVPadRowSegment.cxx:65
 AliMpVPadRowSegment.cxx:66
 AliMpVPadRowSegment.cxx:67
 AliMpVPadRowSegment.cxx:68
 AliMpVPadRowSegment.cxx:69
 AliMpVPadRowSegment.cxx:70
 AliMpVPadRowSegment.cxx:71
 AliMpVPadRowSegment.cxx:72
 AliMpVPadRowSegment.cxx:73
 AliMpVPadRowSegment.cxx:74
 AliMpVPadRowSegment.cxx:75
 AliMpVPadRowSegment.cxx:76
 AliMpVPadRowSegment.cxx:77
 AliMpVPadRowSegment.cxx:78
 AliMpVPadRowSegment.cxx:79
 AliMpVPadRowSegment.cxx:80
 AliMpVPadRowSegment.cxx:81
 AliMpVPadRowSegment.cxx:82
 AliMpVPadRowSegment.cxx:83
 AliMpVPadRowSegment.cxx:84
 AliMpVPadRowSegment.cxx:85
 AliMpVPadRowSegment.cxx:86
 AliMpVPadRowSegment.cxx:87
 AliMpVPadRowSegment.cxx:88
 AliMpVPadRowSegment.cxx:89
 AliMpVPadRowSegment.cxx:90
 AliMpVPadRowSegment.cxx:91
 AliMpVPadRowSegment.cxx:92
 AliMpVPadRowSegment.cxx:93
 AliMpVPadRowSegment.cxx:94
 AliMpVPadRowSegment.cxx:95
 AliMpVPadRowSegment.cxx:96
 AliMpVPadRowSegment.cxx:97
 AliMpVPadRowSegment.cxx:98
 AliMpVPadRowSegment.cxx:99
 AliMpVPadRowSegment.cxx:100
 AliMpVPadRowSegment.cxx:101
 AliMpVPadRowSegment.cxx:102
 AliMpVPadRowSegment.cxx:103
 AliMpVPadRowSegment.cxx:104
 AliMpVPadRowSegment.cxx:105
 AliMpVPadRowSegment.cxx:106
 AliMpVPadRowSegment.cxx:107
 AliMpVPadRowSegment.cxx:108
 AliMpVPadRowSegment.cxx:109
 AliMpVPadRowSegment.cxx:110
 AliMpVPadRowSegment.cxx:111
 AliMpVPadRowSegment.cxx:112