3 /**************************************************************************
4 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
6 * Author: The ALICE Off-line Project. *
7 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
20 Revision 1.1.2.4 2000/10/17 02:27:34 cblume
21 Get rid of global constants
23 Revision 1.1.2.3 2000/10/06 16:49:46 cblume
26 Revision 1.1.2.2 2000/09/22 14:42:05 cblume
27 Changed data members to UShort_t
29 Revision 1.4 2000/06/08 18:32:58 cblume
30 Make code compliant to coding conventions
32 Revision 1.3 2000/06/07 16:25:37 cblume
33 Try to remove compiler warnings on Sun and HP
35 Revision 1.2 2000/05/08 16:17:27 cblume
38 Revision 1.1.2.1 2000/05/08 14:40:29 cblume
39 Introduce raw digit bit flag and DecodeAmp()
43 ///////////////////////////////////////////////////////////////////////////////
47 ///////////////////////////////////////////////////////////////////////////////
49 #include "AliTRDdigit.h"
53 //_____________________________________________________________________________
56 const UInt_t AliTRDdigit::fgkRawDigit = 0x00000001;
58 //_____________________________________________________________________________
59 AliTRDdigit::AliTRDdigit():AliDigitNew()
62 // Default constructor
71 //_____________________________________________________________________________
72 AliTRDdigit::AliTRDdigit(Bool_t isRaw, Int_t *digits, Int_t *amp):AliDigitNew()
78 // Store the volume hierarchy
81 // Store the row, pad, and time bucket number
86 // Store the signal amplitude
89 if (isRaw) SetBit(fgkRawDigit);
93 //_____________________________________________________________________________
94 AliTRDdigit::~AliTRDdigit()
97 // AliTRDdigit destructor
102 //_____________________________________________________________________________
103 Int_t AliTRDdigit::DecodeAmp() const
106 // Decodes the digit amplitude
113 //______________________________________________________________________________
114 void AliTRDdigit::Streamer(TBuffer &R__b)
117 // Stream an object of class AliTRDdigit.
120 if (R__b.IsReading()) {
121 Version_t R__v = R__b.ReadVersion(); if (R__v) { }
122 AliDigitNew::Streamer(R__b);
128 R__b.WriteVersion(AliTRDdigit::IsA());
129 AliDigitNew::Streamer(R__b);