]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONHit.cxx
The test function static (A.Kalweit)
[u/mrichter/AliRoot.git] / MUON / AliMUONHit.cxx
index 1e742683294d6950b2d74770d3ea17c126398b45..64ef97fd24ffdc0f493bad403dbb7b1c7f62e835 100644 (file)
@@ -15,6 +15,7 @@
 
 /* $Id$ */
 
+//-----------------------------------------------------------------------------
 // MUON class for MonteCarlo Hits, inherited from AliHit for the 
 // In addition to the ALiHit data member fX, fY, fZ and fTrack, AliMUONHit contains some info about the particle crossing the chamber:
 // Impulsion: fPtot, fPx, fPy and fPz
@@ -22,7 +23,7 @@
 // Cumulated path along the active volume fTlength for spliting of hits for very inclined tracks 
 // Energy loss of the particle inside the gas active volume.
 // Incident fTheta and fPhi angle with respect of the wire plane of the chamber.
-//
+//-----------------------------------------------------------------------------
 
 #include "AliMUONHit.h"
 #include "AliMpDEManager.h"
@@ -159,6 +160,15 @@ Int_t  AliMUONHit::Chamber()  const
   return AliMpDEManager::GetChamberId(fDetElemId) + 1;  
 }
 
+//-----------------------------------------------------------------------------
+const char*
+AliMUONHit::GetName() const
+{
+/// Generate hit name
+
+  return Form("%s-DE%04d",ClassName(),DetElemId());
+}
+
 //-----------------------------------------------------------------------------------------------
 void AliMUONHit::Print(Option_t* opt) const
 {