#include "AliPHOSHit.h"
#include "AliRun.h"
#include "AliConst.h"
+#include "AliPHOSGetter.h"
+#include "AliPHOSGeometry.h"
+
ClassImp(AliPHOSHit)
{
// copy ctor
+ fX = hit.fX ;
+ fY = hit.fY ;
+ fZ = hit.fZ ;
fId = hit.fId ;
fELOS = hit.fELOS ;
fPrimary = hit.fPrimary ;
//
fId = id ;
+ fX = hits[0] ;
+ fY = hits[1] ;
+ fZ = hits[2] ;
fELOS = hits[3] ;
fPrimary = primary ;
}
+//____________________________________________________________________________
+Float_t AliPHOSHit::X() const
+{
+ TVector3 pos ;
+ AliPHOSGetter * gime = AliPHOSGetter::GetInstance() ;
+ ((AliPHOSGeometry *) gime->PHOSGeometry()) ->RelPosInAlice(GetId(), pos);
+ return pos.X();
+}
+//____________________________________________________________________________
+Float_t AliPHOSHit::Y() const
+{
+ TVector3 pos ;
+ AliPHOSGetter * gime = AliPHOSGetter::GetInstance() ;
+ ((AliPHOSGeometry *) gime->PHOSGeometry()) ->RelPosInAlice(GetId(), pos);
+ return pos.Y();
+}
+//____________________________________________________________________________
+Float_t AliPHOSHit::Z() const
+{
+ TVector3 pos ;
+ AliPHOSGetter * gime = AliPHOSGetter::GetInstance() ;
+ ((AliPHOSGeometry *) gime->PHOSGeometry()) ->RelPosInAlice(GetId(), pos);
+ return pos.Z() ;
+}
+
//____________________________________________________________________________
Bool_t AliPHOSHit::operator==(AliPHOSHit const &rValue) const
// returns the primary particle id at the origine of this hit
return fPrimary ;
}
+ virtual Float_t X() const ;
+ virtual Float_t Y() const ;
+ virtual Float_t Z() const ;
+
Bool_t operator == (AliPHOSHit const &rValue) const ;
AliPHOSHit operator + (const AliPHOSHit& rValue) ;