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.12.1 2002/07/24 09:50:10 alibrary
20 Revision 1.5 2002/07/23 11:48:05 alla
23 Revision 1.4 2000/10/13 13:14:08 hristov
24 Bug fixes and code cleaning
26 Revision 1.3 2000/07/13 16:41:29 fca
27 New START corrected for coding conventions
29 Revision 1.2 2000/03/24 17:40:35 alla
35 #include "AliSTARTdigit.h"
38 ClassImp(AliSTARTdigit)
40 //------------------------------------
41 AliSTARTdigit::AliSTARTdigit() : TObject()
48 fTimeRight = new TArrayI(12);
49 fTimeLeft = new TArrayI(12);
50 fADCRight = new TArrayI(12);
51 fADCLeft = new TArrayI(12);
53 //-----------------------------------
54 void AliSTARTdigit::SetTimeRight (TArrayI &o)
56 fTimeRight = new TArrayI(12);
62 fTimeRight->AddAt(buf,i);
65 //--------------------------------------------
66 void AliSTARTdigit::SetTimeLeft (TArrayI &o)
69 fTimeLeft = new TArrayI(12);
74 fTimeLeft->AddAt(buf,i);
77 //--------------------------------------------
78 void AliSTARTdigit::GetTimeLeft (TArrayI &o)
84 o[i]=fTimeLeft->At(i);
87 //--------------------------------------------
88 void AliSTARTdigit::GetTimeRight (TArrayI &o)
94 o[i]=fTimeRight->At(i);
97 //--------------------------------------------
98 void AliSTARTdigit::GetADCLeft (TArrayI &o)
104 o[i]=fADCLeft->At(i);
107 //--------------------------------------------
108 void AliSTARTdigit::GetADCRight (TArrayI &o)
114 o[i]=fADCRight->At(i);
117 //--------------------------------------------
118 void AliSTARTdigit::SetADCLeft (TArrayI &o)
121 fADCLeft = new TArrayI(12);
123 // Float_t fProcessKoef=1; // for pb 0.001
127 fADCLeft->AddAt(buf,i);
130 //--------------------------------------------
131 void AliSTARTdigit::SetADCRight (TArrayI &o)
134 // Float_t fProcessKoef=1; // for pb 0.001
135 fADCRight = new TArrayI(12);
140 fADCRight->AddAt(buf,i);
143 //------------------------------------------------------
144 void AliSTARTdigit::Print()
146 printf("AliSTARTdigit: fTimeAverage=%d, fTimeDiff=%d\n",
147 fTimeAverage, fTimeDiff);
148 cout<<" BestTimeRigh "<<fTimeBestRight<<
149 " TimeBestLeft "<<fTimeBestLeft<<endl;