]>
Commit | Line | Data |
---|---|---|
4347b38f | 1 | /************************************************************************** |
2 | * Copyright(c) 2004, 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$ */ | |
17 | ||
e802be3e | 18 | //____________________________________________________________________ |
4347b38f | 19 | // |
20 | // Hits in the FMD | |
21 | // | |
22 | // Latest changes by Christian Holm Christensen | |
23 | // | |
e802be3e | 24 | #include "AliFMDHit.h" // ALIFMDHIT_H |
25 | #include "AliLog.h" // ALILOG_H | |
26 | #include "Riostream.h" // ROOT_Riostream | |
4347b38f | 27 | |
28 | //____________________________________________________________________ | |
29 | ClassImp(AliFMDHit); | |
30 | ||
31 | ||
32 | //____________________________________________________________________ | |
33 | AliFMDHit::AliFMDHit() | |
34 | : fDetector(0), | |
35 | fRing(0), | |
36 | fSector(0), | |
37 | fStrip('\0'), | |
38 | fPx(0), | |
39 | fPy(0), | |
40 | fPz(0), | |
41 | fPdg(0), | |
42 | fEdep(0), | |
43 | fTime(0) | |
44 | { | |
45 | fX = fY = fZ = 0; | |
46 | } | |
47 | ||
48 | ||
49 | //____________________________________________________________________ | |
50 | AliFMDHit::AliFMDHit(Int_t shunt, | |
51 | Int_t track, | |
52 | UShort_t detector, | |
53 | Char_t ring, | |
54 | UShort_t sector, | |
55 | UShort_t strip, | |
56 | Float_t x, | |
57 | Float_t y, | |
58 | Float_t z, | |
59 | Float_t px, | |
60 | Float_t py, | |
61 | Float_t pz, | |
62 | Float_t edep, | |
63 | Int_t pdg, | |
64 | Float_t t) | |
65 | : AliHit(shunt, track), | |
66 | fDetector(detector), | |
67 | fRing(ring), | |
68 | fSector(sector), | |
69 | fStrip(strip), | |
70 | fPx(px), | |
71 | fPy(py), | |
72 | fPz(pz), | |
73 | fPdg(pdg), | |
74 | fEdep(edep), | |
75 | fTime(t) | |
76 | { | |
77 | // Normal FMD hit ctor | |
78 | // | |
79 | // Parameters: | |
80 | // | |
81 | // shunt ??? | |
82 | // track Track # | |
83 | // detector Detector # (1, 2, or 3) | |
84 | // ring Ring ID ('I' or 'O') | |
85 | // sector Sector # (For inner/outer rings: 0-19/0-39) | |
86 | // strip Strip # (For inner/outer rings: 0-511/0-255) | |
87 | // x Track's X-coordinate at hit | |
88 | // y Track's Y-coordinate at hit | |
89 | // z Track's Z-coordinate at hit | |
90 | // px X-component of track's momentum | |
91 | // py Y-component of track's momentum | |
92 | // pz Z-component of track's momentum | |
93 | // edep Energy deposited by track | |
94 | // pdg Track's particle Id # | |
95 | // t Time when the track hit | |
96 | // | |
97 | fX = x; | |
98 | fY = y; | |
99 | fZ = z; | |
100 | } | |
101 | ||
102 | //____________________________________________________________________ | |
103 | void | |
104 | AliFMDHit::Print(Option_t* /* option */) const | |
105 | { | |
106 | // Print Hit to standard out | |
7c09877a | 107 | cout << "AliFMDHit: FMD" |
108 | << fDetector << fRing << "[" | |
109 | << setw(3) << fSector << "," | |
110 | << setw(3) << fStrip << "] = " | |
111 | << fEdep << endl; | |
4347b38f | 112 | } |
113 | ||
114 | //____________________________________________________________________ | |
115 | // | |
116 | // EOF | |
117 | // |