]>
Commit | Line | Data |
---|---|---|
6f1e466d | 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$ */ |
6f1e466d | 17 | |
18 | /////////////////////////////////////////////////////////////////////////////// | |
19 | // // | |
20 | // Hit object for the TRD // | |
21 | // // | |
22 | /////////////////////////////////////////////////////////////////////////////// | |
23 | ||
24 | #include "AliTRDhit.h" | |
25 | ||
26 | ClassImp(AliTRDhit) | |
8230f242 | 27 | |
28 | //_____________________________________________________________________________ | |
29 | AliTRDhit::AliTRDhit():AliHit() | |
30 | { | |
31 | // | |
32 | // AliTRDhit default constructor | |
33 | // | |
34 | ||
35 | } | |
36 | ||
6f1e466d | 37 | //_____________________________________________________________________________ |
793ff80c | 38 | AliTRDhit::AliTRDhit(Int_t shunt, Int_t track, Int_t det |
39 | , Float_t *hits, Int_t q) | |
6f1e466d | 40 | :AliHit(shunt, track) |
41 | { | |
42 | // | |
43 | // Create a TRD hit | |
44 | // | |
45 | ||
793ff80c | 46 | // Store detector number |
47 | fDetector = (UShort_t) det; | |
6f1e466d | 48 | |
793ff80c | 49 | // Store position |
6f1e466d | 50 | fX = hits[0]; |
51 | fY = hits[1]; | |
52 | fZ = hits[2]; | |
793ff80c | 53 | |
54 | // Store the charge | |
55 | fQ = (Short_t) q; | |
6f1e466d | 56 | |
57 | } | |
8230f242 | 58 | |
59 | //_____________________________________________________________________________ | |
60 | AliTRDhit::~AliTRDhit() | |
61 | { | |
62 | // | |
63 | // AliTRDhit destructor | |
64 | // | |
65 | ||
66 | } |