Bad operator= implementation on gcc-3.2 (Yves SCHUTZ)
[u/mrichter/AliRoot.git] / CRT / AliCRThit.cxx
CommitLineData
fb7a1f55 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/*
c312f3f0 17$Log$
6a65acdc 18Revision 1.3 2002/10/07 11:19:18 gamez
19Changes requested by coding conventions
20
fa15ea42 21Revision 1.2 2002/07/25 21:27:22 gamez
22Variables renamed to avoid floating exceptions
fb7a1f55 23
24*/
25
26#include "AliCRThit.h"
27
28ClassImp(AliCRThit)
29
fa15ea42 30//____________________________________________________________________________
31AliCRThit::AliCRThit()
32{
33 //
34 // default ctor for AliCRThit object
35 //
36
37 fId = 0.;
38 fX = 0.;
39 fY = 0.;
40 fZ = 0.;
41 fPx = 0.;
42 fPy = 0.;
43 fPz = 0.;
44 fMedium = 0.;
45 fELoss = 0.;
46 fCRTh = 0.;
47 fCRTMod = 0.;
48 fCRTMag = 0.;
49 fCRTRICH = 0.;
50 fCRTTPC = 0.;
51
52 fCopy = 0;
53 for (Int_t i = 0; i < 5; i++ ) {
54 fVolume[i] = 0;
55 }
56
57}
58
59
fb7a1f55 60//____________________________________________________________________________
61AliCRThit::AliCRThit(const AliCRThit & hit)
62{
63 //
fa15ea42 64 // copy ctor
65 //
66
67 fId = hit.fId;
68 fX = hit.fX;
69 fY = hit.fY;
70 fZ = hit.fZ;
71 fPx = hit.fPx;
72 fPy = hit.fPy;
73 fPz = hit.fPz;
74 fMedium = hit.fMedium;
75 fELoss = hit.fELoss;
76 fCRTh = hit.fCRTh;
77 fCRTMod = hit.fCRTMod;
78 fCRTMag = hit.fCRTMag;
79 fCRTRICH = hit.fCRTRICH;
80 fCRTTPC = hit.fCRTTPC;
81
82 fCopy = hit.fCopy;
83 fVolume = hit.fVolume;
84
85}
86
87//_____________________________________________________________________________
88AliCRThit& AliCRThit::operator= (const AliCRThit & hit)
89{
90 //
91 // aisngment operator.
fb7a1f55 92 //
93
6a65acdc 94 //fId = hit.fId;
95 //fX = hit.fX;
96 //fY = hit.fY;
97 //fZ = hit.fZ;
98 //fPx = hit.fPx;
99 //fPy = hit.fPy;
100 //fPz = hit.fPz;
101 //fMedium = hit.fMedium;
102 //fELoss = hit.fELoss;
103 //fCRTh = hit.fCRTh;
104 //fCRTMod = hit.fCRTMod;
105 //fCRTMag = hit.fCRTMag;
106 //fCRTRICH = hit.fCRTRICH;
107 //fCRTTPC = hit.fCRTTPC;
108
109 //fCopy = hit.fCopy;
110 //fVolume = hit.fVolume;
fa15ea42 111
112 return *this;
fb7a1f55 113}
fa15ea42 114
115//_____________________________________________________________________________
fb7a1f55 116AliCRThit::AliCRThit(Int_t shunt, Int_t track, Int_t *vol,
117 Float_t *hits) :AliHit(shunt, track)
118{
119//
120// Constructor of hit object
121//
122
fa15ea42 123 fId = hits[0];
124 fX = hits[1];
125 fY = hits[2];
126 fZ = hits[3];
127 fPx = hits[4];
128 fPy = hits[5];
129 fPz = hits[6];
130 fMedium = hits[7];
131 fELoss = hits[8];
132 fCRTh = hits[9];
133 fCRTMod = hits[10];
134 fCRTMag = hits[11];
135 fCRTRICH = hits[12];
136 fCRTTPC = hits[13];
137
138 //fTrack = (Int_t)hits[9];
139
140 for (Int_t i = 0; i < 5 ; i++ ) {
141 fVolume[i] = vol[i];
142 }
143
fb7a1f55 144}
145