]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TOF/AliTOFHitField.h
Fix for coverity
[u/mrichter/AliRoot.git] / TOF / AliTOFHitField.h
CommitLineData
104ba366 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
17class 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 UInt_t GetIndex() const {return fIndex;}; // get index
28 UShort_t GetTimeBin() const {return fTimeBin;}; // get time bin
29 UShort_t GetTOTBin() const {return fTOTBin;}; // get TOT bin
30 UChar_t GetDeltaBC() const {return fDeltaBC;}; // get delta BC
31 UShort_t GetL0L1Latency() const {return fL0L1Latency;}; // get L0-L1 latency
32
33 void SetIndex(UInt_t value) {fIndex = value;}; // set index
34 void SetTimeBin(UShort_t value) {fTimeBin = value;}; // set time bin
35 void SetTOTBin(UShort_t value) {fTOTBin = value;}; // set TOT bin
36 void SetDeltaBC(UChar_t value) {fDeltaBC = value;}; // set delta BC
37 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 ClassDef(AliTOFHitField, 1);
48};
49
50#endif /* ALITOFHITFIELD_H */