LCOV - code coverage report
Current view: top level - T0/T0base - AliT0LookUpValue.cxx (source / functions) Hit Total Coverage
Test: coverage.info Lines: 22 24 91.7 %
Date: 2016-06-14 17:26:59 Functions: 6 7 85.7 %

          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             : #include "AliT0LookUpValue.h"
      16             : //#include "iostream.h"
      17             : 
      18          20 : ClassImp(AliT0LookUpValue)
      19             : 
      20         324 :   AliT0LookUpValue:: AliT0LookUpValue(): TObject(),
      21         324 :                                      fTRM(-1),
      22         324 :                                      fTDC(-1),
      23         324 :                                      fChain(-1),
      24         324 :                                      fChannel(-1)
      25             : 
      26             : 
      27        1620 : {
      28             : 
      29             :   ///
      30         648 : }
      31             : //--------------------------------------------------------------------------------------
      32          24 :  AliT0LookUpValue:: AliT0LookUpValue(Int_t trm, Int_t tdc, Int_t chain, Int_t channel) : TObject(),
      33          24 :   fTRM(trm),
      34          24 :   fTDC(tdc),
      35          24 :   fChain(chain),
      36          24 :   fChannel(channel)
      37         120 : {
      38             : 
      39             : //--------------------------------------------------------------------------------------
      40             :  
      41          48 : }
      42             :  Bool_t AliT0LookUpValue:: IsEqual(const TObject* obj) const
      43             : {
      44        3602 :      AliT0LookUpValue *b = ( AliT0LookUpValue*)obj;
      45        2249 :      if ( b->GetTRM() == fTRM && 
      46        1801 :           b->GetTDC() == fTDC && 
      47         655 :           b->GetChain() == fChain &&
      48         896 :           b->GetChannel() == fChannel  ) return kTRUE;
      49        1353 :      else return kFALSE;
      50        1801 : }
      51             : 
      52             : //------------------------------------------------------------------------------------ 
      53             : void AliT0LookUpValue::Print(Option_t *) const
      54             : {
      55           0 :   printf("AliT0LookUpValue TRM %i, TDC %i, chain %i channel %i\n",fTRM,fTDC,fChain,fChannel);
      56           0 : }
      57             : //--------------------------------------------------------------------------------------

Generated by: LCOV version 1.11