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