get tables from the aliroot directory if they are not in the current one
[u/mrichter/AliRoot.git] / START / AliSTARThit.cxx
CommitLineData
971579f6 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 **************************************************************************/
971579f6 15
803d1ab0 16/* $Id$ */
0b73602e 17// AliSTARThit is the hit class for the START. Hits are the information
18// that comes from a Monte Carlo at each step as a particle mass through
19// sensitive detector elements as particles are transported through a
20// detector.
21//
22// Data members:
23//
24// Int_t fTrack
25// See AliHit for a full description. The track number of the track
26// that made this hit.
27//
28// Float_t fX
29// See AliHit for a full description. The global x position of the
30// hit (in the standard units of the Monte Carlo).
31//
32// Float_t fY
33// See AliHit for a full description. The global y position of the
34// hit (in the standard units of the Monte Carlo).
35//
36// Float_t fZ
37// See AliHit for a full description. The global z position of the
38// hit (in the standard units of the Monte Carlo).
39//
40// Int_t fStatus
41// The track status flag. This flag indicates the track status
42// at the time of creating this hit. It is made up of the following 8
43// status bits from highest order to lowest order bits
44// 0 : IsTrackAlive(): IsTrackStop():IsTrackDisappeared():
45// IsTrackOut():IsTrackExiting():IsTrackEntering():IsTrackInside() .
46// See AliMC for a description of these functions. If the function is
47// true then the bit is set to one, otherwise it is zero.
48//
49// Int_t fVolume
50// The number of the START detector that contains this hit.
51// 0 - right array; 1 - left array
52// Int_t fPmt
53// the number of PMT tube that contains hit
54// Float_t fEdep
55// The energy lost by the particle during the step ending in this
56// hit. The units are those determined by the Monte Carlo.
57//
58// Float_t fTime
59// The time of flight associated with the particle in this
60// hit. The time is typically measured from the point of creation of the
61// original particle (if this particle is a daughter). The units
62// are those determined by the Monte Carlo.
63///////////////////////////////////////////////////////////////////////
64
803d1ab0 65
971579f6 66#include "AliSTARThit.h"
67
68ClassImp(AliSTARThit)
c30bf53a 69
971579f6 70AliSTARThit::AliSTARThit(Int_t shunt, Int_t track, Int_t *vol, Float_t *hits):
71 AliHit(shunt, track)
72{
c30bf53a 73//Normal START hit ctor
971579f6 74
c30bf53a 75 fVolume = vol[0];
76 fPmt=vol[1];
77 fX=hits[0];
78 fY=hits[1];
79 fZ=hits[2];
80 fEdep=hits[3];
81 fEtot=hits[4];
82 fParticle=Int_t (hits[5]);
83 fTime=hits[6];
971579f6 84}
c30bf53a 85