]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/AliTRDdigit.cxx
Add conversion class to produce fake raw data
[u/mrichter/AliRoot.git] / TRD / AliTRDdigit.cxx
1
2
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
18 /*
19 $Log$
20 Revision 1.5  2000/11/01 14:53:20  cblume
21 Merge with TRD-develop
22
23 Revision 1.1.2.4  2000/10/17 02:27:34  cblume
24 Get rid of global constants
25
26 Revision 1.1.2.3  2000/10/06 16:49:46  cblume
27 Made Getters const
28
29 Revision 1.1.2.2  2000/09/22 14:42:05  cblume
30 Changed data members to UShort_t
31
32 Revision 1.4  2000/06/08 18:32:58  cblume
33 Make code compliant to coding conventions
34
35 Revision 1.3  2000/06/07 16:25:37  cblume
36 Try to remove compiler warnings on Sun and HP
37
38 Revision 1.2  2000/05/08 16:17:27  cblume
39 Merge TRD-develop
40
41 Revision 1.1.2.1  2000/05/08 14:40:29  cblume
42 Introduce raw digit bit flag and DecodeAmp()
43
44 */
45
46 ///////////////////////////////////////////////////////////////////////////////
47 //                                                                           //
48 //  The TRD digit                                                            //
49 //                                                                           //
50 ///////////////////////////////////////////////////////////////////////////////
51
52 #include "AliTRDdigit.h"
53
54 ClassImp(AliTRDdigit)
55
56 //_____________________________________________________________________________
57   
58   // Marks a raw digit
59   const UInt_t AliTRDdigit::fgkRawDigit = 0x00000001; 
60
61 //_____________________________________________________________________________
62 AliTRDdigit::AliTRDdigit():AliDigitNew()
63 {
64   //
65   // Default constructor
66   //
67
68   fRow  = 0;
69   fCol  = 0;
70   fTime = 0;
71
72 }
73
74 //_____________________________________________________________________________
75 AliTRDdigit::AliTRDdigit(Bool_t isRaw, Int_t *digits, Int_t *amp):AliDigitNew()
76 {
77   //
78   // Create a TRD digit
79   //
80
81   // Store the volume hierarchy
82   fId   = digits[0];
83
84   // Store the row, pad, and time bucket number
85   fRow  = digits[1];
86   fCol  = digits[2];
87   fTime = digits[3];
88
89   // Store the signal amplitude
90   fAmp  = amp[0];
91
92   if (isRaw) SetBit(fgkRawDigit);
93
94 }
95
96 //_____________________________________________________________________________
97 AliTRDdigit::~AliTRDdigit()
98 {
99   //
100   // AliTRDdigit destructor
101   //
102
103 }
104
105 //_____________________________________________________________________________
106 Int_t AliTRDdigit::DecodeAmp() const
107 {
108   //
109   // Decodes the digit amplitude
110   //
111
112   return 0;
113
114 }