]> git.uio.no Git - u/mrichter/AliRoot.git/blame - START/AliSTARTRecPoint.cxx
Temporary fix waiting for the real changes
[u/mrichter/AliRoot.git] / START / AliSTARTRecPoint.cxx
CommitLineData
ee74718b 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 AliSTARTRecPoint for START time and ADC signals
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// fVertex - vertex position
25//
26///////////////////////////////////////////////////////////////////////
27
28
29
30
31#include <TArrayI.h>
32#include "AliSTARTRecPoint.h"
33#include <Riostream.h>
34
35ClassImp(AliSTARTRecPoint)
36
37//------------------------------------
38 AliSTARTRecPoint::AliSTARTRecPoint() : TObject()
39{
40 //ctor
41 fTimeAverage=9999;
42 fTimeBestRight=9999;
43 fTimeBestLeft=9999;
44
45 fTime = new TArrayI(24);
46 fADC = new TArrayI(24);
47}
48//-----------------------------------
49AliSTARTRecPoint::~AliSTARTRecPoint() {
50 // destructor
51 delete fTime;
52 delete fADC;
53}
54//-----------------------------------
55void AliSTARTRecPoint::SetTime (TArrayI &o)
56{
57 ////////////////////////////////////////
58
59 Int_t i;
60 for (i=0; i<24; i++)
61 {
62 Int_t buf=o.At(i);
63 fTime->AddAt(buf,i);
64 }
65}
66//--------------------------------------------
67void AliSTARTRecPoint::GetTime (TArrayI &o)
68{
69 //
70 Int_t i;
71 for (i=0; i<24; i++)
72 {
73 o[i]=fTime->At(i);
74 }
75}
76//--------------------------------------------
77void AliSTARTRecPoint::GetADC (TArrayI &o)
78{
79 //
80 Int_t i;
81 for (i=0; i<24; i++)
82 {
83 o[i]=fADC->At(i);
84 }
85}
86//--------------------------------------------
87void AliSTARTRecPoint::SetADC (TArrayI &o)
88{
89 //
90 Int_t i;
91 // Float_t fProcessKoef=1; // for pb 0.001
92 for (i=0; i<24; i++)
93 {
94 Int_t buf=(o.At(i));
95 fADC->AddAt(buf,i);
96 }
97}