]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Minor change
authorcoppedis <coppedis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 5 Mar 2009 10:46:22 +0000 (10:46 +0000)
committercoppedis <coppedis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 5 Mar 2009 10:46:22 +0000 (10:46 +0000)
ZDC/AliZDCv3.cxx

index 534da4cc8f50e33b45289a356b614c27a04ed8c9..dbc1689d6761f5ff7036b21730625fdc1ff78517 100644 (file)
@@ -2466,14 +2466,19 @@ void AliZDCv3::StepManager()
     // Ch. debug
     //printf("\t *** det %d vol %d xdet(%f, %f)\n",vol[0], vol[1], xdet[0], xdet[1]);
     
+    
   // Store impact point and kinetic energy of the ENTERING particle
     
       if(gMC->IsTrackEntering()){
         //Particle energy
         gMC->TrackMomentum(p[0],p[1],p[2],p[3]);
         hits[3] = p[3];
-        // Impact point on ZDC  
-        hits[4] = xdet[0];
+        // Impact point on ZDC
+       // X takes into account the LHC x-axis sign
+       // which is opposite to positive x on detcetor front face
+       // for side A detectors (ZNA and ZPA)  
+        if(vol[0]==4 || vol[0]==5) hits[4] = -xdet[0];
+       else hits[4] = -xdet[0];
         hits[5] = xdet[1];
        hits[6] = 0;
         hits[7] = 0;