From 29c8b81be402b5bf0942710ff624f01857ee3adf Mon Sep 17 00:00:00 2001 From: nemu Date: Thu, 23 Oct 2014 11:50:28 +0200 Subject: [PATCH] Fixed bug --- run/macros/beamSpotWithCut.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run/macros/beamSpotWithCut.C b/run/macros/beamSpotWithCut.C index 6e6da54..012f411 100644 --- a/run/macros/beamSpotWithCut.C +++ b/run/macros/beamSpotWithCut.C @@ -45,7 +45,7 @@ void beamSpotWithCut(char* fname, Double_t cut) for (j = k; jFill(Samplex[j], Sampley[j]); + if (sqrt(TDx[j]*TDx[j]+TDy[j]*TDy[j])<=cut) hBeamSpot->Fill(Samplex[i], Sampley[i]); k = j + 1; break; }