/* $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
// 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"
//___________________________________________
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),
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),
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;
}
//-----------------------------------------------------------------------------------------------
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
{