175
176
# Detect the total number of event in an efficient way
176
177
n_evts = int(subprocess.Popen('grep -rin "<event>" %s | wc -l'%os.path.realpath(eventFile),
179
180
logging.info("Writing out the reweighted event file on\n %s"%outPath)
180
181
# Write out the output event file