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

          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: AliMpConnection.cxx,v 1.7 2006/05/24 13:58:41 ivana Exp $
      18             : // Category: motif
      19             : 
      20             : //-----------------------------------------------------------------------------
      21             : // Class AliMpConnection
      22             : // ----------------
      23             : // Class that defines a connexion properties.
      24             : // Included in AliRoot: 2003/05/02
      25             : // Authors: David Guez, Ivana Hrivnacova; IPN Orsay
      26             : //-----------------------------------------------------------------------------
      27             : 
      28             : #include "AliMpConnection.h"
      29             : #include "AliMpEncodePair.h"
      30             : 
      31             : #include "AliLog.h"
      32             : 
      33             : /// \cond CLASSIMP
      34          18 : ClassImp(AliMpConnection)
      35             : /// \endcond
      36             : 
      37             : //_____________________________________________________________________________
      38             : AliMpConnection::AliMpConnection(Int_t padNum, 
      39             :                                  Int_t bergNum,
      40             :                                  Int_t kaptonNum,
      41             :                                  Int_t gassiNum, 
      42             :                                  MpPair_t localIndices) 
      43       38796 :   : TObject(),
      44       38796 :     fBergNum(bergNum),
      45       38796 :     fKaptonNum(kaptonNum),
      46       38796 :     fGassiNum(gassiNum),
      47       38796 :     fLocalIndices(localIndices),
      48       38796 :     fOwner(0)
      49      193980 : {
      50             : /// Standard constructor
      51             : 
      52      193980 :   AliDebug(1,Form("this=%p padNum=%d bergNum=%d kaptonNum=%d gassiNum=%d",
      53             :                    this,padNum,bergNum,kaptonNum,gassiNum));
      54       38796 :   SetUniqueID(padNum);
      55       77592 : }
      56             : 
      57             : //_____________________________________________________________________________
      58             : AliMpConnection::AliMpConnection(TRootIOCtor* /*ioCtor*/) 
      59           0 :   : TObject(),
      60           0 :     fBergNum(),
      61           0 :     fKaptonNum(),
      62           0 :     fGassiNum(),
      63           0 :     fLocalIndices(),
      64           0 :     fOwner()
      65           0 : {
      66             : /// Root IO constructor
      67             : 
      68           0 :   AliDebug(1,Form("this=%p",this));
      69           0 : }
      70             : /*
      71             : //_____________________________________________________________________________
      72             : AliMpConnection::AliMpConnection() 
      73             :   : TObject(),
      74             :     fBergNum(-1),
      75             :     fKaptonNum(-1),
      76             :     fGassiNum(-1),
      77             :     fLocalIndices(-1)
      78             :     fOwner(0)
      79             : {
      80             : /// Default constructor
      81             : 
      82             :   AliDebug(1,Form("this=%p",this));
      83             : }
      84             : */
      85             : //_____________________________________________________________________________
      86             : AliMpConnection::~AliMpConnection() 
      87      155184 : {
      88             : /// Destructor  
      89             : 
      90      129320 :   AliDebug(1,Form("this=%p", this));
      91       77592 : }
      92             : 
      93             : //_____________________________________________________________________________
      94             : Int_t  AliMpConnection::GetLocalIx() const
      95             : {
      96             : /// Return local ix
      97             : 
      98       77592 :   return AliMp::PairFirst(fLocalIndices);
      99             : }  
     100             : 
     101             : Int_t  AliMpConnection::GetLocalIy() const
     102             : {
     103             : /// Return local iy
     104             : 
     105       77592 :   return AliMp::PairSecond(fLocalIndices);
     106             : }  
     107             : 

Generated by: LCOV version 1.11