Line data Source code
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 : //_________________________________________________________________________
19 : //
20 : // Hit class for VZERO detector
21 : //
22 : //_________________________________________________________________________
23 :
24 :
25 : #include "AliVZEROhit.h"
26 :
27 12 : ClassImp(AliVZEROhit)
28 : //___________________________________________
29 : AliVZEROhit::AliVZEROhit()
30 17 : : AliHit(),
31 17 : fVolume(0),
32 17 : fCopy(0),
33 17 : fTrackPiD(0.0),
34 17 : fTof(0.0),
35 17 : fCharge(0.0),
36 17 : fTheta(0.0),
37 17 : fPhi(0.0),
38 17 : fRingNumber(0.0),
39 17 : fPt(0.0),
40 17 : fPmom(0.0),
41 17 : fPx(0.0),
42 17 : fPy(0.0),
43 17 : fPz(0.0),
44 17 : fVx(0.0),
45 17 : fVy(0.0),
46 17 : fVz(0.0),
47 17 : fEloss(0.0),
48 17 : fTleng(0.0),
49 17 : fNphot(0),
50 17 : fCell(0)
51 85 : {
52 : /// Default constructor
53 34 : }
54 : //_____________________________________________________________________________
55 : AliVZEROhit::AliVZEROhit(Int_t shunt, Int_t track, Int_t* vol, Float_t* hits)
56 64 : : AliHit(shunt, track),
57 64 : fVolume(vol[0]),
58 64 : fCopy(vol[1]),
59 64 : fTrackPiD(hits[3]),
60 64 : fTof(hits[4]),
61 64 : fCharge(hits[5]),
62 64 : fTheta(hits[6]),
63 64 : fPhi(hits[7]),
64 64 : fRingNumber(hits[8]),
65 64 : fPt(hits[9]),
66 64 : fPmom(hits[10]),
67 64 : fPx(hits[11]),
68 64 : fPy(hits[12]),
69 64 : fPz(hits[13]),
70 64 : fVx(hits[14]),
71 64 : fVy(hits[15]),
72 64 : fVz(hits[16]),
73 64 : fEloss(hits[17]),
74 64 : fTleng(hits[18]),
75 64 : fNphot((Int_t) hits[19]),
76 64 : fCell((Int_t) hits[20])
77 :
78 : // fVolume = vol[0]; // Volume ID
79 : // fCopy = vol[1]; // Copy number
80 : // fTrackPiD = hits[3]; // Track PiD
81 : // fTof = hits[4]; // Particle time of flight
82 : // fCharge = hits[5]; // Particle charge
83 : // fTheta = hits[6]; // Incident theta angle in degrees
84 : // fPhi = hits[7]; // Incident phi angle in degrees
85 : // fRingNumber = hits[8]; // Ring number
86 : // fPt = hits[9]; // Local transverse momentum of the particle
87 : // fPmom = hits[10]; // Local P momentum of the particle
88 : // fPx = hits[11]; // Local Px momentum of the particle
89 : // fPy = hits[12]; // Local Py momentum of the particle
90 : // fPz = hits[13]; // Local Pz momentum of the particle
91 : //
92 : // fVx = hits[14]; // Vertex x coordinate
93 : // fVy = hits[15]; // Vertex y coordinate
94 : // fVz = hits[16]; // Vertex z coordinate
95 : // fEloss = hits[17]; // Energy deposited inside volume
96 : // fTleng = hits[18]; // Track length inside volume
97 : // fNphot = (Int_t) hits[19]; // Number of photons created by current hit
98 : // fCell = (Int_t) hits[20]; // Scintillator cell number from 0 to 71
99 :
100 320 : {
101 : // Constructor
102 64 : fX = hits[0]; // X position of hit
103 64 : fY = hits[1]; // Y position of hit
104 64 : fZ = hits[2]; // Z position of hit
105 128 : }
|