1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
18 //_________________________________________________________________________
20 // Hit class for VZERO detector
22 //_________________________________________________________________________
25 #include "AliVZEROhit.h"
28 //___________________________________________
29 AliVZEROhit::AliVZEROhit()
52 /// Default constructor
54 //_____________________________________________________________________________
55 AliVZEROhit::AliVZEROhit(Int_t shunt, Int_t track, Int_t* vol, Float_t* hits)
56 : AliHit(shunt, track),
75 fNphot((Int_t) hits[19]),
76 fCell((Int_t) hits[20])
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
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
102 fX = hits[0]; // X position of hit
103 fY = hits[1]; // Y position of hit
104 fZ = hits[2]; // Z position of hit