aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2020-10-09 12:23:17 -0500
committertlatorre <tlatorre@uchicago.edu>2020-10-09 12:23:17 -0500
commitfb7d6a0ccbeadfd9b05ac2d5bd82af5389e826d9 (patch)
tree27386ce1e9ca9a210bb9e2784f10df95338208f4 /utils
parent33df0431e402e85df073004af28b4d8373105c24 (diff)
downloadsddm-fb7d6a0ccbeadfd9b05ac2d5bd82af5389e826d9.tar.gz
sddm-fb7d6a0ccbeadfd9b05ac2d5bd82af5389e826d9.tar.bz2
sddm-fb7d6a0ccbeadfd9b05ac2d5bd82af5389e826d9.zip
update mcpl
Diffstat (limited to 'utils')
-rwxr-xr-xutils/mcpl5
1 files changed, 2 insertions, 3 deletions
diff --git a/utils/mcpl b/utils/mcpl
index 5cfb949..efff5e0 100755
--- a/utils/mcpl
+++ b/utils/mcpl
@@ -62,6 +62,7 @@ if __name__ == '__main__':
for filename in args.filenames:
mcgn = get_mcgn(filename)
+ print("Analyzing run %i" % mcgn.run[0])
mcpl_filename = "mc_atm_genie_%06i_0.dat.gz" % mcgn.run[0]
mcpl_file = join(args.mcpl_directory,mcpl_filename)
mcpl = read_mcpl(mcpl_file)
@@ -73,6 +74,4 @@ if __name__ == '__main__':
fout.write("%i %i\n" % (len(mcpl), 19))
for ev, lines in mcpl.iteritems():
fout.write(''.join(lines))
- sys.exit(0)
-
- print(ev)
+ print("Wrote new MCPL file with %i events" % len(mcpl))