]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSTrackSegmentMakerv1.cxx
add new histos and bug fixes
[u/mrichter/AliRoot.git] / PHOS / AliPHOSTrackSegmentMakerv1.cxx
index 74827e13ae3ce397f1ccf8ddd7dbed75ea72db2b..ba31b3cc1f3c683d97bf5fdba2511598bf578f93 100644 (file)
@@ -256,12 +256,12 @@ void  AliPHOSTrackSegmentMakerv1::GetDistanceInPHOSPlane(AliPHOSEmcRecPoint * em
 //  Float_t delta = 1 ;  // Width of the rows in sorting of RecPoints (in cm)
 //                       // if you change this value, change it as well in xxxRecPoint::Compare()
 
+  trackindex = -1;
+  dx         = 999.;
+  dz         = 999.;
+
   if(!cpvClu) {
     
-    trackindex = -1;
-    dx=999.;
-    dz=999.;
-    
     if(!emcClu) {
       return;
     }
@@ -275,7 +275,7 @@ void  AliPHOSTrackSegmentMakerv1::GetDistanceInPHOSPlane(AliPHOSEmcRecPoint * em
     const Double_t rPHOS = globaPos.Pt() ; //Distance to center of  PHOS module
     const Double_t kYmax = 72.+10. ; //Size of the module (with some reserve) in phi direction
     const Double_t kZmax = 64.+10. ; //Size of the module (with some reserve) in z direction
-    const Double_t kAlpha0=230./180.*TMath::Pi() ; //First PHOS module angular direction
+    const Double_t kAlpha0=330./180.*TMath::Pi() ; //First PHOS module angular direction
     const Double_t kAlpha= 20./180.*TMath::Pi() ; //PHOS module angular size
     Double_t minDistance = 1.e6;
 
@@ -301,7 +301,7 @@ void  AliPHOSTrackSegmentMakerv1::GetDistanceInPHOSPlane(AliPHOSEmcRecPoint * em
 
       t.GetBxByBz(b) ;
       //Direction to the current PHOS module
-      Double_t phiMod=kAlpha0+kAlpha*iPHOSMod ;
+      Double_t phiMod=kAlpha0-kAlpha*iPHOSMod ;
       if(!t.Rotate(phiMod))
         continue ;