]> git.uio.no Git - u/mrichter/AliRoot.git/blob - START/AliSTARTdigit.h
Macro taken from oldmacros and fixed up a bit.
[u/mrichter/AliRoot.git] / START / AliSTARTdigit.h
1 #ifndef ALISTARTDIGIT_H
2 #define ALISTARTDIGIT_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 #include <TObject.h>
8
9 //___________________________________________
10 class AliSTARTdigit: public TObject  {
11 ////////////////////////////////////////////////////////////////////////
12  protected:
13     Int_t fTimeAverage;     // Average time
14     Int_t fTimeDiff;  // Time difference
15
16
17  public:
18     AliSTARTdigit(Int_t Timeav=999999, Int_t Timediff=999999);
19     virtual ~AliSTARTdigit() {}
20     void Set(Int_t, Int_t);
21     Int_t GetTime();
22     void Print(); 
23
24
25     ClassDef(AliSTARTdigit,1)  //Digit (Header) object for set:START
26 };
27
28 inline  AliSTARTdigit::AliSTARTdigit(Int_t Timeav, Int_t Timediff):fTimeAverage(Timeav),fTimeDiff(Timediff)
29 {
30   //
31   // Create START digit
32   //     
33 }
34 inline Int_t AliSTARTdigit::GetTime(){return fTimeDiff;}
35 inline void AliSTARTdigit::Set(Int_t Timeav, Int_t Timediff)
36   {fTimeAverage=Timeav; fTimeDiff=Timediff;}
37
38 inline void AliSTARTdigit::Print(){
39   printf("AliSTARTdigit: fTimeAverage=%d, fTimeDiff=%d\n",
40          fTimeAverage, fTimeDiff);
41 }
42
43 #endif
44
45
46