]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/ESD/AliESDFIT.cxx
Fixing a bug in one hit entry
[u/mrichter/AliRoot.git] / STEER / ESD / AliESDFIT.cxx
CommitLineData
c1c44db3 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 AliESDFIT
18// This is a class that summarizes the FIT data for the ESD
19// Origin: Alla Maevskaya Alla.Maevskaya@cern.ch
20//-------------------------------------------------------------------------
21
22
23
24#include "AliESDFIT.h"
25#include "AliLog.h"
26
27
28ClassImp(AliESDFIT)
29
30//______________________________________________________________________________
31AliESDFIT::AliESDFIT() :
32 TObject(),
33 fFITzVertex(0)
34{
c1c44db3 35
75b7ee5e 36 for(int i=0; i<3; i++) {
c1c44db3 37 fT0[i] = -99999;
38 fT0best[i] = -99999;
39 }
75b7ee5e 40 for(int i=0; i<160; i++) {
41 fFITtime[i] = -99999;
42 fFITamplitude[i] = 0;
43 }
44
45
c1c44db3 46}
47//______________________________________________________________________________
48AliESDFIT::AliESDFIT(const AliESDFIT &tzero ) :
49 TObject(tzero),
50 fFITzVertex(tzero.fFITzVertex)
51 {
52 // copy constuctor
75b7ee5e 53 for(int i=0; i<3; i++) {
c1c44db3 54 fT0[i] = tzero.fT0[i];
55 fT0best[i] = tzero.fT0best[i];
56 }
75b7ee5e 57 for(int i=0; i<160; i++) {
58 fFITtime[i] = -99999;
59 fFITamplitude[i] = 0;
60 }
61 }
c1c44db3 62//______________________________________________________________________________
63AliESDFIT& AliESDFIT::operator=(const AliESDFIT& tzero){
64 // assigmnent operator
65 if(this!=&tzero) {
66 TObject::operator=(tzero);
67 fFITzVertex = tzero.fFITzVertex;
75b7ee5e 68 for(int i=0; i<3; i++) {
c1c44db3 69 fT0[i] = tzero.fT0[i];
70 fT0best[i] = tzero.fT0best[i];
71 }
72
73 for(int i=0; i<160; i++){
74 fFITtime[i] = tzero.fFITtime[i];
75 fFITamplitude[i] = tzero.fFITamplitude[i];
76 }
77 }
78
79 return *this;
80}
81//______________________________________________________________________________
82void AliESDFIT::Copy(TObject &obj) const {
83
84 // this overwrites the virtual TOBject::Copy()
85 // to allow run time copying without casting
86 // in AliESDEvent
87
88 if(this==&obj)return;
89 AliESDFIT *robj = dynamic_cast<AliESDFIT*>(&obj);
90 if(!robj)return; // not an AliESDFIT
91 *robj = *this;
92
93}
94
95
96//______________________________________________________________________________
97void AliESDFIT::Reset()
98{
99 // reset contents
100 fFITzVertex = -9999;
101 for(int i=0; i<160; i++) {
102 fFITtime[i] = fFITamplitude[i] = 0;
103 }
75b7ee5e 104 for(int i=0; i<3 ;i++) {
c1c44db3 105 fT0[i] = -9999;
106 fT0best[i] = -9999;
107 }
108}
109
110//______________________________________________________________________________
111void AliESDFIT::Print(const Option_t *) const
112{
113 // does noting fornow
114 AliInfo(Form(" Vertex %f T0signal %f ns OrA %f ns OrC %f \n",fFITzVertex, fT0[0],fT0[1],fT0[2]));
115
116}