]> 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 5089bd34970a3f1cbc68cd9cc6efe4ed37743c86..4ee565ba48ff2dd78ca9393d4699e9b974313ee8 100644 (file)
 ClassImp(AliTRDhit)
 
 //_____________________________________________________________________________
-AliTRDhit::AliTRDhit():AliHit()
+AliTRDhit::AliTRDhit()
+  :AliHit()
+  ,fDetector(0)
+  ,fQ(0)
+  ,fTime(0)
 {
   //
   // AliTRDhit default constructor
@@ -36,23 +40,20 @@ AliTRDhit::AliTRDhit():AliHit()
 
 //_____________________________________________________________________________
 AliTRDhit::AliTRDhit(Int_t shunt, Int_t track, Int_t det
-                   , Float_t *hits, Int_t q)
-          :AliHit(shunt, track)
+                   , 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 detector number
-  fDetector = (UShort_t) det;
-
   // Store position 
-  fX        = hits[0];
-  fY        = hits[1];
-  fZ        = hits[2];
-
-  // Store the charge
-  fQ        = (Short_t) q;
+  fX = hits[0];
+  fY = hits[1];
+  fZ = hits[2];
 
 }