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