]>
Commit | Line | Data |
---|---|---|
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 | ||
27 | ClassImp(AliESDTZERO) | |
28 | ||
29 | //______________________________________________________________________________ | |
30 | AliESDTZERO::AliESDTZERO() : | |
31 | TObject(), | |
32 | fT0zVertex(0), | |
33 | fT0timeStart(0) | |
34 | { | |
35 | for(int i = 0;i<24;i++)fT0time[i] = fT0amplitude[i] = 0; | |
36 | } | |
37 | ||
38 | AliESDTZERO::AliESDTZERO(const AliESDTZERO &tzero ) : | |
39 | TObject(tzero), | |
40 | fT0zVertex(tzero.fT0zVertex), | |
41 | fT0timeStart(tzero.fT0timeStart) | |
42 | { | |
43 | // copy constuctor | |
44 | for(int i = 0;i<24;i++){ | |
45 | fT0time[i] = tzero.fT0time[i]; | |
46 | fT0amplitude[i] = tzero.fT0amplitude[i]; | |
47 | } | |
48 | } | |
49 | ||
50 | AliESDTZERO& AliESDTZERO::operator=(const AliESDTZERO& tzero){ | |
51 | // assigmnent operator | |
52 | if(this!=&tzero) { | |
53 | TObject::operator=(tzero); | |
54 | fT0zVertex = tzero.fT0zVertex; | |
55 | fT0timeStart = tzero.fT0timeStart; | |
56 | for(int i = 0;i<24;i++){ | |
57 | fT0time[i] = tzero.fT0time[i]; | |
58 | fT0amplitude[i] = tzero.fT0amplitude[i]; | |
59 | } | |
60 | } | |
61 | return *this; | |
62 | } | |
63 | ||
64 | void AliESDTZERO::Copy(TObject &obj) const { | |
65 | ||
66 | // this overwrites the virtual TOBject::Copy() | |
67 | // to allow run time copying without casting | |
68 | // in AliESDEvent | |
69 | ||
70 | if(this==&obj)return; | |
71 | AliESDTZERO *robj = dynamic_cast<AliESDTZERO*>(&obj); | |
72 | if(!robj)return; // not an AliESDTZERO | |
73 | *robj = *this; | |
74 | ||
75 | } | |
76 | ||
77 | ||
78 | //______________________________________________________________________________ | |
79 | void AliESDTZERO::Reset() | |
80 | { | |
81 | // reset contents | |
82 | fT0zVertex = 0; | |
83 | fT0timeStart = 0; | |
84 | for(int i = 0;i<24;i++)fT0time[i] = fT0amplitude[i] = 0; | |
85 | } | |
86 | ||
87 | //______________________________________________________________________________ | |
88 | void AliESDTZERO::Print(const Option_t *) const | |
89 | { | |
90 | // does noting fornow | |
91 | } |