Bug fixes and code cleaning
[u/mrichter/AliRoot.git] / START / AliSTARTdigit.h
CommitLineData
ef51244a 1#ifndef ALISTARTDIGIT_H
2#define ALISTARTDIGIT_H
971579f6 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
c345bb4f 7#include <TObject.h>
528332ba 8
971579f6 9//___________________________________________
c345bb4f 10class AliSTARTdigit: public TObject {
971579f6 11////////////////////////////////////////////////////////////////////////
ef51244a 12 protected:
13 Int_t fTimeAverage; // Average time
14 Int_t fTimeDiff; // Time difference
971579f6 15
c345bb4f 16
971579f6 17 public:
528332ba 18 AliSTARTdigit(Int_t Timeav=999999, Int_t Timediff=999999);
971579f6 19 virtual ~AliSTARTdigit() {}
c345bb4f 20 void Set(Int_t, Int_t);
ef51244a 21 Int_t GetTime();
c345bb4f 22 void MyDump();
971579f6 23
c345bb4f 24
25 ClassDef(AliSTARTdigit,1) //Digit (Header) object for set:START
971579f6 26};
c345bb4f 27
528332ba 28inline AliSTARTdigit::AliSTARTdigit(Int_t Timeav, Int_t Timediff):fTimeAverage(Timeav),fTimeDiff(Timediff)
29{
30 //
31 // Create START digit
32 //
33}
ef51244a 34inline Int_t AliSTARTdigit::GetTime(){return fTimeDiff;}
c345bb4f 35inline void AliSTARTdigit::Set(Int_t Timeav, Int_t Timediff)
ef51244a 36 {fTimeAverage=Timeav; fTimeDiff=Timediff;}
c345bb4f 37
38inline void AliSTARTdigit::MyDump(){
ef51244a 39 printf("AliSTARTdigit: fTimeAverage=%d, fTimeDiff=%d\n",
40 fTimeAverage, fTimeDiff);
c345bb4f 41}
42
971579f6 43#endif
c345bb4f 44
45
46