]>
Commit | Line | Data |
---|---|---|
793ff80c | 1 | |
2 | ||
6f1e466d | 3 | /************************************************************************** |
4 | * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
5 | * * | |
6 | * Author: The ALICE Off-line Project. * | |
7 | * Contributors are mentioned in the code where appropriate. * | |
8 | * * | |
9 | * Permission to use, copy, modify and distribute this software and its * | |
10 | * documentation strictly for non-commercial purposes is hereby granted * | |
11 | * without fee, provided that the above copyright notice appears in all * | |
12 | * copies and that both the copyright notice and this permission notice * | |
13 | * appear in the supporting documentation. The authors make no claims * | |
14 | * about the suitability of this software for any purpose. It is * | |
15 | * provided "as is" without express or implied warranty. * | |
16 | **************************************************************************/ | |
17 | ||
88cb7938 | 18 | /* $Id$ */ |
6f1e466d | 19 | |
20 | /////////////////////////////////////////////////////////////////////////////// | |
21 | // // | |
22 | // The TRD digit // | |
23 | // // | |
24 | /////////////////////////////////////////////////////////////////////////////// | |
25 | ||
26 | #include "AliTRDdigit.h" | |
27 | ||
28 | ClassImp(AliTRDdigit) | |
29 | ||
793ff80c | 30 | //_____________________________________________________________________________ |
31 | ||
32 | // Marks a raw digit | |
33 | const UInt_t AliTRDdigit::fgkRawDigit = 0x00000001; | |
34 | ||
6f1e466d | 35 | //_____________________________________________________________________________ |
2745a409 | 36 | AliTRDdigit::AliTRDdigit() |
37 | :AliDigitNew() | |
38 | ,fRow(0) | |
39 | ,fCol(0) | |
40 | ,fTime(0) | |
6f1e466d | 41 | { |
42 | // | |
43 | // Default constructor | |
44 | // | |
45 | ||
6f1e466d | 46 | } |
47 | ||
48 | //_____________________________________________________________________________ | |
2745a409 | 49 | AliTRDdigit::AliTRDdigit(Bool_t isRaw, Int_t *digits, Int_t *amp) |
50 | :AliDigitNew() | |
51 | ,fRow(0) | |
52 | ,fCol(0) | |
53 | ,fTime(0) | |
6f1e466d | 54 | { |
55 | // | |
56 | // Create a TRD digit | |
57 | // | |
58 | ||
59 | // Store the volume hierarchy | |
60 | fId = digits[0]; | |
61 | ||
62 | // Store the row, pad, and time bucket number | |
63 | fRow = digits[1]; | |
64 | fCol = digits[2]; | |
65 | fTime = digits[3]; | |
66 | ||
67 | // Store the signal amplitude | |
9d0b222b | 68 | fAmp = amp[0]; |
6f1e466d | 69 | |
793ff80c | 70 | if (isRaw) SetBit(fgkRawDigit); |
6f1e466d | 71 | |
72 | } | |
8230f242 | 73 | |
74 | //_____________________________________________________________________________ | |
75 | AliTRDdigit::~AliTRDdigit() | |
76 | { | |
77 | // | |
78 | // AliTRDdigit destructor | |
79 | // | |
80 | ||
81 | } | |
793ff80c | 82 | |
83 | //_____________________________________________________________________________ | |
84 | Int_t AliTRDdigit::DecodeAmp() const | |
85 | { | |
86 | // | |
87 | // Decodes the digit amplitude | |
88 | // | |
89 | ||
90 | return 0; | |
91 | ||
92 | } |