LCOV - code coverage report
Current view: top level - T0/T0base - AliT0LookUpKey.cxx (source / functions) Hit Total Coverage
Test: coverage.info Lines: 9 27 33.3 %
Date: 2016-06-14 17:26:59 Functions: 4 11 36.4 %

          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             :  * class for logical adress of chanells:
      17             :  * can be call by nubmer or by name
      18             :  *
      19             :  *  Alla.Maevskaya@cern.ch
      20             :  ************************************************************************/ 
      21             : 
      22             : #include "AliT0LookUpKey.h"
      23             : 
      24          20 : ClassImp(AliT0LookUpKey)
      25             : 
      26             :  AliT0LookUpKey::AliT0LookUpKey():
      27         328 :    TObject(),
      28         328 :    fKey(0),
      29         328 :    fName("")
      30        1640 :  {
      31             :  
      32         656 :  }
      33             : 
      34             : //--------------------------------------------------------------------------------------
      35             :  AliT0LookUpKey::AliT0LookUpKey(Int_t key):
      36           0 :    TObject(),
      37           0 :    fKey(key),
      38           0 :    fName("")
      39           0 :  {
      40             :  
      41           0 :  }
      42             : 
      43             : //--------------------------------------------------------------------------------------
      44             :  AliT0LookUpKey::AliT0LookUpKey(TString name):
      45           0 :    TObject(),
      46           0 :    fKey(),
      47           0 :    fName(name)
      48           0 :  {
      49             :  
      50           0 :  }
      51             : //________________________________________________________________
      52             : AliT0LookUpKey::AliT0LookUpKey(const AliT0LookUpKey& o) :           
      53           0 :    TObject(),
      54           0 :    fKey(),
      55           0 :    fName("")
      56             : 
      57           0 : {
      58             : // copy constructor
      59           0 :  ((AliT0LookUpKey&) o).Copy(*this);
      60           0 : }
      61             : //--------------------------------------------------------------------------------------
      62             : 
      63             : Bool_t AliT0LookUpKey:: IsEqual(const TObject* obj) const
      64             : {
      65             :   Int_t k;
      66             : //  printf("IsEqual\n");
      67         146 :     k=((AliT0LookUpKey*)obj)->GetKey();
      68         146 :     if (k==fKey) return kTRUE; else return kFALSE;
      69          73 : }
      70             : //--------------------------------------------------------------------------------------
      71             : void AliT0LookUpKey::Print(Option_t *) const
      72             : {
      73           0 :   printf(" AliT0LookUpKey key %i name %s\n",fKey,fName.Data());
      74             : 
      75           0 : }

Generated by: LCOV version 1.11