Functions | |
def | get_mille_lines () |
def | get_num_evts_per_dataset (mille_lines) |
def | get_num_evts_per_merged_dataset (merged_datasets, num_evts_per_dataset) |
def | merge_datasets (num_evts_per_dataset) |
def | print_merging_scheme (merged_datasets) |
def | print_num_evts_per_dataset (num_evts_per_dataset) |
Variables | |
def | merged_datasets = merge_datasets(num_evts_per_dataset) |
def | mille_lines = get_mille_lines() |
string | mps_db = "mps.db" |
def | num_evts_per_dataset = get_num_evts_per_dataset(mille_lines) |
def | num_evts_per_merged_dataset = get_num_evts_per_merged_dataset(merged_datasets,num_evts_per_dataset) |
Print the total number of events processed by the mille jobs per dataset The information is taken from the `mps.db' file. Will group entries of the same dataset and also datasets the script *thinks* belong to the same data type, e.g. 0T cosmics. This is implemented very simple and should always be checked by the user. Usage: `python mps_list_evts.py <mps.db file name>' or, after `scram b' `mps_list_evts.py <mps.db file name>' M. Schroeder, DESY Hamburg 26-May-2014
def mps_list_evts.get_mille_lines | ( | ) |
Return list of mps.db lines that correspond to a mille job
Definition at line 26 of file mps_list_evts.py.
def mps_list_evts.get_num_evts_per_dataset | ( | mille_lines | ) |
Return number of events per dataset Returns a dict `<dataset>:<num_evts>', where <dataset> is the label in the last field of the mille line.
Definition at line 43 of file mps_list_evts.py.
References createfilelist.int.
def mps_list_evts.get_num_evts_per_merged_dataset | ( | merged_datasets, | |
num_evts_per_dataset | |||
) |
Return number of events per merged dataset Returns a dict `<merged_dataset>:<num_evts>'; see comments to function `merge_datasets' for an explanation of <merged_dataset>.
Definition at line 62 of file mps_list_evts.py.
def mps_list_evts.merge_datasets | ( | num_evts_per_dataset | ) |
Return dict `<merged_dataset> : list of <dataset>' Associates all datasets in `num_evts_per_dataset' that belong by their name to the same PD but to a different run era. For example: isolated_mu_runa_v1, isolated_mu_runb_v1, isolated_mu_runc_v2 --> isolated_mu The returned dict has as value a list of the merged datasets.
Definition at line 79 of file mps_list_evts.py.
References mps_setup.append.
def mps_list_evts.print_merging_scheme | ( | merged_datasets | ) |
Print number of events per merged dataset See comments to function `merge_datasets' for an explanation of what is meant by merged dataset.
Definition at line 102 of file mps_list_evts.py.
References print().
def mps_list_evts.print_num_evts_per_dataset | ( | num_evts_per_dataset | ) |
Print number of events per dataset See comments to function `get_num_evts_per_dataset' for an explanation of what is meant by dataset.
Definition at line 116 of file mps_list_evts.py.
def mps_list_evts.merged_datasets = merge_datasets(num_evts_per_dataset) |
Definition at line 152 of file mps_list_evts.py.
def mps_list_evts.mille_lines = get_mille_lines() |
Definition at line 150 of file mps_list_evts.py.
mps_list_evts.mps_db = "mps.db" |
Definition at line 23 of file mps_list_evts.py.
def mps_list_evts.num_evts_per_dataset = get_num_evts_per_dataset(mille_lines) |
Definition at line 151 of file mps_list_evts.py.
def mps_list_evts.num_evts_per_merged_dataset = get_num_evts_per_merged_dataset(merged_datasets,num_evts_per_dataset) |
Definition at line 153 of file mps_list_evts.py.