Revision: | 1.1 |
Committed: | Fri Jun 18 09:27:53 2010 UTC (14 years, 10 months ago) by iraklis |
Content type: | text/x-python |
Branch: | MAIN |
CVS Tags: | HEAD |
Error occurred while calculating annotation data. | |
Log Message: | *** empty log message *** |
# | Content |
---|---|
1 | import os, commands |
2 | |
3 | file = open("Run.dat","r") |
4 | datLines = file.readlines() |
5 | file.close() |
6 | |
7 | |
8 | currentDir = commands.getoutput("pwd") |
9 | |
10 | for i in range (0,3): |
11 | if i < 1: |
12 | os.chdir("%s/SM/ZgMu_0j/test/"%currentDir) |
13 | else: |
14 | os.chdir("%s/SM/ZgMu_0j%s/test/"%(currentDir,i)) |
15 | |
16 | file = open("Run.dat","w") |
17 | for line in datLines: |
18 | if "NUM_JETS:=0" in line: |
19 | file.write(" NUM_JETS:=%s\n"%i) |
20 | else: |
21 | file.write(line) |
22 | file.close() |
23 |