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 AliT0digit for T0 digits
19 // fTimeA - right side TOF signal
20 // fTimeC - left side TOF signal
21 // fTimeBestA - TOF first particle on the right side
22 // TimeBestC - TOF first particle on the left side
23 // fTimeAverage = (fTimeBestA + TimeBestC ) /2. T0 signal
24 // fTimeDiff = fTimeBestA - TimeBestC
26 ///////////////////////////////////////////////////////////////////////
28 #include "AliT0digit.h"
33 //-----------------------------------------------
34 AliT0digit::AliT0digit() :TObject(),
35 fTimeCFD(new TArrayI(24)),
36 fQT0( new TArrayI(24)),
37 fTimeLED( new TArrayI(24)),
38 fQT1( new TArrayI(24)),
50 //_____________________________________________________________________________
52 AliT0digit::~AliT0digit() {
59 //-----------------------------------
60 void AliT0digit::SetTimeCFD (TArrayI &o)
62 ////////////////////////////////////////
63 if(fTimeCFD)delete fTimeCFD;
64 fTimeCFD = new TArrayI(24);
70 fTimeCFD->AddAt(buf,i);
73 //--------------------------------------------
74 void AliT0digit::GetTimeCFD (TArrayI &o)
83 //--------------------------------------------
84 void AliT0digit::GetQT0 (TArrayI &o)
93 //--------------------------------------------
94 void AliT0digit::SetQT0 (TArrayI &o)
98 fQT0 = new TArrayI(24);
106 //-----------------------------------
107 void AliT0digit::SetTimeLED (TArrayI &o)
109 ////////////////////////////////////////
110 if(fTimeLED)delete fTimeLED;
111 fTimeLED = new TArrayI(24);
117 fTimeLED->AddAt(buf,i);
120 //--------------------------------------------
121 void AliT0digit::GetTimeLED (TArrayI &o)
127 o[i]=fTimeLED->At(i);
130 //--------------------------------------------
131 void AliT0digit::GetQT1 (TArrayI &o)
140 //--------------------------------------------
141 void AliT0digit::SetQT1 (TArrayI &o)
145 fQT1 = new TArrayI(24);