LCOV - code coverage report
Current view: top level - TOF/TOFbase - AliTOFTDCHit.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 12 13 92.3 %
Date: 2016-06-14 17:26:59 Functions: 12 17 70.6 %

          Line data    Source code
       1             : #ifndef ALITOFTDCHIT_H
       2             : #define ALITOFTDCHIT_H
       3             : 
       4             : /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
       5             :  * See cxx source for full Copyright notice                               */
       6             : 
       7             : /*
       8             :   author: Roberto Preghenella (R+), preghenella@bo.infn.it
       9             : */
      10             : 
      11             : ///////////////////////////////////////////////////////////////
      12             : //                                                           //
      13             : //   This class provides a definition for TDC hits.          //
      14             : //                                                           //
      15             : ///////////////////////////////////////////////////////////////
      16             : 
      17             : #include "TObject.h"
      18             : #include "AliTOFRawDataFormat.h"
      19             : 
      20             : class AliTOFTDCHit : public TObject
      21             : {
      22             :  public:
      23             :   AliTOFTDCHit(); //default constructor
      24             :   AliTOFTDCHit(const AliTOFTDCHit &source); //copy contructor
      25             :   AliTOFTDCHit &operator = (const AliTOFTDCHit &source); //operator =
      26             :   //  AliTOFTDCHit &operator - (const AliTOFTDCHit &source); //operator -
      27             :   AliTOFTDCHit &operator -= (const AliTOFTDCHit &source); //operator -=
      28             :   AliTOFTDCHit &operator << (const AliTOFTDCHit &source); //operator <<
      29             :   virtual ~AliTOFTDCHit(); //destructor
      30             :   /* getters */
      31         400 :   UInt_t   GetHitTime() const {return fHitTime;}; //get hit time
      32         400 :   UShort_t GetTOTWidth() const {return fTOTWidth;}; //get TOT width
      33        2800 :   UShort_t GetChan() const {return fChan;}; //get channel
      34        1876 :   UShort_t GetTDCID() const {return fTDCID;}; //get TDC ID
      35           0 :   UShort_t GetEBit() const {return fEBit;}; //get E bit
      36        1200 :   UShort_t GetPSBits() const {return fPSBits;}; //get PS bits
      37             :   /* setters */
      38         800 :   void SetHitTime(UInt_t HitTime) {fHitTime = HitTime;}; //set hit time
      39         800 :   void SetTOTWidth(UShort_t TOTWidth) {fTOTWidth = TOTWidth;}; //set TOT width
      40         800 :   void SetChan(UShort_t Chan) {fChan = Chan;}; //set channel
      41         800 :   void SetTDCID(UShort_t TDCID) {fTDCID = TDCID;}; //set TDC ID
      42         800 :   void SetEBit(UShort_t EBit) {fEBit = EBit;};
      43         800 :   void SetPSBits(UShort_t PSBits) {fPSBits = PSBits;}; //set PS bits
      44             :  private:
      45             :   UInt_t   fHitTime; //hit time [24.4 ps]
      46             :   UShort_t fTOTWidth; //TOT width [48.8 ps]
      47             :   UShort_t fChan; //channel
      48             :   UShort_t fTDCID; //TDC ID
      49             :   UShort_t fEBit; //E bit
      50             :   UShort_t fPSBits; //PS bits
      51             : 
      52          26 :   ClassDef(AliTOFTDCHit, 1);
      53             : };
      54             : 
      55             : #endif /* ALITOFTDCHIT_H */

Generated by: LCOV version 1.11