]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDhit.cxx
Added new static method AliAnalysisManager::GetRunFromAlienPath() that extracts the...
[u/mrichter/AliRoot.git] / TRD / AliTRDhit.cxx
index b26fccddcac96d643455c0dab9b5378b00c27169..46a4b4341d7064ddf810c242bd486734353ff6f4 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/*
-$Log$
-Revision 1.1.2.1  2000/05/08 14:48:31  cblume
-AliTRDhit class now in separate files
-
-*/
+/* $Id$ */
 
 ///////////////////////////////////////////////////////////////////////////////
 //                                                                           //
@@ -29,22 +24,44 @@ AliTRDhit class now in separate files
 #include "AliTRDhit.h"
 
 ClassImp(AliTRDhit)
+
 //_____________________________________________________________________________
-AliTRDhit::AliTRDhit(Int_t shunt, Int_t track, Int_t det, Float_t *hits)
-          :AliHit(shunt, track)
+AliTRDhit::AliTRDhit()
+  :AliHit()
+  ,fDetector(0)
+  ,fQ(0)
+  ,fTime(0)
+{
+  //
+  // AliTRDhit default constructor
+  //
+
+}
+
+//_____________________________________________________________________________
+AliTRDhit::AliTRDhit(Int_t shunt, Int_t track, Int_t det
+                   , const Float_t * const 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;
+  // Store position 
+  fX = hits[0];
+  fY = hits[1];
+  fZ = hits[2];
+
+}
 
-  // Store position and charge
-  fX        = hits[0];
-  fY        = hits[1];
-  fZ        = hits[2];
-  fQ        = hits[3];
+//_____________________________________________________________________________
+AliTRDhit::~AliTRDhit()
+{
+  //
+  // AliTRDhit destructor
+  //
 
 }