def get_active_lumi_runs_by_range(self, min_run_number, max_run_number): """ Get list of runs with certification status and active lumi sections Example: >>> client = TrackerRunRegistryClient() >>> runs = client.get_active_lumi_runs_by_range("323472", "323485") >>> runs[0]["pixel"] 'GOOD' """ where_clause = build_range_where_clause(min_run_number, max_run_number, "r.run_number") return self.__get_dataset_runs_with_active_lumis(where_clause)
def get_lumi_sections_by_range(self, min_run_number, max_run_number): """ Get list of lumisections for the given run number range Example: >>> client = TrackerRunRegistryClient() >>> lumis = client.get_lumi_sections_by_range("323472", "323485") >>> lumis[0]["section_count"] 94 :param min_run_number: first run number :param max_run_number: last run number :return: dictionary containing the queryset """ where_clause = build_range_where_clause(min_run_number, max_run_number, "r.rdr_run_number") return self.__get_dataset_lumis_runs(where_clause)
def get_runs_by_range(self, min_run_number, max_run_number): """ Get list of run dictionaries from the Tracker workspace in the Run Registry Example: >>> client = TrackerRunRegistryClient() >>> runs = client.get_runs_by_range("323471", "323475") >>> runs[0]["run_class"] 'Collisions18' :param min_run_number: first run number :param max_run_number: last run number :return: dictionary containing the queryset """ where_clause = build_range_where_clause(min_run_number, max_run_number, "r.run_number") return self.__get_dataset_runs(where_clause)