]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Correct vertex bin finding
authorcholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 26 Apr 2011 20:28:58 +0000 (20:28 +0000)
committercholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 26 Apr 2011 20:28:58 +0000 (20:28 +0000)
PWG2/FORWARD/analysis2/AliFMDMCEventInspector.cxx

index e933a92d9eb2b28b1fd2c68e2060507e73542c42..507fcbdf75ffa746b1f1c05a91d42ddf40bceb73 100644 (file)
@@ -353,12 +353,11 @@ AliFMDMCEventInspector::ProcessMC(AliMCEvent*       event,
   fHBvsBin->Fill(b, nbin);
 
   // Check for the vertex bin 
-  ivz = fHEventsTr->GetXaxis()->FindBin(vz);
+  ivz = fVtxAxis.FindBin(vz);
   if (ivz <= 0 || ivz > fHEventsTr->GetXaxis()->GetNbins()) { 
     if (fDebug > 3) {
       AliWarning(Form("Vertex @ %f outside of range [%f,%f]", 
-                     vz, fHEventsTr->GetXaxis()->GetXmin(), 
-                     fHEventsTr->GetXaxis()->GetXmax())); }
+                     vz, fVtxAxis.GetXmin(), fVtxAxis.GetXmax())); }
     ivz = 0;
     return kBadVertex;
   }