fMaxTrack = 0 ;
fTheta = fPhi = 0. ;
fEMCALArm = 0;
-
+ fPRESection = fECALSection = fHCALSection = kFALSE ;
}
//____________________________________________________________________________
delete tempo ;
}
+
//____________________________________________________________________________
void AliEMCALRecPoint::GetGlobalPosition(TVector3 & gpos) const
{
// returns the position of the cluster in the global reference system of ALICE
- // and the uncertainty on this position
AliEMCALGeometry * emcalgeom = AliEMCALGetter::GetInstance()->EMCALGeometry();
gpos.SetX(fPhi) ;
- gpos.SetY(emcalgeom->GetIPDistance() + emcalgeom->GetAirGap()) ;
+ if ( IsInECAL() )
+ gpos.SetY(emcalgeom->GetIP2ECALSection()) ;
+ else if ( IsInPRE() )
+ gpos.SetY(emcalgeom->GetIP2PRESection()) ;
+ else if ( IsInHCAL() )
+ gpos.SetY(emcalgeom->GetIP2HCALSection()) ;
+ else
+ Fatal("GetGlobalPosition", "Unexpected tower section") ;
gpos.SetZ(fTheta) ;
-
}
+//____________________________________________________________________________
+void AliEMCALRecPoint::GetLocalPosition(TVector3 & lpos) const
+{
+ // returns the position of the cluster in the global reference system of ALICE
+
+ lpos.SetX(fLocPos.X()) ;
+ lpos.SetY(fLocPos.Y()) ;
+ lpos.SetZ(fLocPos.Z()) ;
+}
//______________________________________________________________________________
void AliEMCALRecPoint::Paint(Option_t *)