LCOV - code coverage report
Current view: top level - TOF/TOFbase - AliTOFHitField.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 1 11 9.1 %
Date: 2016-06-14 17:26:59 Functions: 1 15 6.7 %

          Line data    Source code
       1             : #ifndef ALITOFHITFIELD_H
       2             : #define ALITOFHITFIELD_H
       3             : /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
       4             :  * See cxx source for full Copyright notice                               */
       5             : 
       6             : ///////////////////////////////////////////////////////////////
       7             : //                                                           //
       8             : //   This class provides the minimum-size TOF hit info       //
       9             : //                                                           //
      10             : //   author: Roberto Preghenella (R+)                        //
      11             : //           preghenella@bo.infn.it                          //
      12             : //                                                           //
      13             : ///////////////////////////////////////////////////////////////
      14             : 
      15             : #include "TROOT.h"
      16             : 
      17             : class AliTOFHitField
      18             : {
      19             :   
      20             :  public:
      21             :   
      22             :   AliTOFHitField(); // default constructor
      23             :   virtual ~AliTOFHitField(); // default destructor
      24             :   AliTOFHitField(const AliTOFHitField &source); // copy constructor
      25             :   AliTOFHitField &operator=(const AliTOFHitField &source); // operator=
      26             : 
      27           0 :   UInt_t GetIndex() const {return fIndex;}; // get index
      28           0 :   UShort_t GetTimeBin() const {return fTimeBin;}; // get time bin
      29           0 :   UShort_t GetTOTBin() const {return fTOTBin;}; // get TOT bin
      30           0 :   UChar_t GetDeltaBC() const {return fDeltaBC;}; // get delta BC
      31           0 :   UShort_t GetL0L1Latency() const {return fL0L1Latency;}; // get L0-L1 latency
      32             : 
      33           0 :   void SetIndex(UInt_t value) {fIndex = value;}; // set index
      34           0 :   void SetTimeBin(UShort_t value) {fTimeBin = value;}; // set time bin
      35           0 :   void SetTOTBin(UShort_t value) {fTOTBin = value;}; // set TOT bin
      36           0 :   void SetDeltaBC(UChar_t value) {fDeltaBC = value;}; // set delta BC
      37           0 :   void SetL0L1Latency(UShort_t value) {fL0L1Latency = value;}; // set L0-L1 latency
      38             :   
      39             :  private:
      40             :   
      41             :   UInt_t fIndex; // channel index
      42             :   UShort_t fTimeBin; // time bin [24.4 ps]
      43             :   UShort_t fTOTBin; // TOT bin [48.8 ps]
      44             :   UChar_t fDeltaBC; // delta BC [BC bins]
      45             :   UShort_t fL0L1Latency; // L0-L1 latency [BC bins]
      46             :   
      47          26 :   ClassDef(AliTOFHitField, 1);
      48             : };
      49             : 
      50             : #endif /* ALITOFHITFIELD_H */

Generated by: LCOV version 1.11