]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/AliTRDdigit.cxx
Try to remove compiler warnings on Sun and HP
[u/mrichter/AliRoot.git] / TRD / AliTRDdigit.cxx
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$
18 Revision 1.2  2000/05/08 16:17:27  cblume
19 Merge TRD-develop
20
21 Revision 1.1.2.1  2000/05/08 14:40:29  cblume
22 Introduce raw digit bit flag and DecodeAmp()
23
24 */
25
26 ///////////////////////////////////////////////////////////////////////////////
27 //                                                                           //
28 //  The TRD digit                                                            //
29 //                                                                           //
30 ///////////////////////////////////////////////////////////////////////////////
31
32 #include "AliTRDdigit.h"
33
34 ClassImp(AliTRDdigit)
35
36 //_____________________________________________________________________________
37 AliTRDdigit::AliTRDdigit():AliDigitNew()
38 {
39   //
40   // Default constructor
41   //
42
43   fRow       = 0;
44   fCol       = 0;
45   fTime      = 0;
46
47 }
48
49 //_____________________________________________________________________________
50 AliTRDdigit::AliTRDdigit(Bool_t isRaw, Int_t *digits, Int_t *amp):AliDigitNew()
51 {
52   //
53   // Create a TRD digit
54   //
55
56   // Store the volume hierarchy
57   fId   = digits[0];
58
59   // Store the row, pad, and time bucket number
60   fRow  = digits[1];
61   fCol  = digits[2];
62   fTime = digits[3];
63
64   // Store the signal amplitude
65   fAmp  = amp[0];
66
67   if (isRaw) SetBit(kRawDigit);
68
69 }