Line data Source code
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 :
16 : /* $Id$ */
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
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 T0 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 :
65 :
66 : #include "AliT0hit.h"
67 :
68 20 : ClassImp(AliT0hit)
69 :
70 :
71 2717 : AliT0hit::AliT0hit(): AliHit(),
72 2717 : fVolume(0),
73 2717 : fPmt(0),
74 2717 : fParticle(0),
75 2717 : fEtot(0),
76 2717 : fTime(0)
77 :
78 13585 : {
79 : //
80 5434 : }
81 : AliT0hit::AliT0hit(Int_t shunt, Int_t track, Int_t *vol, Float_t *hits):
82 2744 : AliHit(shunt, track),
83 2744 : fVolume(0),
84 2744 : fPmt(0),
85 2744 : fParticle(0),
86 2744 : fEtot(0),
87 2744 : fTime(0)
88 :
89 13720 : {
90 : //Normal T0 hit ctor
91 :
92 2744 : fVolume = vol[0];
93 2744 : fPmt=vol[1];
94 2744 : fX=hits[0];
95 2744 : fY=hits[1];
96 2744 : fZ=hits[2];
97 2744 : fEtot=Double_t (hits[3]);
98 2744 : fParticle=Int_t (hits[4]);
99 2744 : fTime=hits[5];
100 5488 : }
101 :
|