LCOV - code coverage report
Current view: top level - TRD/TRDbase - AliTRDCalDCSGTU.cxx (source / functions) Hit Total Coverage
Test: coverage.info Lines: 22 44 50.0 %
Date: 2016-06-14 17:26:59 Functions: 6 11 54.5 %

          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             : /* $Id: AliTRDCalDCSGTU.cxx 18952 2007-06-08 11:36:12Z cblume $ */
      17             : 
      18             : ///////////////////////////////////////////////////////////////////////////////
      19             : //                                                                           //
      20             : //  TRD calibration class for TRD DCS GTU parameters                         //
      21             : //                                                                           //
      22             : ///////////////////////////////////////////////////////////////////////////////
      23             : 
      24             : #include "AliTRDCalDCSGTU.h"
      25             : #include "AliTRDCalDCSGTUTgu.h"
      26             : #include <TObjArray.h>
      27             : 
      28          48 : ClassImp(AliTRDCalDCSGTU)
      29             : 
      30             : //_____________________________________________________________________________
      31             : AliTRDCalDCSGTU::AliTRDCalDCSGTU()
      32          12 :   :TNamed()
      33          12 :     ,fRunNumber(0)
      34          12 :     ,fSORFlag(0)
      35          12 :     ,fSerial(0)
      36          12 :     ,fDNR(-1)
      37          36 :     ,fSegmentsArr(new TObjArray())
      38          36 :     ,fTgu(new AliTRDCalDCSGTUTgu())
      39          60 : {
      40             :   //
      41             :   // AliTRDCalDCSGTU default constructor
      42             :   //
      43          12 :   fSegmentsArr->SetOwner();
      44          24 : }
      45             : 
      46             : //_____________________________________________________________________________
      47             : AliTRDCalDCSGTU::AliTRDCalDCSGTU(const char *name, const char *title)
      48           0 :   :TNamed(name,title)
      49           0 :     ,fRunNumber(0)
      50           0 :     ,fSORFlag(0)
      51           0 :     ,fSerial(0)
      52           0 :     ,fDNR(-1)
      53           0 :     ,fSegmentsArr(new TObjArray())
      54           0 :     ,fTgu(new AliTRDCalDCSGTUTgu())
      55           0 : {
      56             :   //
      57             :   // AliTRDCalDCSGTU constructor
      58             :   //
      59           0 : }
      60             : 
      61             : //_____________________________________________________________________________
      62             : AliTRDCalDCSGTU::AliTRDCalDCSGTU(const AliTRDCalDCSGTU&)
      63           0 :   :TNamed("","")
      64           0 :     ,fRunNumber(0)
      65           0 :     ,fSORFlag(0)
      66           0 :     ,fSerial(0)
      67           0 :     ,fDNR(-1)
      68           0 :     ,fSegmentsArr(new TObjArray())
      69           0 :     ,fTgu(new AliTRDCalDCSGTUTgu())
      70           0 : {
      71             :   //
      72             :   // AliTRDCalDCSGTU constructor
      73             :   //
      74           0 : }
      75             : 
      76             : //_____________________________________________________________________________
      77             : AliTRDCalDCSGTU::~AliTRDCalDCSGTU()
      78          36 : {
      79             :   //
      80             :   // AliTRDCalDCSGTU destructor
      81             :   //
      82             : 
      83           6 :   if (fSegmentsArr) {
      84           6 :     fSegmentsArr->Delete();
      85          12 :     delete fSegmentsArr;
      86           6 :     fSegmentsArr = 0x0;
      87           6 :   }
      88             : 
      89           6 :   if (fTgu) {
      90          12 :     delete fTgu;
      91           6 :     fTgu = 0x0;
      92           6 :   }
      93             : 
      94          18 : }
      95             : 
      96             : //_____________________________________________________________________________
      97             : AliTRDCalDCSGTU& AliTRDCalDCSGTU::operator=(const AliTRDCalDCSGTU& sh)
      98             : {
      99             :   //
     100             :   // AliTRDCalDCSGTU constructor
     101             :   //
     102           0 :   if (&sh == this) return *this;
     103             :   
     104           0 :   new (this) AliTRDCalDCSGTU(sh);
     105           0 :   return *this;
     106           0 : }
     107             : 
     108             : 
     109             : 

Generated by: LCOV version 1.11