]> git.uio.no Git - u/mrichter/AliRoot.git/blame - VZERO/AliVZEROhit.cxx
Number of photons added
[u/mrichter/AliRoot.git] / VZERO / AliVZEROhit.cxx
CommitLineData
47890cd3 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
88cb7938 16/* $Id$ */
17
b2501ea3 18//_________________________________________________________________________
19//
20// Hit class for VZERO detector
21//
22//_________________________________________________________________________
23
47890cd3 24
25#include "AliVZEROhit.h"
26
27ClassImp(AliVZEROhit)
28
29//_____________________________________________________________________________
30AliVZEROhit::AliVZEROhit(Int_t shunt, Int_t track, Int_t* vol, Float_t* hits):
31 AliHit(shunt, track)
32{
33 //
b2501ea3 34 // Adds a VZERO hit
47890cd3 35 //
36
1332e706 37 fVolume = vol[0]; // Volume ID
38 fCopy = vol[1]; // Copy number
39 fX = hits[0]; // X position of hit
40 fY = hits[1]; // Y position of hit
41 fZ = hits[2]; // Z position of hit
42 fTrackPiD = hits[3]; // Track PiD
43 fTof = hits[4]; // Particle time of flight
44 fCharge = hits[5]; // Particle charge
45 fTheta = hits[6]; // Incident theta angle in degrees
46 fPhi = hits[7]; // Incident phi angle in degrees
47 fRingNumber = hits[8]; // Ring number
61874e87 48
1332e706 49 fPt = hits[9]; // Local transverse momentum of the particle
50 fPmom = hits[10]; // Local P momentum of the particle
51 fPx = hits[11]; // Local Px momentum of the particle
52 fPy = hits[12]; // Local Py momentum of the particle
53 fPz = hits[13]; // Local Pz momentum of the particle
61874e87 54
1332e706 55 fVx = hits[14]; // Vertex x coordinate
56 fVy = hits[15]; // Vertex y coordinate
57 fVz = hits[16]; // Vertex z coordinate
c288a388 58
1332e706 59 fEloss = hits[17]; // Energy deposited inside volume
60 fTleng = hits[18]; // Track length inside volume
61 fNphot = hits[19]; // Number of photons created by current hit
62 fCell = hits[20]; // Scintillator cell number from 0 to 71
61874e87 63
47890cd3 64}