1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
19 #include "AliSTARTdigit.h"
20 #include <Riostream.h>
22 ClassImp(AliSTARTdigit)
24 //------------------------------------
25 AliSTARTdigit::AliSTARTdigit() : TObject()
32 fTimeRight = new TArrayI(12);
33 fTimeLeft = new TArrayI(12);
34 fADCRight = new TArrayI(12);
35 fADCLeft = new TArrayI(12);
37 //-----------------------------------
38 void AliSTARTdigit::SetTimeRight (TArrayI &o)
40 fTimeRight = new TArrayI(12);
46 fTimeRight->AddAt(buf,i);
49 //--------------------------------------------
50 void AliSTARTdigit::SetTimeLeft (TArrayI &o)
53 fTimeLeft = new TArrayI(12);
58 fTimeLeft->AddAt(buf,i);
61 //--------------------------------------------
62 void AliSTARTdigit::GetTimeLeft (TArrayI &o)
68 o[i]=fTimeLeft->At(i);
71 //--------------------------------------------
72 void AliSTARTdigit::GetTimeRight (TArrayI &o)
78 o[i]=fTimeRight->At(i);
81 //--------------------------------------------
82 void AliSTARTdigit::GetADCLeft (TArrayI &o)
91 //--------------------------------------------
92 void AliSTARTdigit::GetADCRight (TArrayI &o)
98 o[i]=fADCRight->At(i);
101 //--------------------------------------------
102 void AliSTARTdigit::SetADCLeft (TArrayI &o)
105 fADCLeft = new TArrayI(12);
107 // Float_t fProcessKoef=1; // for pb 0.001
111 fADCLeft->AddAt(buf,i);
114 //--------------------------------------------
115 void AliSTARTdigit::SetADCRight (TArrayI &o)
118 // Float_t fProcessKoef=1; // for pb 0.001
119 fADCRight = new TArrayI(12);
124 fADCRight->AddAt(buf,i);
127 //------------------------------------------------------
128 void AliSTARTdigit::Print()
130 printf("AliSTARTdigit: fTimeAverage=%d, fTimeDiff=%d\n",
131 fTimeAverage, fTimeDiff);
132 cout<<" BestTimeRigh "<<fTimeBestRight<<
133 " TimeBestLeft "<<fTimeBestLeft<<endl;