LCOV - code coverage report
Current view: top level - TOF/TOFbase - AliTOFHitData.cxx (source / functions) Hit Total Coverage
Test: coverage.info Lines: 19 62 30.6 %
Date: 2016-06-14 17:26:59 Functions: 3 7 42.9 %

          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             : $Log$
      18             :  authors: Roberto Preghenella, preghenella@bo.infn.it
      19             :           with contribution from Chiara Zampolli, zampolli@bo.infn.it 
      20             : */
      21             : 
      22             : ////////////////////////////////////////////////////////////////////////
      23             : //                                                                    //
      24             : //     This class provides the basic object to store just-decoded     //
      25             : //     raw data                                                       //
      26             : //                                                                    //
      27             : //                                                                    //
      28             : ////////////////////////////////////////////////////////////////////////
      29             : 
      30             : #include "AliTOFHitData.h"
      31             : 
      32          26 : ClassImp(AliTOFHitData)
      33             : 
      34             : AliTOFHitData::AliTOFHitData():
      35          80 :   TObject(),
      36          80 :   fDDLID(-1),
      37          80 :   fSlotID(-1),
      38          80 :   fACQ(-1),
      39          80 :   fChain(-1),
      40          80 :   fPS(-1),
      41          80 :   fTDC(-1),
      42          80 :   fChan(-1),
      43          80 :   fTime(-1),
      44          80 :   fTimeBin(-1),
      45          80 :   fTOT(-1),
      46          80 :   fTOTBin(-1),
      47          80 :   fDeltaBunchID(-1),
      48          80 :   fL0L1Latency(-1),
      49          80 :   fDeltaEventCounter(-1)
      50         400 : {
      51             :   //ctor
      52         960 :   for (Int_t i = 0; i < 5; ++i) fVolume[i]=0;
      53         160 : }
      54             : 
      55             : //-----------------------------------------------------------------------------
      56             : AliTOFHitData::AliTOFHitData(const AliTOFHitData &source):
      57           0 :   TObject(source),
      58           0 :   fDDLID(source.fDDLID),
      59           0 :   fSlotID(source.fSlotID),
      60           0 :   fACQ(source.fACQ),
      61           0 :   fChain(source.fChain),
      62           0 :   fPS(source.fPS),
      63           0 :   fTDC(source.fTDC),
      64           0 :   fChan(source.fChan),
      65           0 :   fTime(source.fTime),
      66           0 :   fTimeBin(source.fTimeBin),
      67           0 :   fTOT(source.fTOT),
      68           0 :   fTOTBin(source.fTOTBin),
      69           0 :   fDeltaBunchID(source.fDeltaBunchID),
      70           0 :   fL0L1Latency(source.fL0L1Latency),
      71           0 :   fDeltaEventCounter(source.fDeltaEventCounter)
      72           0 : { 
      73             :   // copy constructor 
      74           0 :   for (Int_t i = 0; i < 5; ++i) fVolume[i]=source.fVolume[i];
      75           0 : }
      76             : 
      77             : //-----------------------------------------------------------------------------
      78             : AliTOFHitData& AliTOFHitData::operator=(const AliTOFHitData & source) { 
      79             : // assignment operator
      80           0 :   if(this!=&source) {
      81           0 :     TObject::operator=(source);
      82           0 :     for (Int_t i = 0; i < 5; ++i) fVolume[i]=source.fVolume[i];
      83           0 :     fDDLID=source.fDDLID;
      84           0 :     fSlotID= source.fSlotID;
      85           0 :     fACQ= source.fACQ;
      86           0 :     fChain= source.fChain;
      87           0 :     fPS= source.fPS;
      88           0 :     fTDC= source.fTDC;
      89           0 :     fChan= source.fChan;
      90           0 :     fTime= source.fTime;
      91           0 :     fTimeBin= source.fTimeBin;
      92           0 :     fTOT= source.fTOT;
      93           0 :     fTOTBin= source.fTOTBin;
      94           0 :     fDeltaBunchID=source.fDeltaBunchID;
      95           0 :     fL0L1Latency=source.fL0L1Latency;
      96           0 :     fDeltaEventCounter=source.fDeltaEventCounter;
      97           0 :   }
      98           0 :   return *this;
      99             : }
     100             : //----------------------------------------------------------------------------
     101             : void AliTOFHitData::SetVolume(Int_t *Volume)
     102             : {
     103             :   // setting the TOF volume index 
     104           0 :   fVolume[0]=Volume[0];
     105           0 :   fVolume[1]=Volume[1];
     106           0 :   fVolume[2]=Volume[2];
     107           0 :   fVolume[3]=Volume[3];
     108           0 :   fVolume[4]=Volume[4];
     109           0 : }
     110             : 
     111             : 
     112             :   

Generated by: LCOV version 1.11