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 /////////////////////////////////////////////////////////////////////////
18 // Class AliSTARTdigit for START digits
19 // fTimeRight - right side TOF signal
20 // fTimeLeft - left side TOF signal
21 // fTimeBestRight - TOF first particle on the right side
22 // TimeBestLeft - TOF first particle on the left side
23 // fTimeAverage = (fTimeBestRight + TimeBestLeft ) /2. START signal
24 // fTimeDiff = fTimeBestRight - TimeBestLeft
26 ///////////////////////////////////////////////////////////////////////
28 #include "AliSTARTdigit.h"
31 ClassImp(AliSTARTdigit)
33 //-----------------------------------------------
34 AliSTARTdigit::AliSTARTdigit() :TObject()
39 fBestTimeRight = 99999;
40 fBestTimeLeft = 99999;
42 fTime = new TArrayI(24);
43 fADC = new TArrayI(24);
44 fTimeAmp = new TArrayI(24);
45 fADCAmp = new TArrayI(24);
48 //-----------------------------------
49 AliSTARTdigit::~AliSTARTdigit() {
56 //-----------------------------------
57 void AliSTARTdigit::SetTime (TArrayI &o)
59 ////////////////////////////////////////
60 fTime = new TArrayI(24);
69 //--------------------------------------------
70 void AliSTARTdigit::GetTime (TArrayI &o)
79 //--------------------------------------------
80 void AliSTARTdigit::GetADC (TArrayI &o)
89 //--------------------------------------------
90 void AliSTARTdigit::SetADC (TArrayI &o)
93 fADC = new TArrayI(24);
101 //-----------------------------------
102 void AliSTARTdigit::SetTimeAmp (TArrayI &o)
104 ////////////////////////////////////////
105 fTimeAmp = new TArrayI(24);
111 fTimeAmp->AddAt(buf,i);
114 //--------------------------------------------
115 void AliSTARTdigit::GetTimeAmp (TArrayI &o)
121 o[i]=fTimeAmp->At(i);
124 //--------------------------------------------
125 void AliSTARTdigit::GetADCAmp (TArrayI &o)
134 //--------------------------------------------
135 void AliSTARTdigit::SetADCAmp (TArrayI &o)
138 fADCAmp = new TArrayI(24);
143 fADCAmp->AddAt(buf,i);