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