LCOV - code coverage report
Current view: top level - T0/T0base - AliT0LookUpValue.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 7 20 35.0 %
Date: 2016-06-14 17:26:59 Functions: 9 22 40.9 %

          Line data    Source code
       1             : #ifndef ALIT0LOOKUPVALUE_H
       2             : #define ALIT0LOOKUPVALUE_H
       3             : /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
       4             :  * See cxx source for full Copyright notice                               */
       5             : #include "TObject.h"
       6             : 
       7             : class AliT0LookUpValue: public TObject
       8             : {
       9             :  public:
      10             :  
      11             :   AliT0LookUpValue(); 
      12             :   AliT0LookUpValue(Int_t trm, Int_t tdc, Int_t chain, Int_t channel );
      13           0 :  AliT0LookUpValue(const AliT0LookUpValue &o): TObject(),
      14           0 :     fTRM(-1),
      15           0 :     fTDC(-1),
      16           0 :     fChain(-1),
      17           0 :     fChannel(-1)
      18           0 :     { ((AliT0LookUpValue&) o).Copy(*this);} 
      19           0 :   AliT0LookUpValue& operator= (const AliT0LookUpValue & ) { return *this;};
      20          96 :   virtual ~AliT0LookUpValue() {};
      21             :  
      22             :   virtual Bool_t IsEqual(const TObject* obj) const ;
      23        1544 :   virtual ULong_t Hash() const {return (ULong_t) 1000000*fTRM+100000*fTDC+1000*fChannel;}
      24             :   //   virtual ULong_t Hash(void) const {return TString::Hash(this, sizeof(*this));};
      25        3650 :    Int_t GetTRM() const {return fTRM;};
      26        3650 :    Int_t GetTDC() const {return fTDC;};
      27        1358 :    Int_t GetChain() const {return fChain;};
      28         944 :    Int_t GetChannel() const {return fChannel;};
      29           0 :    void SetTRM(Int_t n) {fTRM=n;};
      30           0 :    void SetTDC(Int_t n) {fTDC=n;};
      31           0 :    void SetChain(Int_t n) {fChain=n;};
      32           0 :    void SetChannel(Int_t n) {fChannel=n;};
      33           0 :    virtual void Clear () {fTRM = -1; fTDC=-1; fChain=-1;  fChannel=-1;}
      34           0 :    void Clear(const Option_t*) {};
      35             :    void Print(Option_t* opt= "") const;
      36             : 
      37             :  protected:
      38             : 
      39             :    Int_t fTRM;       //#TRM
      40             :    Int_t fTDC;       //#TDC
      41             :    Int_t fChain;     //#chain 
      42             :    Int_t fChannel;   //#channel
      43             : 
      44         674 :    ClassDef(AliT0LookUpValue,1)  //Hits for detector T0
      45             : };
      46             : 
      47             : #endif

Generated by: LCOV version 1.11