]>
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 | ||
16 | /* | |
17 | $Log$ | |
8230f242 | 18 | Revision 1.3 2000/06/07 16:25:37 cblume |
19 | Try to remove compiler warnings on Sun and HP | |
20 | ||
9d0b222b | 21 | Revision 1.2 2000/05/08 16:17:27 cblume |
22 | Merge TRD-develop | |
23 | ||
6f1e466d | 24 | Revision 1.1.2.1 2000/05/08 14:40:29 cblume |
25 | Introduce raw digit bit flag and DecodeAmp() | |
26 | ||
27 | */ | |
28 | ||
29 | /////////////////////////////////////////////////////////////////////////////// | |
30 | // // | |
31 | // The TRD digit // | |
32 | // // | |
33 | /////////////////////////////////////////////////////////////////////////////// | |
34 | ||
35 | #include "AliTRDdigit.h" | |
36 | ||
37 | ClassImp(AliTRDdigit) | |
38 | ||
39 | //_____________________________________________________________________________ | |
40 | AliTRDdigit::AliTRDdigit():AliDigitNew() | |
41 | { | |
42 | // | |
43 | // Default constructor | |
44 | // | |
45 | ||
46 | fRow = 0; | |
47 | fCol = 0; | |
48 | fTime = 0; | |
49 | ||
50 | } | |
51 | ||
52 | //_____________________________________________________________________________ | |
9d0b222b | 53 | AliTRDdigit::AliTRDdigit(Bool_t isRaw, Int_t *digits, Int_t *amp):AliDigitNew() |
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 | |
70 | if (isRaw) SetBit(kRawDigit); | |
71 | ||
72 | } | |
8230f242 | 73 | |
74 | //_____________________________________________________________________________ | |
75 | AliTRDdigit::~AliTRDdigit() | |
76 | { | |
77 | // | |
78 | // AliTRDdigit destructor | |
79 | // | |
80 | ||
81 | } |