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