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.6 2002/10/14 14:57:32 hristov
18 Merging the VirtualMC branch to the main development branch (HEAD)
20 Revision 1.4.12.1 2002/07/24 09:50:10 alibrary
23 Revision 1.5 2002/07/23 11:48:05 alla
26 Revision 1.4 2000/10/13 13:14:08 hristov
27 Bug fixes and code cleaning
29 Revision 1.3 2000/07/13 16:41:29 fca
30 New START corrected for coding conventions
32 Revision 1.2 2000/03/24 17:40:35 alla
38 #include "AliSTARTdigit.h"
39 #include <Riostream.h>
41 ClassImp(AliSTARTdigit)
43 //------------------------------------
44 AliSTARTdigit::AliSTARTdigit() : TObject()
51 fTimeRight = new TArrayI(12);
52 fTimeLeft = new TArrayI(12);
53 fADCRight = new TArrayI(12);
54 fADCLeft = new TArrayI(12);
56 //-----------------------------------
57 void AliSTARTdigit::SetTimeRight (TArrayI &o)
59 fTimeRight = new TArrayI(12);
65 fTimeRight->AddAt(buf,i);
68 //--------------------------------------------
69 void AliSTARTdigit::SetTimeLeft (TArrayI &o)
72 fTimeLeft = new TArrayI(12);
77 fTimeLeft->AddAt(buf,i);
80 //--------------------------------------------
81 void AliSTARTdigit::GetTimeLeft (TArrayI &o)
87 o[i]=fTimeLeft->At(i);
90 //--------------------------------------------
91 void AliSTARTdigit::GetTimeRight (TArrayI &o)
97 o[i]=fTimeRight->At(i);
100 //--------------------------------------------
101 void AliSTARTdigit::GetADCLeft (TArrayI &o)
107 o[i]=fADCLeft->At(i);
110 //--------------------------------------------
111 void AliSTARTdigit::GetADCRight (TArrayI &o)
117 o[i]=fADCRight->At(i);
120 //--------------------------------------------
121 void AliSTARTdigit::SetADCLeft (TArrayI &o)
124 fADCLeft = new TArrayI(12);
126 // Float_t fProcessKoef=1; // for pb 0.001
130 fADCLeft->AddAt(buf,i);
133 //--------------------------------------------
134 void AliSTARTdigit::SetADCRight (TArrayI &o)
137 // Float_t fProcessKoef=1; // for pb 0.001
138 fADCRight = new TArrayI(12);
143 fADCRight->AddAt(buf,i);
146 //------------------------------------------------------
147 void AliSTARTdigit::Print()
149 printf("AliSTARTdigit: fTimeAverage=%d, fTimeDiff=%d\n",
150 fTimeAverage, fTimeDiff);
151 cout<<" BestTimeRigh "<<fTimeBestRight<<
152 " TimeBestLeft "<<fTimeBestLeft<<endl;