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 **************************************************************************/
17 // AliT0hit is the hit class for the T0. 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
25 // See AliHit for a full description. The track number of the track
26 // that made this hit.
29 // See AliHit for a full description. The global x position of the
30 // hit (in the standard units of the Monte Carlo).
33 // See AliHit for a full description. The global y position of the
34 // hit (in the standard units of the Monte Carlo).
37 // See AliHit for a full description. The global z position of the
38 // hit (in the standard units of the Monte Carlo).
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.
50 // The number of the T0 detector that contains this hit.
51 // 0 - right array; 1 - left array
53 // the number of PMT tube that contains hit
55 // The energy lost by the particle during the step ending in this
56 // hit. The units are those determined by the Monte Carlo.
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 ///////////////////////////////////////////////////////////////////////
71 AliT0hit::AliT0hit(): AliHit(),
81 AliT0hit::AliT0hit(Int_t shunt, Int_t track, Int_t *vol, Float_t *hits):
97 fEtot=Double_t (hits[3]);
98 fParticle=Int_t (hits[4]);