LCOV - code coverage report
Current view: top level - PMD/PMDsim - AliPMDcell.cxx (source / functions) Hit Total Coverage
Test: coverage.info Lines: 16 49 32.7 %
Date: 2016-06-14 17:26:59 Functions: 11 18 61.1 %

          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             : //                                                     //
      17             : //  Date   : August 05 2003                            //
      18             : //                                                     //
      19             : //  Store cell/track info which is used to assign      //
      20             : //  the correct track number to a multiple hit cell    //
      21             : //                                                     //
      22             : //-----------------------------------------------------//
      23             : 
      24             : #include "Riostream.h"
      25             : #include "Rtypes.h"
      26             : #include "AliPMDcell.h"
      27             : 
      28          12 : ClassImp(AliPMDcell)
      29             : 
      30           0 : AliPMDcell::AliPMDcell():
      31           0 :   fTrNumber(0),
      32           0 :   fSMNumber(0),
      33           0 :   fXpos(0),
      34           0 :   fYpos(0),
      35           0 :   fEdep(0.)
      36           0 : {
      37             :   // Standard constructor
      38           0 : }
      39             : 
      40         461 : AliPMDcell::AliPMDcell(Int_t trnumber, Int_t smnumber, 
      41             :                        Int_t xpos, Int_t ypos, Float_t edep):
      42         461 :   fTrNumber(trnumber),
      43         461 :   fSMNumber(smnumber),
      44         461 :   fXpos(xpos),
      45         461 :   fYpos(ypos),
      46         461 :   fEdep(edep)
      47        2305 : {
      48             :   // Constructor
      49         922 : }
      50             : 
      51           0 : AliPMDcell::AliPMDcell(AliPMDcell *pmdcell):
      52           0 :   fTrNumber(0),
      53           0 :   fSMNumber(0),
      54           0 :   fXpos(0),
      55           0 :   fYpos(0),
      56           0 :   fEdep(0.)
      57           0 : {
      58           0 :   *this = *pmdcell;
      59           0 : }
      60             : 
      61             : AliPMDcell::AliPMDcell(const AliPMDcell& source):
      62           0 :   TObject(source),
      63           0 :   fTrNumber(source.fTrNumber),
      64           0 :   fSMNumber(source.fSMNumber),
      65           0 :   fXpos(source.fXpos),
      66           0 :   fYpos(source.fYpos),
      67           0 :   fEdep(source.fEdep)
      68           0 : {
      69             :   //Copy Constructor 
      70           0 : }
      71             : 
      72             : AliPMDcell& AliPMDcell::operator=(const AliPMDcell& source)
      73             : {
      74             :   //Copy Constructor 
      75           0 :   if(this != &source)
      76             :     {
      77           0 :       fTrNumber = source.fTrNumber;
      78           0 :       fSMNumber = source.fSMNumber;
      79           0 :       fXpos = source.fXpos;
      80           0 :       fYpos = source.fYpos;
      81           0 :       fEdep = source.fEdep;
      82           0 :     }
      83           0 :   return *this;
      84             : }
      85             : 
      86             : AliPMDcell::~AliPMDcell()
      87        1844 : {
      88             :   // Default destructor
      89        1844 : }
      90             : 
      91             : Int_t AliPMDcell::GetTrackNumber() const
      92             : {
      93         922 :   return fTrNumber;
      94             : }
      95             : Int_t AliPMDcell::GetSMNumber() const
      96             : {
      97         922 :   return fSMNumber;
      98             : }
      99             : Int_t AliPMDcell::GetX() const
     100             : {
     101         922 :   return fXpos;
     102             : }
     103             : Int_t AliPMDcell::GetY() const
     104             : {
     105         922 :   return fYpos;
     106             : }
     107             : 
     108             : Float_t AliPMDcell::GetEdep() const
     109             : {
     110         922 :   return fEdep;
     111             : }
     112             : 

Generated by: LCOV version 1.11