]>
Commit | Line | Data |
---|---|---|
a9e2aefa | 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$ */ |
0e83b872 | 17 | |
c55ca9e5 | 18 | #include "TMath.h" |
a9e2aefa | 19 | #include "AliMUONHit.h" |
20 | ||
21 | ClassImp(AliMUONHit) | |
22 | ||
23 | //___________________________________________ | |
0e83b872 | 24 | AliMUONHit::AliMUONHit(Int_t shunt, Int_t track, Int_t *vol, Float_t *hits): |
a9e2aefa | 25 | AliHit(shunt, track) |
26 | { | |
27 | // Constructor | |
2eb55fab | 28 | fChamber = vol[0]; |
29 | fParticle = hits[0]; | |
30 | fX = hits[1]; | |
31 | fY = hits[2]; | |
32 | fZ = hits[3]; | |
33 | fTheta = hits[4]; | |
34 | fPhi = hits[5]; | |
35 | fTlength = hits[6]; | |
36 | fEloss = hits[7]; | |
37 | fPHfirst = (Int_t) hits[8]; | |
38 | fPHlast = (Int_t) hits[9]; | |
39 | fPTot = hits[10]; | |
40 | fPx = hits[11]; | |
41 | fPy = hits[12]; | |
42 | fPz = hits[13]; | |
43 | fAge = hits[14]; | |
1391e633 | 44 | fXref = 0.; |
45 | fYref = 0.; | |
46 | fZref = 0.; | |
a9e2aefa | 47 | } |
0e83b872 | 48 | //___________________________________________ |
1391e633 | 49 | AliMUONHit::AliMUONHit(Int_t shunt, Int_t track, Int_t iChamber, Int_t idpart, |
50 | Float_t X, Float_t Y, Float_t Z, Float_t tof, Float_t momentum, | |
51 | Float_t theta, Float_t phi, Float_t length, Float_t destep): | |
0e83b872 | 52 | AliHit(shunt, track) |
53 | { | |
54 | // Constructor | |
55 | fChamber = iChamber; | |
56 | fParticle = idpart; | |
57 | fX = X; | |
58 | fY = Y; | |
59 | fZ = Z; | |
60 | fTheta = theta; | |
61 | fPhi = phi; | |
62 | fTlength = length; | |
63 | fEloss = destep; | |
64 | fPHfirst = 0; | |
65 | fPHlast = 0; | |
66 | fPTot = momentum; | |
c55ca9e5 | 67 | fPx = momentum * TMath::Sin(theta) * TMath::Cos(phi); |
68 | fPy = momentum * TMath::Sin(theta) * TMath::Sin(phi); | |
69 | fPx = momentum * TMath::Cos(theta) ; | |
0e83b872 | 70 | fAge = tof; |
1391e633 | 71 | fXref = 0.; |
72 | fYref = 0.; | |
73 | fZref = 0.; | |
0e83b872 | 74 | } |
1391e633 | 75 | //----------------------------------------------------------------------------------------------- |
76 | AliMUONHit::AliMUONHit(Int_t shunt, Int_t track, Int_t iChamber, Int_t idpart, | |
77 | Float_t X, Float_t Y, Float_t Z, Float_t tof, Float_t momentum, | |
78 | Float_t theta, Float_t phi, Float_t length, Float_t destep, | |
79 | Float_t Xref,Float_t Yref,Float_t Zref): | |
80 | AliHit(shunt, track) | |
81 | { | |
82 | // Constructor | |
83 | fChamber = iChamber; | |
84 | fParticle = idpart; | |
85 | fX = X; | |
86 | fY = Y; | |
87 | fZ = Z; | |
88 | fTheta = theta; | |
89 | fPhi = phi; | |
90 | fTlength = length; | |
91 | fEloss = destep; | |
92 | fPHfirst = 0; | |
93 | fPHlast = 0; | |
94 | fPTot = momentum; | |
c55ca9e5 | 95 | fPx = momentum * TMath::Sin(theta) * TMath::Cos(phi); |
96 | fPy = momentum * TMath::Sin(theta) * TMath::Sin(phi); | |
97 | fPx = momentum * TMath::Cos(theta) ; | |
1391e633 | 98 | fAge = tof; |
99 | fXref = Xref; | |
100 | fYref = Yref; | |
101 | fZref = Zref; | |
102 | } | |
103 | //----------------------------------------------------------------------------------------------- | |
a9e2aefa | 104 |