]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDdigit.cxx
New Raw Data format implemented
[u/mrichter/AliRoot.git] / TRD / AliTRDdigit.cxx
index 502d47378c0b1ec8a42b39ea66729e557fd16573..1bb4e0d9b312fc5fce352647eef0c66d24f0270a 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/*
-$Log$
-Revision 1.1.2.4  2000/10/17 02:27:34  cblume
-Get rid of global constants
-
-Revision 1.1.2.3  2000/10/06 16:49:46  cblume
-Made Getters const
-
-Revision 1.1.2.2  2000/09/22 14:42:05  cblume
-Changed data members to UShort_t
-
-Revision 1.4  2000/06/08 18:32:58  cblume
-Make code compliant to coding conventions
-
-Revision 1.3  2000/06/07 16:25:37  cblume
-Try to remove compiler warnings on Sun and HP
-
-Revision 1.2  2000/05/08 16:17:27  cblume
-Merge TRD-develop
-
-Revision 1.1.2.1  2000/05/08 14:40:29  cblume
-Introduce raw digit bit flag and DecodeAmp()
-
-*/
+/* $Id$ */
 
 ///////////////////////////////////////////////////////////////////////////////
 //                                                                           //
@@ -51,25 +28,24 @@ Introduce raw digit bit flag and DecodeAmp()
 ClassImp(AliTRDdigit)
 
 //_____________________________________________________________________________
-  
-  // Marks a raw digit
-  const UInt_t AliTRDdigit::fgkRawDigit = 0x00000001; 
-
-//_____________________________________________________________________________
-AliTRDdigit::AliTRDdigit():AliDigitNew()
+AliTRDdigit::AliTRDdigit()
+  :AliDigitNew()
+  ,fRow(0)
+  ,fCol(0)
+  ,fTime(0)
 {
   //
   // Default constructor
   //
 
-  fRow  = 0;
-  fCol  = 0;
-  fTime = 0;
-
 }
 
 //_____________________________________________________________________________
-AliTRDdigit::AliTRDdigit(Bool_t isRaw, Int_t *digits, Int_t *amp):AliDigitNew()
+AliTRDdigit::AliTRDdigit(Int_t *digits, Int_t *amp)
+  :AliDigitNew()
+  ,fRow(0)
+  ,fCol(0)
+  ,fTime(0)
 {
   //
   // Create a TRD digit
@@ -86,8 +62,6 @@ AliTRDdigit::AliTRDdigit(Bool_t isRaw, Int_t *digits, Int_t *amp):AliDigitNew()
   // Store the signal amplitude
   fAmp  = amp[0];
 
-  if (isRaw) SetBit(fgkRawDigit);
-
 }
 
 //_____________________________________________________________________________
@@ -98,38 +72,3 @@ AliTRDdigit::~AliTRDdigit()
   //
 
 }
-
-//_____________________________________________________________________________
-Int_t AliTRDdigit::DecodeAmp() const
-{
-  //
-  // Decodes the digit amplitude
-  //
-
-  return 0;
-
-}
-
-//______________________________________________________________________________
-void AliTRDdigit::Streamer(TBuffer &R__b)
-{
-  //
-  // Stream an object of class AliTRDdigit.
-  //
-
-  if (R__b.IsReading()) {
-    Version_t R__v = R__b.ReadVersion(); if (R__v) { }
-    AliDigitNew::Streamer(R__b);
-    R__b >> fRow;
-    R__b >> fCol;
-    R__b >> fTime;
-  } 
-  else {
-    R__b.WriteVersion(AliTRDdigit::IsA());
-    AliDigitNew::Streamer(R__b);
-    R__b << fRow;
-    R__b << fCol;
-    R__b << fTime;
-  }
-
-}