1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
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 //-------------------------------------------------------------------------
24 #include "AliESDFIT.h"
30 //______________________________________________________________________________
31 AliESDFIT::AliESDFIT() :
36 for(int i=0; i<3; i++) {
40 for(int i=0; i<160; i++) {
47 //______________________________________________________________________________
48 AliESDFIT::AliESDFIT(const AliESDFIT &tzero ) :
50 fFITzVertex(tzero.fFITzVertex)
53 for(int i=0; i<3; i++) {
54 fT0[i] = tzero.fT0[i];
55 fT0best[i] = tzero.fT0best[i];
57 for(int i=0; i<160; i++) {
62 //______________________________________________________________________________
63 AliESDFIT& AliESDFIT::operator=(const AliESDFIT& tzero){
64 // assigmnent operator
66 TObject::operator=(tzero);
67 fFITzVertex = tzero.fFITzVertex;
68 for(int i=0; i<3; i++) {
69 fT0[i] = tzero.fT0[i];
70 fT0best[i] = tzero.fT0best[i];
73 for(int i=0; i<160; i++){
74 fFITtime[i] = tzero.fFITtime[i];
75 fFITamplitude[i] = tzero.fFITamplitude[i];
81 //______________________________________________________________________________
82 void AliESDFIT::Copy(TObject &obj) const {
84 // this overwrites the virtual TOBject::Copy()
85 // to allow run time copying without casting
89 AliESDFIT *robj = dynamic_cast<AliESDFIT*>(&obj);
90 if(!robj)return; // not an AliESDFIT
96 //______________________________________________________________________________
97 void AliESDFIT::Reset()
101 for(int i=0; i<160; i++) {
102 fFITtime[i] = fFITamplitude[i] = 0;
104 for(int i=0; i<3 ;i++) {
110 //______________________________________________________________________________
111 void AliESDFIT::Print(const Option_t *) const
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]));