LCOV - code coverage report
Current view: top level - RAW/RAWDatabase - AliRawDataArray.cxx (source / functions) Hit Total Coverage
Test: coverage.info Lines: 1 18 5.6 %
Date: 2016-06-14 17:26:59 Functions: 1 10 10.0 %

          Line data    Source code
       1             : // Author: Cvetan Cheshkov 27/03/2007
       2             : 
       3             : /**************************************************************************
       4             :  * Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. *
       5             :  *                                                                        *
       6             :  * Author: The ALICE Off-line Project.                                    *
       7             :  * Contributors are mentioned in the code where appropriate.              *
       8             :  *                                                                        *
       9             :  * Permission to use, copy, modify and distribute this software and its   *
      10             :  * documentation strictly for non-commercial purposes is hereby granted   *
      11             :  * without fee, provided that the above copyright notice appears in all   *
      12             :  * copies and that both the copyright notice and this permission notice   *
      13             :  * appear in the supporting documentation. The authors make no claims     *
      14             :  * about the suitability of this software for any purpose. It is          *
      15             :  * provided "as is" without express or implied warranty.                  *
      16             :  **************************************************************************/
      17             : 
      18             : //////////////////////////////////////////////////////////////////////////
      19             : //                                                                      //
      20             : // AliRawDataArray                                                      //
      21             : // A container object which is used in order to write the sub-detector  //
      22             : // raw-data payloads into a separate branches                           //
      23             : //                                                                      //
      24             : //////////////////////////////////////////////////////////////////////////
      25             : 
      26             : #include <TObjArray.h>
      27             : 
      28             : #include "AliRawDataArray.h"
      29             : 
      30             : 
      31         128 : ClassImp(AliRawDataArray)
      32             : 
      33           0 : AliRawDataArray::AliRawDataArray():
      34           0 : fRawDataArray(NULL)
      35           0 : {
      36             :   // Default constructor
      37           0 : }
      38             : 
      39           0 : AliRawDataArray::AliRawDataArray(Int_t n):
      40           0 : fRawDataArray(new TObjArray(n))
      41           0 : {
      42             :   // Default constructor
      43           0 : }
      44             : 
      45             : AliRawDataArray::~AliRawDataArray()
      46           0 : {
      47           0 :   if (fRawDataArray) delete fRawDataArray;
      48           0 : }
      49             : 
      50             : void AliRawDataArray::ClearData()
      51             : {
      52           0 :   if (fRawDataArray) fRawDataArray->Clear();
      53           0 : }
      54             : 
      55             : void AliRawDataArray::Add(AliRawData *data)
      56             : {
      57           0 :   if (fRawDataArray)
      58           0 :     fRawDataArray->Add((TObject *)data);
      59             :   else
      60           0 :     Error("Add", "TObjArray is not initialized! Cannot add raw-data payload!");
      61           0 : }

Generated by: LCOV version 1.11