]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONHit.cxx
new functionality and new class added
[u/mrichter/AliRoot.git] / MUON / AliMUONHit.cxx
index 1e742683294d6950b2d74770d3ea17c126398b45..a396b37a32775592931b7cb3bf27d5102cd70b67 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"
@@ -89,7 +90,7 @@ AliMUONHit::AliMUONHit(Int_t shunt, Int_t track, Int_t *vol, Float_t *hits)
 
 //___________________________________________
 AliMUONHit::AliMUONHit(Int_t shunt, Int_t track, Int_t detElemId, Int_t idpart, 
-                      Float_t X, Float_t Y, Float_t Z, Float_t tof, Float_t momentum, 
+                      Float_t x, Float_t y, Float_t z, Float_t tof, Float_t momentum, 
                       Float_t theta, Float_t phi, Float_t length, Float_t destep)
   : AliHit(shunt, track),
     fDetElemId(detElemId),
@@ -110,16 +111,16 @@ AliMUONHit::AliMUONHit(Int_t shunt, Int_t track, Int_t detElemId, Int_t idpart,
     fZref(0)
 {
 /// Constructor
-    fX         = X;
-    fY         = Y;
-    fZ         = Z;
+    fX         = x;
+    fY         = y;
+    fZ         = z;
 }
 
 //-----------------------------------------------------------------------------------------------
 AliMUONHit::AliMUONHit(Int_t shunt, Int_t track, Int_t detElemId, Int_t idpart, 
-                      Float_t X, Float_t Y, Float_t Z, Float_t tof, Float_t momentum, 
+                      Float_t x, Float_t y, Float_t z, Float_t tof, Float_t momentum, 
                       Float_t theta, Float_t phi, Float_t length, Float_t destep,
-                      Float_t Xref,Float_t Yref,Float_t Zref)
+                      Float_t xref,Float_t yref,Float_t zref)
   : AliHit(shunt, track),
     fDetElemId(detElemId),
     fParticle(idpart),
@@ -134,15 +135,15 @@ AliMUONHit::AliMUONHit(Int_t shunt, Int_t track, Int_t detElemId, Int_t idpart,
     fPx(momentum * TMath::Sin(theta) * TMath::Cos(phi)),
     fPy(momentum * TMath::Sin(theta) * TMath::Sin(phi)),
     fPz(momentum * TMath::Cos(theta)),
-    fXref(Xref),
-    fYref(Yref),
-    fZref(Zref)
+    fXref(xref),
+    fYref(yref),
+    fZref(zref)
 {
 /// Constructor
 
-    fX         = X;
-    fY         = Y;
-    fZ         = Z;
+    fX         = x;
+    fY         = y;
+    fZ         = z;
 }
 
 //-----------------------------------------------------------------------------------------------
@@ -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
 {