Constructor needed by AliMUONv3 added. (G. Martinez)
[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
16/*
17$Log$
0e83b872 18Revision 1.3 2001/03/17 10:07:20 morsch
19Correct inconsistent variable name / method name / comments.
20
2eb55fab 21Revision 1.2 2000/06/15 07:58:48 morsch
22Code from MUON-dev joined
23
a9e2aefa 24Revision 1.1.2.1 2000/06/09 22:02:14 morsch
25Was before in DataStructures.cxx
26
27*/
28#include "AliMUONHit.h"
29
30ClassImp(AliMUONHit)
31
32//___________________________________________
0e83b872 33AliMUONHit::AliMUONHit(Int_t shunt, Int_t track, Int_t *vol, Float_t *hits):
a9e2aefa 34 AliHit(shunt, track)
35{
36// Constructor
2eb55fab 37 fChamber = vol[0];
38 fParticle = hits[0];
39 fX = hits[1];
40 fY = hits[2];
41 fZ = hits[3];
42 fTheta = hits[4];
43 fPhi = hits[5];
44 fTlength = hits[6];
45 fEloss = hits[7];
46 fPHfirst = (Int_t) hits[8];
47 fPHlast = (Int_t) hits[9];
48 fPTot = hits[10];
49 fPx = hits[11];
50 fPy = hits[12];
51 fPz = hits[13];
52 fAge = hits[14];
a9e2aefa 53}
0e83b872 54//___________________________________________
55AliMUONHit::AliMUONHit(Int_t shunt, Int_t track, Int_t iChamber, Int_t idpart, Float_t X, Float_t Y, Float_t Z, Float_t tof, Float_t momentum, Float_t theta, Float_t phi, Float_t length, Float_t destep):
56 AliHit(shunt, track)
57{
58// Constructor
59 fChamber = iChamber;
60 fParticle = idpart;
61 fX = X;
62 fY = Y;
63 fZ = Z;
64 fTheta = theta;
65 fPhi = phi;
66 fTlength = length;
67 fEloss = destep;
68 fPHfirst = 0;
69 fPHlast = 0;
70 fPTot = momentum;
71 fAge = tof;
72}
73
a9e2aefa 74
75
76
77
78
79
80