]> git.uio.no Git - u/mrichter/AliRoot.git/blame - T0/AliT0digit.cxx
Removing MC position of the primary vertex (Jouri)
[u/mrichter/AliRoot.git] / T0 / AliT0digit.cxx
CommitLineData
dc7ca31d 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
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 **************************************************************************/
15
16/* $Id$ */
17/////////////////////////////////////////////////////////////////////////
18// Class AliT0digit for T0 digits
c41ceaac 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
dc7ca31d 25//
26///////////////////////////////////////////////////////////////////////
27
28#include "AliT0digit.h"
29#include "TArrayI.h"
30
31ClassImp(AliT0digit)
32
33//-----------------------------------------------
c41ceaac 34 AliT0digit::AliT0digit() :TObject(),
35 fTimeCFD(new TArrayI(24)),
36 fQT0( new TArrayI(24)),
37 fTimeLED( new TArrayI(24)),
38 fQT1( new TArrayI(24)),
39 fTimeAverage(99999),
40 fTimeDiff(99999),
41 fBestTimeA(99999),
42 fBestTimeC (99999),
43 fSumMult(0)
dc7ca31d 44
c41ceaac 45{
46 //
dc7ca31d 47}
48
c41ceaac 49//_____________________________________________________________________________
50
dc7ca31d 51AliT0digit::~AliT0digit() {
52 // destructor
c41ceaac 53 delete fTimeCFD;
54 delete fQT0;
55 delete fTimeLED;
56 delete fQT1;
dc7ca31d 57}
58//-----------------------------------
c41ceaac 59void AliT0digit::SetTimeCFD (TArrayI &o)
dc7ca31d 60{
61 ////////////////////////////////////////
c41ceaac 62 fTimeCFD = new TArrayI(24);
dc7ca31d 63
64 Int_t i;
65 for (i=0; i<24; i++)
66 {
67 Int_t buf=o.At(i);
c41ceaac 68 fTimeCFD->AddAt(buf,i);
dc7ca31d 69 }
70}
71//--------------------------------------------
c41ceaac 72void AliT0digit::GetTimeCFD (TArrayI &o)
dc7ca31d 73{
74 //
75 Int_t i;
76 for (i=0; i<24; i++)
77 {
c41ceaac 78 o[i]=fTimeCFD->At(i);
dc7ca31d 79 }
80}
81//--------------------------------------------
c41ceaac 82void AliT0digit::GetQT0 (TArrayI &o)
dc7ca31d 83{
84 //
85 Int_t i;
86 for (i=0; i<24; i++)
87 {
c41ceaac 88 o[i]=fQT0->At(i);
dc7ca31d 89 }
90}
91//--------------------------------------------
c41ceaac 92void AliT0digit::SetQT0 (TArrayI &o)
dc7ca31d 93{
94 //
c41ceaac 95 fQT0 = new TArrayI(24);
dc7ca31d 96 Int_t i;
97 for (i=0; i<24; i++)
98 {
99 Int_t buf=(o.At(i));
c41ceaac 100 fQT0->AddAt(buf,i);
dc7ca31d 101 }
102}
103//-----------------------------------
c41ceaac 104void AliT0digit::SetTimeLED (TArrayI &o)
dc7ca31d 105{
106 ////////////////////////////////////////
c41ceaac 107 fTimeLED = new TArrayI(24);
dc7ca31d 108
109 Int_t i;
110 for (i=0; i<24; i++)
111 {
112 Int_t buf=o.At(i);
c41ceaac 113 fTimeLED->AddAt(buf,i);
dc7ca31d 114 }
115}
116//--------------------------------------------
c41ceaac 117void AliT0digit::GetTimeLED (TArrayI &o)
dc7ca31d 118{
119 //
120 Int_t i;
121 for (i=0; i<24; i++)
122 {
c41ceaac 123 o[i]=fTimeLED->At(i);
dc7ca31d 124 }
125}
126//--------------------------------------------
c41ceaac 127void AliT0digit::GetQT1 (TArrayI &o)
dc7ca31d 128{
129 //
130 Int_t i;
131 for (i=0; i<24; i++)
132 {
c41ceaac 133 o[i]=fQT1->At(i);
dc7ca31d 134 }
135}
136//--------------------------------------------
c41ceaac 137void AliT0digit::SetQT1 (TArrayI &o)
dc7ca31d 138{
139 //
c41ceaac 140 fQT1 = new TArrayI(24);
dc7ca31d 141 Int_t i;
142 for (i=0; i<24; i++)
143 {
144 Int_t buf=(o.At(i));
c41ceaac 145 fQT1->AddAt(buf,i);
dc7ca31d 146 }
147}