LCOV - code coverage report
Current view: top level - STEER/STEERBase - AliVAD.cxx (source / functions) Hit Total Coverage
Test: coverage.info Lines: 8 11 72.7 %
Date: 2016-06-14 17:26:59 Functions: 3 4 75.0 %

          Line data    Source code
       1             : /**************************************************************************
       2             :  * Copyright(c) 1998-2007, 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             : //     Base class for ESD and AOD AD data
      18             : //     Author: Michal Broz
      19             : //     michal.broz@cern.ch
      20             : //-------------------------------------------------------------------------
      21             : 
      22             : #include "AliVAD.h"
      23             : #include "AliLog.h"
      24             : 
      25         176 : ClassImp(AliVAD)
      26             : 
      27             : //__________________________________________________________________________
      28             : AliVAD::AliVAD(const AliVAD& source) :
      29           0 :   TObject(source) { } // Copy constructor
      30             : 
      31             : //__________________________________________________________________________
      32             : AliVAD& AliVAD::operator=(const AliVAD& source)
      33             : {
      34             :   // Assignment operator
      35             :   //
      36          16 :   if (this!=&source) { 
      37           8 :     TObject::operator=(source); 
      38           8 :   }
      39             :   
      40           8 :   return *this; 
      41             : }
      42             : 
      43             : //__________________________________________________________________________
      44             : Bool_t AliVAD::OutOfRange(Int_t i, const char* s, Int_t upper) const
      45             : {
      46             :   // checks if i is a valid index.
      47             :   // s = name of calling method
      48        1280 :   if (i > upper || i < 0) {
      49           0 :     AliInfo(Form("%s: Index %d out of range",s,i));
      50           0 :     return kTRUE;
      51             :   }
      52         640 :   return kFALSE;
      53         640 : }
      54             : 

Generated by: LCOV version 1.11