diff --git a/scripts/checkTrackSelection.py b/scripts/checkTrackSelection.py index dd678e3..f56fbeb 100644 --- a/scripts/checkTrackSelection.py +++ b/scripts/checkTrackSelection.py @@ -3,7 +3,7 @@ # @Author: Elena Graverini # @Date: 2015-10-27 18:26:49 # @Last Modified by: Elena Graverini -# @Last Modified time: 2017-05-22 13:40:44 +# @Last Modified time: 2017-05-22 13:49:02 import sys import os from math import sqrt @@ -121,7 +121,7 @@ csaver[-1] = put_fill(csaver[-1], fill) save_name = '%s/%s_%s_fill%s.pdf' % (out_location, det, h.name, fill) if good_steps: - save_name.replace('.pdf', '_odinStep_lt_12.pdf') + save_name = save_name.replace('.pdf', '_odinStep_lt_12.pdf') csaver[-1].SaveAs(save_name) h.Delete() # h_sig.Divide(h_noise)