LCOV - code coverage report
Current view: top level - PMD/PMDbase - AliPMDdigit.cxx (source / functions) Hit Total Coverage
Test: coverage.info Lines: 30 61 49.2 %
Date: 2016-06-14 17:26:59 Functions: 15 20 75.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             : //                                                     //
      17             : //  Date   : August 05 2003                            //
      18             : //                                                     //
      19             : //  Store digits for ALICE-PMD                         //
      20             : //                                                     //
      21             : //-----------------------------------------------------//
      22             : #include "Riostream.h"
      23             : #include "Rtypes.h"
      24             : #include "AliPMDdigit.h"
      25             : #include <stdio.h>
      26             : 
      27          12 : ClassImp(AliPMDdigit)
      28             : 
      29         125 : AliPMDdigit::AliPMDdigit():
      30         125 :   fTrNumber(0),
      31         125 :   fTrPid(0),
      32         125 :   fDet(0),
      33         125 :   fSMNumber(0),
      34         125 :   fRow(0),
      35         125 :   fColumn(0),
      36         125 :   fADC(0.)
      37         625 : {
      38             :   // Default Constructor
      39         250 : }
      40             : 
      41         180 : AliPMDdigit::AliPMDdigit(Int_t trnumber, Int_t trpid, Int_t det,
      42             :                          Int_t smnumber, 
      43             :                          Int_t irow, Int_t icol, Float_t adc):
      44         180 :   fTrNumber(trnumber),
      45         180 :   fTrPid(trpid),
      46         180 :   fDet(det),
      47         180 :   fSMNumber(smnumber),
      48         180 :   fRow(irow),
      49         180 :   fColumn(icol),
      50         180 :   fADC(adc)
      51         900 : {
      52             :   // Constructor
      53         360 : }
      54           0 : AliPMDdigit::AliPMDdigit(AliPMDdigit *pmddigit):
      55           0 :   fTrNumber(0),
      56           0 :   fTrPid(0),
      57           0 :   fDet(0),
      58           0 :   fSMNumber(0),
      59           0 :   fRow(0),
      60           0 :   fColumn(0),
      61           0 :   fADC(0.)
      62           0 : {
      63           0 :   *this = *pmddigit;
      64           0 : }
      65             : 
      66             : AliPMDdigit::AliPMDdigit(const AliPMDdigit& pmddigit):
      67           0 :   TObject(pmddigit),
      68           0 :   fTrNumber(pmddigit.fTrNumber),
      69           0 :   fTrPid(pmddigit.fTrPid),
      70           0 :   fDet(pmddigit.fDet),
      71           0 :   fSMNumber(pmddigit.fSMNumber),
      72           0 :   fRow(pmddigit.fRow),
      73           0 :   fColumn(pmddigit.fColumn),
      74           0 :   fADC(pmddigit.fADC)
      75           0 : {
      76             :   //Copy Constructor 
      77           0 : }
      78             : AliPMDdigit & AliPMDdigit::operator=(const AliPMDdigit& pmddigit) {
      79             :   //Assignment operator 
      80           0 :   if(this != &pmddigit)
      81             :     {
      82           0 :       fTrNumber   = pmddigit.fTrNumber;
      83           0 :       fTrPid      = pmddigit.fTrPid;
      84           0 :       fDet        = pmddigit.fDet;
      85           0 :       fSMNumber   = pmddigit.fSMNumber;
      86           0 :       fRow        = pmddigit.fRow;
      87           0 :       fColumn     = pmddigit.fColumn;
      88           0 :       fADC        = pmddigit.fADC;
      89           0 :     }
      90           0 :   return *this;
      91             : }
      92             : AliPMDdigit::~AliPMDdigit()
      93         820 : {
      94             :   // Default destructor
      95         820 : }
      96             : Int_t AliPMDdigit::GetTrackNumber() const
      97             : {
      98         360 :   return fTrNumber;
      99             : }
     100             : Int_t AliPMDdigit::GetTrackPid() const
     101             : {
     102         360 :   return fTrPid;
     103             : }
     104             : Int_t AliPMDdigit::GetDetector() const
     105             : {
     106        1440 :   return fDet;
     107             : }
     108             : Int_t AliPMDdigit::GetSMNumber() const
     109             : {
     110         720 :   return fSMNumber;
     111             : }
     112             : Int_t AliPMDdigit::GetRow() const
     113             : {
     114         720 :   return fRow;
     115             : }
     116             : Int_t AliPMDdigit::GetColumn() const
     117             : {
     118         720 :   return fColumn;
     119             : }
     120             : Float_t AliPMDdigit::GetADC() const
     121             : {
     122        1080 :   return fADC;
     123             : }
     124             : 

Generated by: LCOV version 1.11