]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONHit.cxx
New class to make V2 clusters starting from digits or hits (fast simulation). Origin...
[u/mrichter/AliRoot.git] / MUON / AliMUONHit.cxx
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$
18 Revision 1.3  2001/03/17 10:07:20  morsch
19 Correct inconsistent variable name / method name / comments.
20
21 Revision 1.2  2000/06/15 07:58:48  morsch
22 Code from MUON-dev joined
23
24 Revision 1.1.2.1  2000/06/09 22:02:14  morsch
25 Was before in DataStructures.cxx
26
27 */
28 #include "AliMUONHit.h"
29
30 ClassImp(AliMUONHit)
31  
32 //___________________________________________
33 AliMUONHit::AliMUONHit(Int_t shunt, Int_t track, Int_t *vol, Float_t *hits):
34         AliHit(shunt, track)
35 {
36 // Constructor
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];
53 }
54 //___________________________________________
55 AliMUONHit::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
74
75
76
77
78
79
80