some coverity fixes
[u/mrichter/AliRoot.git] / TOF / AliTOFTDCHit.h
CommitLineData
5b4ed716 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
20class 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 UInt_t GetHitTime() const {return fHitTime;}; //get hit time
32 UShort_t GetTOTWidth() const {return fTOTWidth;}; //get TOT width
33 UShort_t GetChan() const {return fChan;}; //get channel
34 UShort_t GetTDCID() const {return fTDCID;}; //get TDC ID
35 UShort_t GetEBit() const {return fEBit;}; //get E bit
36 UShort_t GetPSBits() const {return fPSBits;}; //get PS bits
37 /* setters */
38 void SetHitTime(UInt_t HitTime) {fHitTime = HitTime;}; //set hit time
39 void SetTOTWidth(UShort_t TOTWidth) {fTOTWidth = TOTWidth;}; //set TOT width
40 void SetChan(UShort_t Chan) {fChan = Chan;}; //set channel
41 void SetTDCID(UShort_t TDCID) {fTDCID = TDCID;}; //set TDC ID
42 void SetEBit(UShort_t EBit) {fEBit = EBit;};
43 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 ClassDef(AliTOFTDCHit, 1);
53};
54
55#endif /* ALITOFTDCHIT_H */