CMS 3D CMS Logo

change_name.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 
3 
4 import sys
5 
6 input_offline=open('DeadROC_offline.txt','r')
7 input_diff = open('DeadROC_Diff.txt','r')
8 
9 output = open('MaskedROC_sum.txt','w')
10 
11 
12 offline =[]
13 diff = []
14 
15 
16 for line in input_offline:
17 
18  offline.append(str(line.strip())+' power\n')
19 
20 
21 for line in input_diff:
22 
23  diff.append(str(line.strip())+' tbmdelay\n')
24 
25 
26 full_list = offline + diff
27 
28 for i in range(len(full_list)):
29  output.write(full_list[i])
30 
31 
32 output.close()
#define str(s)