]> git.uio.no Git - u/mrichter/AliRoot.git/blob - START/AliSTARTdigit.h
New START corrected for coding conventions
[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 #include "AliSTART.h"
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();
19     AliSTARTdigit(Int_t , Int_t );
20     virtual ~AliSTARTdigit() {}
21     void Set(Int_t, Int_t);
22     Int_t GetTime();
23     void MyDump(); 
24
25
26     ClassDef(AliSTARTdigit,1)  //Digit (Header) object for set:START
27 };
28
29 inline AliSTARTdigit::AliSTARTdigit(){fTimeAverage=999999;fTimeDiff=999999;}
30 inline Int_t AliSTARTdigit::GetTime(){return fTimeDiff;}
31 inline void AliSTARTdigit::Set(Int_t Timeav, Int_t Timediff)
32   {fTimeAverage=Timeav; fTimeDiff=Timediff;}
33
34 inline void AliSTARTdigit::MyDump(){
35   printf("AliSTARTdigit: fTimeAverage=%d, fTimeDiff=%d\n",
36          fTimeAverage, fTimeDiff);
37 }
38
39 #endif
40
41
42