CMS 3D CMS Logo

combine.py
Go to the documentation of this file.
1 #!python
2 
3 from __future__ import print_function
4 histos={}
5 missing={}
6 
7 f=open('CSCDQM_HistoType.txt', 'r')
8 for h in f:
9  histos[h.strip()]=0
10 
11 f=open('map.txt', 'r')
12 for h in f:
13  a=h.strip().split()
14  key=a[0].strip()
15  name=a[1].strip()
16  if key in histos:
17  histos[key]=name
18  else:
19  missing[key]=name
20 
21 a=sorted(histos.keys())
22 for h in a:
23  print(h, end=' ')
24  if histos[h] != 0:
25  print("\t\t\t\t\t", histos[h])
26  else:
27  print("")
28 
29 print("========================= MISSING ============================")
30 
31 a=missing.keys()
32 a.sort()
33 for h in a:
34  print(h, missing[h])
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:65
double split
Definition: MVATrainer.cc:139