* 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$ */
///////////////////////////////////////////////////////////////////////////////
// //
#include "AliTRDhit.h"
ClassImp(AliTRDhit)
-
+
+//_____________________________________________________________________________
+AliTRDhit::AliTRDhit()
+ :AliHit()
+ ,fDetector(0)
+ ,fQ(0)
+ ,fTime(0)
+{
+ //
+ // AliTRDhit default constructor
+ //
+
+}
+
//_____________________________________________________________________________
-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
+ , 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[0];
+ // 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
+ //
}