AliRoot Core  3dc7879 (3dc7879)
AliDigit.h
Go to the documentation of this file.
1 #ifndef ALIDIGIT_H
2 #define ALIDIGIT_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
6 /* $Id$ */
7 
9 // Base class for Alice Digits //
11 
12 #include <assert.h>
13 #include "TObject.h"
14 
15 class AliDigit : public TObject {
16 public:
17  AliDigit();
18  AliDigit(Int_t *track);
19  virtual ~AliDigit() {}
20  virtual Int_t *GetTracks() {return fTracks;}
21  virtual Int_t GetTrack(Int_t i) const
22  {assert(0<=i&&i<=2); return fTracks[i];}
23 
24 protected:
25  Int_t fTracks[3]; //tracks number making this digit (up to 3)
26 
27  ClassDef(AliDigit,1) //Base class for all Alice digits
28 };
29 #endif
virtual ~AliDigit()
Definition: AliDigit.h:19
virtual Int_t * GetTracks()
Definition: AliDigit.h:20
AliTPCfastTrack * track
virtual Int_t GetTrack(Int_t i) const
Definition: AliDigit.h:21
AliDigit()
Definition: AliDigit.cxx:28
Int_t fTracks[3]
Definition: AliDigit.h:25