LCOV - code coverage report
Current view: top level - TOF/TOFbase - AliTOFChainSummaryData.cxx (source / functions) Hit Total Coverage
Test: coverage.info Lines: 37 71 52.1 %
Date: 2016-06-14 17:26:59 Functions: 7 10 70.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             :   author: Roberto Preghenella (R+), preghenella@bo.infn.it
      18             : */
      19             : 
      20             : 
      21             : //////////////////////////////////////////////////////////////////////
      22             : //                                                                  //
      23             : //                                                                  //
      24             : //        This class provides a summary for TRM chain data.         //
      25             : //                                                                  //
      26             : //                                                                  //
      27             : //////////////////////////////////////////////////////////////////////
      28             : 
      29             : #include "AliTOFChainSummaryData.h"
      30             : 
      31          26 : ClassImp(AliTOFChainSummaryData)
      32             : 
      33             : AliTOFChainSummaryData::AliTOFChainSummaryData() :
      34         200 :   TObject(),
      35         200 :   fHeader(kFALSE),
      36         200 :   fTrailer(kFALSE),
      37         200 :   fChain(0),
      38         200 :   fBunchID(0),
      39         200 :   fPB24Temp(0),
      40         200 :   fPB24ID(0),
      41         200 :   fTSBit(0),
      42         200 :   fStatus(0),
      43         200 :   fEventCounter(0),
      44         200 :   fTDCHitBuffer(0x0),
      45         200 :   fTDCPackedHitBuffer(0x0),
      46         200 :   fTDCErrorBuffer(0x0)
      47        1000 : {
      48             :   /* default constructor */
      49         600 :   fTDCHitBuffer = new AliTOFTDCHitBuffer();
      50         600 :   fTDCPackedHitBuffer = new AliTOFTDCHitBuffer();
      51         600 :   fTDCErrorBuffer = new AliTOFTDCErrorBuffer();
      52         400 : }
      53             : 
      54             : //_________________________________________________________________
      55             : 
      56             : AliTOFChainSummaryData::AliTOFChainSummaryData(const AliTOFChainSummaryData &source) :
      57           0 :   TObject(source),
      58           0 :   fHeader(source.fHeader),
      59           0 :   fTrailer(source.fTrailer),
      60           0 :   fChain(source.fChain),
      61           0 :   fBunchID(source.fBunchID),
      62           0 :   fPB24Temp(source.fPB24Temp),
      63           0 :   fPB24ID(source.fPB24ID),
      64           0 :   fTSBit(source.fTSBit),
      65           0 :   fStatus(source.fStatus),
      66           0 :   fEventCounter(source.fEventCounter),
      67           0 :   fTDCHitBuffer(0x0),
      68           0 :   fTDCPackedHitBuffer(0x0),
      69           0 :   fTDCErrorBuffer(0x0)
      70           0 : {
      71             : /* copy constructor */
      72           0 :   fTDCHitBuffer = new AliTOFTDCHitBuffer(*source.fTDCHitBuffer);
      73           0 :   fTDCPackedHitBuffer = new AliTOFTDCHitBuffer(*source.fTDCPackedHitBuffer);
      74           0 :   fTDCErrorBuffer = new AliTOFTDCErrorBuffer(*source.fTDCErrorBuffer);
      75           0 : }
      76             : 
      77             : //_________________________________________________________________
      78             : 
      79             : AliTOFChainSummaryData &
      80             : AliTOFChainSummaryData::operator = (const AliTOFChainSummaryData &source)
      81             : {
      82             :   /* operator = */
      83           0 :   if(&source == this) return *this;
      84           0 :   TObject::operator=(source);
      85             : 
      86           0 :   fHeader = source.fHeader;
      87           0 :   fTrailer = source.fTrailer;
      88           0 :   fChain = source.fChain;
      89           0 :   fBunchID = source.fBunchID;
      90           0 :   fPB24Temp = source.fPB24Temp;
      91           0 :   fPB24ID = source.fPB24ID;
      92           0 :   fTSBit = source.fTSBit;
      93           0 :   fStatus = source.fStatus;
      94           0 :   fEventCounter = source.fEventCounter;
      95           0 :   *fTDCHitBuffer = *source.fTDCHitBuffer;
      96           0 :   *fTDCPackedHitBuffer = *source.fTDCPackedHitBuffer;
      97           0 :   *fTDCErrorBuffer = *source.fTDCErrorBuffer;
      98           0 :   return *this;
      99           0 : }
     100             : 
     101             : //_________________________________________________________________
     102             : 
     103             : AliTOFChainSummaryData::~AliTOFChainSummaryData()
     104         960 : {
     105             :   /* default destructor */
     106         320 :     delete fTDCHitBuffer;
     107         320 :     delete fTDCPackedHitBuffer;
     108         320 :     delete fTDCErrorBuffer;
     109         480 : }
     110             : 
     111             : //_________________________________________________________________
     112             : 
     113             : void
     114             : AliTOFChainSummaryData::Reset()
     115             : {
     116             :   /* reset function */
     117       89856 :   fHeader = kFALSE;
     118       44928 :   fTrailer = kFALSE;
     119       44928 :   fChain = 0;
     120       44928 :   fBunchID = 0;
     121       44928 :   fPB24Temp = 0;
     122       44928 :   fPB24ID = 0;
     123       44928 :   fTSBit = 0;
     124       44928 :   fStatus = 0;
     125       44928 :   fEventCounter = 0;
     126       44928 :   fTDCHitBuffer->Reset();
     127       44928 :   fTDCPackedHitBuffer->Reset();
     128       44928 :   fTDCErrorBuffer->Reset();
     129       44928 : }

Generated by: LCOV version 1.11