LCOV - code coverage report
Current view: top level - MUON/MUONmapping - AliMpVPadRowSegment.cxx (source / functions) Hit Total Coverage
Test: coverage.info Lines: 16 25 64.0 %
Date: 2016-06-14 17:26:59 Functions: 8 11 72.7 %

          Line data    Source code
       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             : 
      34             : /// \cond CLASSIMP
      35          18 : ClassImp(AliMpVPadRowSegment)
      36             : /// \endcond
      37             : 
      38             : //_____________________________________________________________________________
      39             : AliMpVPadRowSegment::AliMpVPadRowSegment(AliMpPadRow* padRow, AliMpMotif* motif, 
      40             :                                        Int_t motifPositionId, Int_t nofPads)
      41        2169 :   : TObject(),
      42        2169 :     fNofPads(nofPads),
      43        2169 :     fOffsetX(0.),
      44        2169 :     fPadRow(padRow),
      45        2169 :     fMotif(motif),
      46        2169 :     fMotifPositionId(motifPositionId)
      47        6507 : {
      48             : /// Standard contructor 
      49        2169 : }
      50             : 
      51             : //_____________________________________________________________________________
      52             : AliMpVPadRowSegment::AliMpVPadRowSegment() 
      53           0 :   : TObject(),
      54           0 :     fNofPads(0),
      55           0 :     fOffsetX(0.),
      56           0 :     fPadRow(0),
      57           0 :     fMotif(0),
      58           0 :     fMotifPositionId(0)
      59           0 : {
      60             : /// Default contructor 
      61           0 : }
      62             : 
      63             : //_____________________________________________________________________________
      64             : AliMpVPadRowSegment::~AliMpVPadRowSegment() 
      65           0 : {
      66             : /// Destructor   
      67        2892 : }
      68             : 
      69             : //
      70             : // public methods  
      71             : //
      72             : 
      73             : //_____________________________________________________________________________
      74             : Double_t  AliMpVPadRowSegment::HalfSizeY() const
      75             : {
      76             : /// Return the size in y of this row segment.
      77             : 
      78      369838 :   return fMotif->GetPadDimensionY();
      79             : }
      80             : 
      81             : //_____________________________________________________________________________
      82             : AliMpPadRow*  AliMpVPadRowSegment::GetPadRow() const
      83             : {
      84             : /// Return the pad row.which this pad row segment belongs to.
      85             : 
      86         660 :   return fPadRow;
      87             : }  
      88             : 
      89             : //_____________________________________________________________________________
      90             : AliMpMotif*  AliMpVPadRowSegment::GetMotif() const
      91             : {
      92             : /// Return the motif of this pad row segment. 
      93             : 
      94       81742 :   return fMotif;
      95             : }  
      96             : 
      97             : //_____________________________________________________________________________
      98             : Int_t  AliMpVPadRowSegment::GetMotifPositionId() const
      99             : {
     100             : /// Return the motif of this pad row segment. 
     101             : 
     102       25716 :   return fMotifPositionId;
     103             : }  
     104             : 
     105             : //_____________________________________________________________________________
     106             : void  AliMpVPadRowSegment::SetOffsetX(Double_t offsetX)
     107             : {
     108             : /// Set the x offset.
     109             : 
     110        4338 :   fOffsetX = offsetX;
     111        2169 : }    
     112             : 

Generated by: LCOV version 1.11