LCOV - code coverage report
Current view: top level - PMD/PMDbase - AliPMDBlockHeader.cxx (source / functions) Hit Total Coverage
Test: coverage.info Lines: 23 45 51.1 %
Date: 2016-06-14 17:26:59 Functions: 6 10 60.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             : #include "AliPMDBlockHeader.h"
      18             : 
      19             : 
      20             : 
      21          12 : ClassImp(AliPMDBlockHeader)
      22             : 
      23             : 
      24             : const Int_t  AliPMDBlockHeader::fgkHeaderLength = 8;
      25             : 
      26             : //------------------------------------------------------------
      27             : AliPMDBlockHeader::AliPMDBlockHeader()
      28          32 :   :  TObject(),
      29          32 :      fDataKey(0),
      30          32 :      fTotalLength(0),
      31          32 :      fRawDataLength(0),
      32          32 :      fDspId(0),
      33          32 :      fL0Trigger(0),
      34          32 :      fMiniEventId(0),
      35          32 :      fEventId1(0),
      36          32 :      fEventId2(0)
      37         160 : {
      38             :   //
      39             :   // ctor
      40             :   //
      41             : 
      42          64 : }
      43             : 
      44             : //___________________________________________
      45             : AliPMDBlockHeader::~AliPMDBlockHeader()
      46          64 : {
      47             :   // 
      48             :   // dtor
      49             :   //
      50          96 : }
      51             : 
      52             : //___________________________________________
      53             : AliPMDBlockHeader::AliPMDBlockHeader(const AliPMDBlockHeader & blockh):
      54           0 :   TObject(),
      55           0 :   fDataKey(blockh.fDataKey),
      56           0 :   fTotalLength(blockh.fTotalLength),
      57           0 :   fRawDataLength(blockh.fRawDataLength),
      58           0 :   fDspId(blockh.fDspId),
      59           0 :   fL0Trigger(blockh.fL0Trigger),
      60           0 :   fMiniEventId(blockh.fMiniEventId),
      61           0 :   fEventId1(blockh.fEventId1),
      62           0 :   fEventId2(blockh.fEventId2)
      63           0 : {
      64             :   //
      65             :   // copy ctor
      66             :   //
      67           0 : }
      68             : 
      69             : //___________________________________________
      70             : AliPMDBlockHeader&
      71             : AliPMDBlockHeader::operator=(const AliPMDBlockHeader &blockh)
      72             : {
      73             :   // 
      74             :   // assignment operator
      75             :   //
      76           0 :   if (this != &blockh)
      77             :     {
      78           0 :       fDataKey       = blockh.fDataKey;
      79           0 :       fTotalLength   = blockh.fTotalLength;
      80           0 :       fRawDataLength = blockh.fRawDataLength;
      81           0 :       fDspId         = blockh.fDspId;
      82           0 :       fL0Trigger     = blockh.fL0Trigger;
      83           0 :       fMiniEventId   = blockh.fMiniEventId;
      84           0 :       fEventId1      = blockh.fEventId1;
      85           0 :       fEventId2      = blockh.fEventId2;
      86           0 :     }
      87           0 :   return *this;
      88             : }
      89             : void AliPMDBlockHeader::SetHeader(Int_t *header)
      90             : {
      91          64 :   fDataKey       = header[0];
      92          32 :   fTotalLength   = header[1];
      93          32 :   fRawDataLength = header[2];
      94          32 :   fDspId         = header[3];
      95          32 :   fL0Trigger     = header[4];
      96          32 :   fMiniEventId   = header[5];
      97          32 :   fEventId1      = header[6];
      98          32 :   fEventId2      = header[7];
      99          32 : }
     100             :       

Generated by: LCOV version 1.11