Changed timebin 0 to be the one closest to the readout
[u/mrichter/AliRoot.git] / TRD / AliTRDdigit.h
CommitLineData
8230f242 1#ifndef ALITRDDIGIT_H
2#define ALITRDDIGIT_H
6f1e466d 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id: AliTRDdigit.h,v */
7
8#include "AliDigitNew.h"
9
10const UInt_t kRawDigit = 0x00000001;
11
12//_____________________________________________________________________________
13class AliTRDdigit : public AliDigitNew {
14
15 public:
16
17 AliTRDdigit();
9d0b222b 18 AliTRDdigit(Bool_t isRaw, Int_t *digits, Int_t *amp);
8230f242 19 virtual ~AliTRDdigit();
6f1e466d 20
9d0b222b 21 Int_t GetAmp() const { if (TestBit(kRawDigit))
22 return DecodeAmp();
23 else
24 return fAmp; };
25 Int_t GetDetector() { return fId; };
26 Int_t GetRow() { return fRow; };
27 Int_t GetCol() { return fCol; };
28 Int_t GetTime() { return fTime; };
6f1e466d 29
9d0b222b 30 Int_t DecodeAmp() const { return 0; };
6f1e466d 31
32 protected:
33
8230f242 34 Int_t fRow; // Pad row number
35 Int_t fCol; // Pad col number
36 Int_t fTime; // Time bucket
6f1e466d 37
8230f242 38 ClassDef(AliTRDdigit,1) // Digit for the TRD
6f1e466d 39
40};
41
42#endif