X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=EMCAL%2FAliEMCALRecPoint.cxx;h=0ef89886e39fd95f3783808edd1491ecc348a6b8;hp=9f235a653883f0202bf26c3712f6a34634b86f78;hb=aad8e277c9baee18efe18519fcb701c1ad07e882;hpb=7ee5c5bef8b1e89e9f43c93670ffc238224ccac3 diff --git a/EMCAL/AliEMCALRecPoint.cxx b/EMCAL/AliEMCALRecPoint.cxx index 9f235a65388..0ef89886e39 100644 --- a/EMCAL/AliEMCALRecPoint.cxx +++ b/EMCAL/AliEMCALRecPoint.cxx @@ -46,7 +46,7 @@ AliEMCALRecPoint::AliEMCALRecPoint() fMaxTrack = 0 ; fTheta = fPhi = 0. ; fEMCALArm = 0; - fTower = kFALSE ; + fPRESection = fECALSection = fHCALSection = kFALSE ; } //____________________________________________________________________________ @@ -249,13 +249,26 @@ void AliEMCALRecPoint::GetGlobalPosition(TVector3 & gpos) const AliEMCALGeometry * emcalgeom = AliEMCALGetter::GetInstance()->EMCALGeometry(); gpos.SetX(fPhi) ; - if (IsTower() ) - gpos.SetY(emcalgeom->GetIP2Tower()) ; + if ( IsInECAL() ) + gpos.SetY(emcalgeom->GetIP2ECALSection()) ; + else if ( IsInPRE() ) + gpos.SetY(emcalgeom->GetIP2PRESection()) ; + else if ( IsInHCAL() ) + gpos.SetY(emcalgeom->GetIP2HCALSection()) ; else - gpos.SetY(emcalgeom->GetIP2PreShower()) ; + 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 *)