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 **************************************************************************/
17 Revision 1.4 2000/10/13 13:14:08 hristov
18 Bug fixes and code cleaning
20 Revision 1.3 2000/07/13 16:41:29 fca
21 New START corrected for coding conventions
23 Revision 1.2 2000/03/24 17:40:35 alla
29 #include "AliSTARTdigit.h"
32 ClassImp(AliSTARTdigit)
34 //------------------------------------
35 AliSTARTdigit::AliSTARTdigit() : TObject()
42 fTimeRight = new TArrayI(12);
43 fTimeLeft = new TArrayI(12);
44 fADCRight = new TArrayI(12);
45 fADCLeft = new TArrayI(12);
47 //-----------------------------------
48 void AliSTARTdigit::SetTimeRight (TArrayI &o)
50 fTimeRight = new TArrayI(12);
56 fTimeRight->AddAt(buf,i);
59 //--------------------------------------------
60 void AliSTARTdigit::SetTimeLeft (TArrayI &o)
63 fTimeLeft = new TArrayI(12);
68 fTimeLeft->AddAt(buf,i);
71 //--------------------------------------------
72 void AliSTARTdigit::GetTimeLeft (TArrayI &o)
78 o[i]=fTimeLeft->At(i);
81 //--------------------------------------------
82 void AliSTARTdigit::GetTimeRight (TArrayI &o)
88 o[i]=fTimeRight->At(i);
91 //--------------------------------------------
92 void AliSTARTdigit::GetADCLeft (TArrayI &o)
101 //--------------------------------------------
102 void AliSTARTdigit::GetADCRight (TArrayI &o)
108 o[i]=fADCRight->At(i);
111 //--------------------------------------------
112 void AliSTARTdigit::SetADCLeft (TArrayI &o)
115 fADCLeft = new TArrayI(12);
117 // Float_t fProcessKoef=1; // for pb 0.001
121 fADCLeft->AddAt(buf,i);
124 //--------------------------------------------
125 void AliSTARTdigit::SetADCRight (TArrayI &o)
128 // Float_t fProcessKoef=1; // for pb 0.001
129 fADCRight = new TArrayI(12);
134 fADCRight->AddAt(buf,i);
137 //------------------------------------------------------
138 void AliSTARTdigit::Print()
140 printf("AliSTARTdigit: fTimeAverage=%d, fTimeDiff=%d\n",
141 fTimeAverage, fTimeDiff);
142 cout<<" BestTimeRigh "<<fTimeBestRight<<
143 " TimeBestLeft "<<fTimeBestLeft<<endl;