Line data Source code
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 :
28 172 : ClassImp(AliESDFIT)
29 :
30 : //______________________________________________________________________________
31 : AliESDFIT::AliESDFIT() :
32 12 : TObject(),
33 12 : fFITzVertex(0)
34 60 : {
35 :
36 96 : for(int i=0; i<3; i++) {
37 36 : fT0[i] = -99999;
38 36 : fT0best[i] = -99999;
39 : }
40 5784 : for(int i=0; i<240; i++) {
41 2880 : fFITtime[i] = -99999;
42 2880 : fFITamplitude[i] = 0;
43 : }
44 :
45 :
46 24 : }
47 : //______________________________________________________________________________
48 : AliESDFIT::AliESDFIT(const AliESDFIT &tzero ) :
49 0 : TObject(tzero),
50 0 : fFITzVertex(tzero.fFITzVertex)
51 0 : {
52 : // copy constuctor
53 0 : for(int i=0; i<3; i++) {
54 0 : fT0[i] = tzero.fT0[i];
55 0 : fT0best[i] = tzero.fT0best[i];
56 : }
57 0 : for(int i=0; i<240; i++) {
58 0 : fFITtime[i] = -99999;
59 0 : fFITamplitude[i] = 0;
60 : }
61 0 : }
62 : //______________________________________________________________________________
63 : AliESDFIT& AliESDFIT::operator=(const AliESDFIT& tzero){
64 : // assigmnent operator
65 0 : if(this!=&tzero) {
66 0 : TObject::operator=(tzero);
67 0 : fFITzVertex = tzero.fFITzVertex;
68 0 : for(int i=0; i<3; i++) {
69 0 : fT0[i] = tzero.fT0[i];
70 0 : fT0best[i] = tzero.fT0best[i];
71 : }
72 :
73 0 : for(int i=0; i<240; i++){
74 0 : fFITtime[i] = tzero.fFITtime[i];
75 0 : fFITamplitude[i] = tzero.fFITamplitude[i];
76 : }
77 0 : }
78 :
79 0 : return *this;
80 : }
81 : //______________________________________________________________________________
82 : void 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 0 : if(this==&obj)return;
89 0 : AliESDFIT *robj = dynamic_cast<AliESDFIT*>(&obj);
90 0 : if(!robj)return; // not an AliESDFIT
91 0 : *robj = *this;
92 :
93 0 : }
94 :
95 :
96 : //______________________________________________________________________________
97 : void AliESDFIT::Reset()
98 : {
99 : // reset contents
100 66 : fFITzVertex = -9999;
101 15906 : for(int i=0; i<240; i++) {
102 7920 : fFITtime[i] = fFITamplitude[i] = 0;
103 : }
104 264 : for(int i=0; i<3 ;i++) {
105 99 : fT0[i] = -9999;
106 99 : fT0best[i] = -9999;
107 : }
108 33 : }
109 :
110 : //______________________________________________________________________________
111 : void AliESDFIT::Print(const Option_t *) const
112 : {
113 : // does noting fornow
114 0 : AliInfo(Form(" Vertex %f T0signal %f ns OrA %f ns OrC %f \n",fFITzVertex, fT0[0],fT0[1],fT0[2]));
115 :
116 0 : }
|