]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliESDTZERO.cxx
Fix for Savannah bug report 59287
[u/mrichter/AliRoot.git] / STEER / AliESDTZERO.cxx
CommitLineData
d5ebf00e 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//-------------------------------------------------------------------------
17// Implemenation Class AliESDTZERO
18// This is a class that summarizes the TZERO data for the ESD
19// Origin: Christian Klein-Boesing, CERN, Christian.Klein-Boesing@cern.ch
20//-------------------------------------------------------------------------
21
22
23
24#include "AliESDTZERO.h"
25
26
27ClassImp(AliESDTZERO)
28
29//______________________________________________________________________________
30AliESDTZERO::AliESDTZERO() :
31 TObject(),
0f0c06de 32 fT0clock(0),
d5ebf00e 33 fT0zVertex(0),
34 fT0timeStart(0)
35{
36 for(int i = 0;i<24;i++)fT0time[i] = fT0amplitude[i] = 0;
37}
38
39AliESDTZERO::AliESDTZERO(const AliESDTZERO &tzero ) :
40 TObject(tzero),
0f0c06de 41 fT0clock(tzero.fT0clock),
d5ebf00e 42 fT0zVertex(tzero.fT0zVertex),
43 fT0timeStart(tzero.fT0timeStart)
44{
45 // copy constuctor
46 for(int i = 0;i<24;i++){
47 fT0time[i] = tzero.fT0time[i];
48 fT0amplitude[i] = tzero.fT0amplitude[i];
49 }
50}
51
52AliESDTZERO& AliESDTZERO::operator=(const AliESDTZERO& tzero){
53 // assigmnent operator
54 if(this!=&tzero) {
55 TObject::operator=(tzero);
56 fT0zVertex = tzero.fT0zVertex;
57 fT0timeStart = tzero.fT0timeStart;
58 for(int i = 0;i<24;i++){
59 fT0time[i] = tzero.fT0time[i];
60 fT0amplitude[i] = tzero.fT0amplitude[i];
61 }
62 }
63 return *this;
64}
65
732a24fe 66void AliESDTZERO::Copy(TObject &obj) const {
67
68 // this overwrites the virtual TOBject::Copy()
69 // to allow run time copying without casting
70 // in AliESDEvent
71
72 if(this==&obj)return;
73 AliESDTZERO *robj = dynamic_cast<AliESDTZERO*>(&obj);
74 if(!robj)return; // not an AliESDTZERO
75 *robj = *this;
76
77}
78
79
d5ebf00e 80//______________________________________________________________________________
81void AliESDTZERO::Reset()
82{
83 // reset contents
84 fT0zVertex = 0;
85 fT0timeStart = 0;
86 for(int i = 0;i<24;i++)fT0time[i] = fT0amplitude[i] = 0;
87}
88
89//______________________________________________________________________________
90void AliESDTZERO::Print(const Option_t *) const
91{
92 // does noting fornow
93}