]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/AliTRDdigit.h
Add MEVSIM and TMEVSIM
[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
6f1e466d 10//_____________________________________________________________________________
11class AliTRDdigit : public AliDigitNew {
12
13 public:
14
15 AliTRDdigit();
9d0b222b 16 AliTRDdigit(Bool_t isRaw, Int_t *digits, Int_t *amp);
8230f242 17 virtual ~AliTRDdigit();
6f1e466d 18
793ff80c 19 static UInt_t RawDigit() { return fgkRawDigit; };
20
21 Int_t GetAmp() const { if (TestBit(fgkRawDigit))
22 return DecodeAmp();
23 else
24 return fAmp; };
25 Int_t GetDetector() const { return fId; };
26 Int_t GetRow() const { return fRow; };
27 Int_t GetCol() const { return fCol; };
28 Int_t GetTime() const { return fTime; };
6f1e466d 29
793ff80c 30 virtual Int_t DecodeAmp() const;
6f1e466d 31
32 protected:
33
793ff80c 34 static const UInt_t fgkRawDigit; // Marks a raw digit
35
36 UShort_t fRow; // Pad row number
37 UShort_t fCol; // Pad col number
38 UShort_t fTime; // Time bucket
6f1e466d 39
793ff80c 40 ClassDef(AliTRDdigit,2) // Digit for the TRD
6f1e466d 41
42};
43
44#endif