]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDhit.cxx
New Raw Data format implemented
[u/mrichter/AliRoot.git] / TRD / AliTRDhit.cxx
index f1f77eaca2817c53c336a5daa6ed7b42488624d6..4ee565ba48ff2dd78ca9393d4699e9b974313ee8 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/*
-$Log$
-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:48:31  cblume
-AliTRDhit class now in separate files
-
-*/
+/* $Id$ */
 
 ///////////////////////////////////////////////////////////////////////////////
 //                                                                           //
@@ -37,7 +26,11 @@ AliTRDhit class now in separate files
 ClassImp(AliTRDhit)
 
 //_____________________________________________________________________________
-AliTRDhit::AliTRDhit():AliHit()
+AliTRDhit::AliTRDhit()
+  :AliHit()
+  ,fDetector(0)
+  ,fQ(0)
+  ,fTime(0)
 {
   //
   // AliTRDhit default constructor
@@ -46,21 +39,21 @@ AliTRDhit::AliTRDhit():AliHit()
 }
 
 //_____________________________________________________________________________
-AliTRDhit::AliTRDhit(Int_t shunt, Int_t track, Int_t *det, Float_t *hits)
-          :AliHit(shunt, track)
+AliTRDhit::AliTRDhit(Int_t shunt, Int_t track, Int_t det
+                   , Float_t *hits, Int_t q, Float_t time)
+  :AliHit(shunt,track)
+  ,fDetector((UShort_t) det)
+  ,fQ((Short_t) q)
+  ,fTime(time)
 {
   //
   // Create a TRD hit
   //
 
-  // Store volume hierarchy
-  fDetector = det[0];
-
-  // Store position and charge
-  fX        = hits[0];
-  fY        = hits[1];
-  fZ        = hits[2];
-  fQ        = hits[3];
+  // Store position 
+  fX = hits[0];
+  fY = hits[1];
+  fZ = hits[2];
 
 }