]> git.uio.no Git - u/mrichter/AliRoot.git/blob - CRT/AliCRThit.cxx
Bug Correction
[u/mrichter/AliRoot.git] / CRT / AliCRThit.cxx
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 /* $Id$ */
17
18 #include "AliCRThit.h"
19
20 ClassImp(AliCRThit)
21
22 //____________________________________________________________________________
23 AliCRThit::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
52 //____________________________________________________________________________
53 AliCRThit::AliCRThit(const AliCRThit & hit)
54 {
55    //
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
74   //fCopy = hit.fCopy;
75   //fVolume = hit.fVolume;
76
77 }
78
79 //_____________________________________________________________________________
80 AliCRThit& AliCRThit::operator= (const AliCRThit & hit)
81 {
82    //
83    // aisngment operator.
84    //
85
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;
103
104   return *this;
105 }
106
107 //_____________________________________________________________________________
108 AliCRThit::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
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
136 }
137