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: AliT0hit.cxx 17501 2007-03-19 16:04:02Z alla $ */
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 "AliFITHits.h"
67 :
68 4 : ClassImp(AliFITHits)
69 :
70 :
71 0 : AliFITHits::AliFITHits(): AliHit(),
72 0 : fVolume(999),
73 0 : fPmt(999),
74 0 : fMCP(999),
75 0 : fParticle(0),
76 0 : fEtot(0),
77 0 : fTime(0)
78 :
79 0 : {
80 : //
81 : // printf(" @@@ default AliFITHits::AliFITHits\n");
82 0 : }
83 : AliFITHits::AliFITHits(Int_t shunt, Int_t track, Int_t *vol, Float_t *hits):
84 0 : AliHit(shunt, track),
85 0 : fVolume(999),
86 0 : fPmt(999),
87 0 : fMCP(999),
88 0 : fParticle(0),
89 0 : fEtot(0),
90 0 : fTime(0)
91 0 : {
92 : //Normal T0 hit ctor
93 : // printf(" @@@ AliFITHits::AliFITHits constructor \n");
94 0 : fVolume = vol[2];
95 0 : fMCP = vol[1];
96 0 : fPmt=vol[0];
97 0 : fX=hits[0];
98 0 : fY=hits[1];
99 0 : fZ=hits[2];
100 0 : fEtot=Double_t (hits[3]);
101 0 : fParticle=Int_t (hits[4]);
102 0 : fTime=hits[5];
103 0 : }
104 :
|