Reducing the search window used to find the max in the ADC samples. Needed because...
[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)
0b2bea8b 28 //___________________________________________
29AliVZEROhit::AliVZEROhit()
30 : AliHit(),
31 fVolume(0),
32 fCopy(0),
33 fTrackPiD(0.0),
34 fTof(0.0),
35 fCharge(0.0),
36 fTheta(0.0),
37 fPhi(0.0),
38 fRingNumber(0.0),
39 fPt(0.0),
40 fPmom(0.0),
41 fPx(0.0),
42 fPy(0.0),
43 fPz(0.0),
44 fVx(0.0),
45 fVy(0.0),
46 fVz(0.0),
47 fEloss(0.0),
48 fTleng(0.0),
49 fNphot(0),
50 fCell(0)
51{
52/// Default constructor
53}
47890cd3 54//_____________________________________________________________________________
0b2bea8b 55AliVZEROhit::AliVZEROhit(Int_t shunt, Int_t track, Int_t* vol, Float_t* hits)
56 : AliHit(shunt, track),
57 fVolume(vol[0]),
58 fCopy(vol[1]),
59 fTrackPiD(hits[3]),
60 fTof(hits[4]),
61 fCharge(hits[5]),
62 fTheta(hits[6]),
63 fPhi(hits[7]),
64 fRingNumber(hits[8]),
65 fPt(hits[9]),
66 fPmom(hits[10]),
67 fPx(hits[11]),
68 fPy(hits[12]),
69 fPz(hits[13]),
70 fVx(hits[14]),
71 fVy(hits[15]),
72 fVz(hits[16]),
73 fEloss(hits[17]),
74 fTleng(hits[18]),
75 fNphot((Int_t) hits[19]),
76 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
47890cd3 100{
0b2bea8b 101// Constructor
102 fX = hits[0]; // X position of hit
103 fY = hits[1]; // Y position of hit
104 fZ = hits[2]; // Z position of hit
47890cd3 105}