]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDhit.cxx
Transition to NewIO
[u/mrichter/AliRoot.git] / TRD / AliTRDhit.cxx
index eba1aec833bb09b7575b84a4f50740d703186c4b..5089bd34970a3f1cbc68cd9cc6efe4ed37743c86 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/*
-$Log$
-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$ */
 
 ///////////////////////////////////////////////////////////////////////////////
 //                                                                           //
@@ -32,22 +24,43 @@ AliTRDhit class now in separate files
 #include "AliTRDhit.h"
 
 ClassImp(AliTRDhit)
+
+//_____________________________________________________________________________
+AliTRDhit::AliTRDhit():AliHit()
+{
+  //
+  // AliTRDhit default constructor
+  //
+
+}
+
 //_____________________________________________________________________________
-AliTRDhit::AliTRDhit(Int_t shunt, Int_t track, Int_t *det, Float_t *hits)
+AliTRDhit::AliTRDhit(Int_t shunt, Int_t track, Int_t det
+                   , Float_t *hits, Int_t q)
           :AliHit(shunt, track)
 {
   //
   // Create a TRD hit
   //
 
-  // Store volume hierarchy
-  fDetector = det[0];
+  // Store detector number
+  fDetector = (UShort_t) det;
 
-  // Store position and charge
+  // Store position 
   fX        = hits[0];
   fY        = hits[1];
   fZ        = hits[2];
-  fQ        = hits[3];
+
+  // Store the charge
+  fQ        = (Short_t) q;
+
+}
+
+//_____________________________________________________________________________
+AliTRDhit::~AliTRDhit()
+{
+  //
+  // AliTRDhit destructor
+  //
 
 }