]>
Commit | Line | Data |
---|---|---|
5e319bd5 | 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: AliADhit.cxx $ */ | |
17 | ||
18 | //_________________________________________________________________________ | |
19 | // | |
20 | // Hit class for AD detector | |
21 | // | |
22 | //_________________________________________________________________________ | |
23 | ||
24 | ||
25 | #include "AliADhit.h" | |
26 | ||
27 | ClassImp(AliADhit) | |
28 | ||
29 | //_____________________________________________________________________________ | |
30 | AliADhit::AliADhit() | |
31 | : AliHit(), | |
32 | fModule(0), | |
33 | fEk(0.), | |
34 | fPt(0.), | |
35 | fPx(0.), | |
36 | fPy(0.), | |
37 | fPz(0.), | |
38 | fTof(0.), | |
39 | fTleng(0.), | |
40 | fEloss(0.), | |
41 | fNphot(0), | |
42 | fCell(0), | |
43 | fPrimary(0), | |
44 | fPDG(0), | |
45 | fPDGMother(0) | |
46 | { | |
47 | // Default constructor | |
48 | } | |
49 | ||
50 | //_____________________________________________________________________________ | |
51 | AliADhit::AliADhit(Int_t shunt, Int_t track, Int_t* vol, Float_t* hits) | |
52 | : AliHit(shunt, track), | |
53 | fModule(vol[4]), | |
54 | fEk(hits[3]), | |
55 | fPt(hits[4]), | |
56 | fPx(hits[5]), | |
57 | fPy(hits[6]), | |
58 | fPz(hits[7]), | |
59 | fTof(hits[8]), | |
60 | fTleng(hits[9]), | |
61 | fEloss(hits[10]), | |
62 | fNphot(vol[3]), | |
63 | fCell(vol[4]), | |
64 | fPrimary(vol[0]), | |
65 | fPDG(vol[1]), | |
66 | fPDGMother(vol[2]) | |
67 | { | |
68 | // Constructor | |
69 | fX = hits[0]; // X position of hit | |
70 | fY = hits[1]; // Y position of hit | |
71 | fZ = hits[2]; // Z position of hit | |
72 | } | |
73 | //_____________________________________________________________________________ | |
74 | AliADhit::~AliADhit() | |
75 | { | |
76 | // | |
77 | // Default destructor. | |
78 | // | |
79 | } | |
80 | ||
81 |