]> git.uio.no Git - u/mrichter/AliRoot.git/blob - T0/AliT0RecPoint.cxx
First big commit of the mchview program and its accompanying library,
[u/mrichter/AliRoot.git] / T0 / AliT0RecPoint.cxx
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 AliT0RecPoint for T0 time and ADC signals
19 //  fTimeA  - A side TOF signal
20 //  fTimeC  - C side TOF signal
21 //  fTimeBestA - TOF first particle on the A side
22 //  TimeBestC - TOF first particle on the C side
23 //  fTimeAverage = (fTimeBestA + TimeBestLeft ) /2. T0 signal
24 //  fVertex - vertex position 
25 //
26 ///////////////////////////////////////////////////////////////////////
27
28
29
30  
31 #include "AliT0RecPoint.h"
32
33
34 ClassImp(AliT0RecPoint)
35
36 //------------------------------------
37   AliT0RecPoint::AliT0RecPoint() : TObject(),
38                                    fTimeAverage(0),
39                                    fVertexPosition(0),
40                                    fTimeBestA(0),fTimeBestC(0),
41                                    fMultC(0),fMultA(0)
42 {
43   //ctor
44   fTimeAverage=99999;
45   fTimeBestA=99999;
46   fTimeBestC=99999;
47   fVertexPosition=99999;
48   fMultA=0;
49   fMultC=0;
50   for (Int_t i=0; i<24; i++) { fTime[i]=0; fADC[i]=0; fADCLED[i]=0;}
51 }
52 //_____________________________________________________________________________
53
54 AliT0RecPoint::AliT0RecPoint(const AliT0RecPoint &r):TObject(),
55
56                                    fTimeAverage(0),
57                                    fVertexPosition(0),
58                                    fTimeBestA(0),fTimeBestC(0),
59                                    fMultC(0),fMultA(0)
60 {
61   //
62   // AliT0RecPoint copy constructor
63   //
64
65   ((AliT0RecPoint &) r).Copy(*this);
66
67 }