File indexing completed on 2023-03-17 10:53:54
0001
0002
0003 from __future__ import print_function
0004 histos={}
0005 missing={}
0006
0007 f=open('CSCDQM_HistoType.txt', 'r')
0008 for h in f:
0009 histos[h.strip()]=0
0010
0011 f=open('map.txt', 'r')
0012 for h in f:
0013 a=h.strip().split()
0014 key=a[0].strip()
0015 name=a[1].strip()
0016 if key in histos:
0017 histos[key]=name
0018 else:
0019 missing[key]=name
0020
0021 a=sorted(histos.keys())
0022 for h in a:
0023 print(h, end=' ')
0024 if histos[h] != 0:
0025 print("\t\t\t\t\t", histos[h])
0026 else:
0027 print("")
0028
0029 print("========================= MISSING ============================")
0030
0031 a=missing.keys()
0032 a.sort()
0033 for h in a:
0034 print(h, missing[h])