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