LCOV - code coverage report
Current view: top level - AD/ADbase - AliADSDigit.cxx (source / functions) Hit Total Coverage
Test: coverage.info Lines: 1 30 3.3 %
Date: 2016-06-14 17:26:59 Functions: 1 9 11.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             : #include "AliADSDigit.h"
      17             : 
      18          16 : ClassImp(AliADSDigit)
      19             : 
      20             : //__________________________________________________________________________
      21             : AliADSDigit::AliADSDigit()
      22           0 :    :AliDigit(),
      23           0 :     fPMNumber(0),
      24           0 :     fNBins(0),
      25           0 :     fCharges(NULL)
      26           0 : {
      27             :   // Standard default
      28             :   // constructor 
      29           0 : }
      30             : 
      31             : //__________________________________________________________________________
      32             : AliADSDigit::AliADSDigit(Int_t pmnumber,
      33             :                          Int_t nbins, 
      34             :                          Float_t *charges,
      35             :                          Int_t *labels)
      36           0 :   :AliDigit(),
      37           0 :    fPMNumber(pmnumber),
      38           0 :    fNBins(nbins),
      39           0 :    fCharges(NULL)
      40           0 : {  
      41             :   // Constructor
      42             :   // Used in the digitizer
      43           0 :   fCharges = new Float_t[fNBins];
      44           0 :   if (charges) {
      45           0 :     for(Int_t i = 0; i < fNBins; ++i)
      46           0 :       fCharges[i] = charges[i];
      47           0 :   }
      48             :   else {
      49           0 :     for(Int_t i = 0; i < fNBins; ++i)
      50           0 :       fCharges[i] = 0;
      51             :   }
      52             : 
      53           0 :   if (labels)
      54           0 :     for(Int_t iTrack = 0; iTrack < 3; ++iTrack) fTracks[iTrack] = labels[iTrack];
      55           0 : }
      56             : 
      57             : //__________________________________________________________________________
      58             : AliADSDigit::~AliADSDigit()
      59           0 : {
      60             :   // Destructor
      61             :   // Delete the charges array if it was allocated
      62           0 :   if (fCharges) {
      63           0 :     delete [] fCharges;
      64           0 :     fCharges = NULL;
      65           0 :   }
      66           0 : }
      67             : 
      68             : //__________________________________________________________________________
      69             : void AliADSDigit::Print(const Option_t*) const
      70             : {
      71             :     // Dumps digit object
      72           0 :     Dump();
      73           0 : }

Generated by: LCOV version 1.11