]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDpixel.cxx
Updating
[u/mrichter/AliRoot.git] / TRD / AliTRDpixel.cxx
index 59adab3d189c24f391056fb2dd41c74c8dee9010..c2a470a11904823a1d0c065167ca6e37bea653a0 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/*
-$Log$
-Revision 1.3  2000/02/28 19:10:26  cblume
-Include the new TRD classes
-
-Revision 1.2.4.1  2000/02/28 17:59:27  cblume
-Initialize fTrack with -1
-
-Revision 1.2  1999/09/29 09:24:35  fca
-Introduction of the Copyright and cvs Log
-
-*/
+/* $Id$ */
 
 ///////////////////////////////////////////////////////////////////////////////
 //                                                                           //
@@ -36,6 +25,11 @@ Introduction of the Copyright and cvs Log
 
 ClassImp(AliTRDpixel)
 
+//_____________________________________________________________________________
+
+  // Maximal number of stored tracks
+  const Int_t AliTRDpixel::fgkNTrackPixel = kNTrackPixel;
+
 //_____________________________________________________________________________
 AliTRDpixel::AliTRDpixel():TObject()
 {
@@ -60,15 +54,15 @@ AliTRDpixel::~AliTRDpixel()
 }
 
 //_____________________________________________________________________________
-void AliTRDpixel::Copy(AliTRDpixel &p)
+void AliTRDpixel::Copy(TObject &p)
 {
   //
   // Copy function
   //
 
-  p.fSignal = fSignal;
-  for (Int_t iTrackPixel = 0; iTrackPixel < kTrackPixel; iTrackPixel++) {
-    p.fTrack[iTrackPixel] = fTrack[iTrackPixel];
+  ((AliTRDpixel &) p).fSignal = fSignal;
+  for (Int_t iTrackPixel = 0; iTrackPixel < kNTrackPixel; iTrackPixel++) {
+    ((AliTRDpixel &) p).fTrack[iTrackPixel] = fTrack[iTrackPixel];
   }
 
 }