if actualKey in triggersTypeMap: types.update( {str(strippedTrigger): triggersTypeMap[actualKey]}) else: types.update({str(strippedTrigger): default_name}) if not (name in triggerList): triggerList.append(name) for dataset in datasets[strippedTrigger]: if not dataset in primaryDatasetList: primaryDatasetCounts.update({str(dataset): 0}) if not dataset in primaryDatasetList: primaryDatasetList.append(dataset) if opts.maps == "allmaps": newDataset = dataset if dataset in newDatasetMap.keys(): newDataset = newDatasetMap[dataset] if newDataset not in newDatasetList: newDatasetCounts.update({str(newDataset): 0}) newDatasetList.append(newDataset) for group in groups[strippedTrigger]: if not group in groupList: groupCounts.update({str(group): 0}) if not group in groupList: groupCountsShared.update({str(group): 0}) if not group in groupList: groupCountsPure.update({str(group): 0}) if not group in groupList: groupList.append(group) for stream in streams[strippedTrigger]: if not stream in streamList: streamCounts.update({str(stream): 0})
if dataset in datasetStreamMap.keys(): if stream != datasetStreamMap[dataset]: continue else: continue if dataset in processed_datasets: continue dataset_index_map[dataset] = j if dD_histo.GetBinContent(j, j) < min_count: min_count = dD_histo.GetBinContent(j, j) min_dataset = dD_histo.GetYaxis().GetBinLabel(j) if min_dataset != "": sorted_dataset_list.append(min_dataset) processed_datasets.append(min_dataset) if opts.maps == "allmaps": newDataset = min_dataset if min_dataset in newDatasetMap.keys(): newDataset = newDatasetMap[min_dataset] if newDataset != "" and not ( newDataset in sorted_newDataset_list): sorted_newDataset_list.append(newDataset) sorted_dataset_list.append("NonPure") if opts.maps == "allmaps": sorted_newDataset_list.append("NonPure") dataset_index_map["NonPure"] = tD_histo.GetNbinsX() if opts.maps == "allmaps": for jj in range(1, newtD_histo.GetNbinsX() + 1): dataset = newtD_histo.GetXaxis().GetBinLabel(jj) newDataset_index_map[dataset] = jj