Public Member Functions | |
def | __init__ (self, argv) |
def | setup (self) |
Private Member Functions | |
def | _check_iov_definition (self) |
def | _construct_paths (self) |
def | _create_additional_pede_jobs (self) |
def | _create_config (self) |
def | _create_input_db (self) |
def | _create_mass_storage_directory (self) |
def | _create_mille_jobs (self) |
def | _create_pede_jobs (self) |
def | _create_tracker_tree (self) |
def | _create_weight_configs (self) |
def | _fetch_dataset_directory (self) |
def | _fetch_datasets (self) |
def | _fetch_defaults (self) |
def | _fetch_essentials (self) |
def | _fetch_external_datasets (self) |
def | _fetch_pede_settings (self) |
def | _fill_general_options (self) |
def | _handle_process_call (self, command, verbose=False) |
Class encapsulating the alignment campaign setup procedure.
Definition at line 40 of file mps_alisetup.py.
def mps_alisetup.SetupAlignment.__init__ | ( | self, | |
argv | |||
) |
Constructor Arguments: - `argv`: command line arguments
Definition at line 43 of file mps_alisetup.py.
|
private |
Check consistency of input alignment payloads and IOV definition. Returns a dictionary with the information needed to override possibly problematic input taken from the global tag.
Definition at line 531 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._cms_process, mps_alisetup.SetupAlignment._first_run, createfilelist.int, print(), and str.
Referenced by mps_alisetup.SetupAlignment._create_input_db().
|
private |
Determine directory paths and create the ones that are needed.
Definition at line 123 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._mille_script, mps_alisetup.SetupAlignment._mps_dir_name, mps_alisetup.SetupAlignment._pede_script, helper.checked_out_MPS(), and print().
|
private |
Create pede jobs in addition to already existing ones. Return GT override snippet.
Definition at line 439 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._config_template, mps_alisetup.SetupAlignment._create_pede_jobs(), mps_alisetup.SetupAlignment._datasets, tkal_create_file_lists.FileListCreator._datasets, mps_alisetup.SetupAlignment._first_pede_config, mps_alisetup.SetupAlignment._first_run, mps_alisetup.SetupAlignment._global_tag, GetRecoTauVFromDQM_MC_cff.next, print(), and contentValuesCheck.values.
Referenced by mps_alisetup.SetupAlignment.setup().
|
private |
Create ConfigParser object from command line arguments.
Definition at line 96 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._args, tkal_create_file_lists.FileListCreator._args, mps_alisetup.SetupAlignment._argv, mps_alisetup.SetupAlignment._config, and fileinputsource_cfi.read.
|
private |
Create sqlite file with single-IOV tags and use it to override the GT. If the GT is already customized by the user, the customization has higher priority. Creates a snippet to be appended to the configuration file.
Definition at line 501 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._check_iov_definition(), mps_alisetup.SetupAlignment._first_run, mps_alisetup.SetupAlignment._override_gt, createfilelist.int, and print().
Referenced by mps_alisetup.SetupAlignment._create_pede_jobs().
|
private |
Create MPS mass storage directory where, e.g., mille binaries are stored.
Definition at line 179 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._general_options, mps_alisetup.SetupAlignment._mps_dir_name, mps_alisetup.SetupAlignment._mss_dir, and print().
|
private |
Create the mille jobs based on the [dataset:<name>] sections.
Definition at line 252 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._datasets, tkal_create_file_lists.FileListCreator._datasets, mps_alisetup.SetupAlignment._general_options, mps_monitormerge.items, print(), and str.
Referenced by mps_alisetup.SetupAlignment.setup().
|
private |
Create pede jobs from the given input.
Definition at line 370 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._args, tkal_create_file_lists.FileListCreator._args, mps_alisetup.SetupAlignment._cms_process, mps_alisetup.SetupAlignment._config_template, mps_alisetup.SetupAlignment._create_input_db(), mps_alisetup.SetupAlignment._create_tracker_tree(), mps_alisetup.SetupAlignment._first_pede_config, mps_alisetup.SetupAlignment._handle_process_call(), mps_alisetup.SetupAlignment._override_gt, mps_alisetup.SetupAlignment._tracker_tree_path, mps_alisetup.SetupAlignment._weight_configs, join(), print(), and str.
Referenced by mps_alisetup.SetupAlignment._create_additional_pede_jobs(), and mps_alisetup.SetupAlignment.setup().
|
private |
Method to create hidden 'TrackerTree.root'.
Definition at line 643 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._first_run, mps_alisetup.SetupAlignment._global_tag, and print().
Referenced by mps_alisetup.SetupAlignment._create_pede_jobs().
|
private |
Extract different weight configurations from `self._config`.
Definition at line 203 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._common_weights, mps_alisetup.SetupAlignment._weight_configs, mps_alisetup.SetupAlignment._weight_dict, mps_setup.append, conifer.reduce(), and mkLumiAveragedPlots.tuple.
|
private |
Fetch 'datasetDir' variable from general section and add it to the 'os.environ' dictionary.
Definition at line 691 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._config, mps_alisetup.SetupAlignment._general_options, and print().
Referenced by mps_alisetup.SetupAlignment._fill_general_options().
|
private |
Fetch internal and external dataset configurations.
Definition at line 708 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._args, tkal_create_file_lists.FileListCreator._args, mps_alisetup.SetupAlignment._common_weights, mps_alisetup.SetupAlignment._config, mps_alisetup.SetupAlignment._datasets, tkal_create_file_lists.FileListCreator._datasets, mps_alisetup.SetupAlignment._external_datasets, mps_alisetup.SetupAlignment._general_options, mps_alisetup.SetupAlignment._weight_dict, any(), mps_monitormerge.items, join(), relativeConstraints.keys, print(), and submitPVValidationJobs.split().
|
private |
Fetch default general options from config file.
Definition at line 671 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._config, mps_alisetup.SetupAlignment._external_datasets, mps_alisetup.SetupAlignment._general_options, print(), and contentValuesCheck.values.
Referenced by mps_alisetup.SetupAlignment._fill_general_options().
|
private |
Fetch general options from config file.
Definition at line 658 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._config, mps_alisetup.SetupAlignment._first_run, mps_alisetup.SetupAlignment._general_options, and print().
Referenced by mps_alisetup.SetupAlignment._fill_general_options().
|
private |
Fetch information about external datasets.
Definition at line 156 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._config, mps_alisetup.SetupAlignment._external_datasets, genParticles_cff.map, submitPVValidationJobs.split(), and nano_mu_digi_cff.strip.
Referenced by mps_alisetup.SetupAlignment._fill_general_options().
|
private |
Fetch 'pedesettings' from general section in `self._config`.
Definition at line 243 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._config, and submitPVValidationJobs.split().
|
private |
Create and fill `general_options` dictionary.
Definition at line 146 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._fetch_dataset_directory(), mps_alisetup.SetupAlignment._fetch_defaults(), mps_alisetup.SetupAlignment._fetch_essentials(), mps_alisetup.SetupAlignment._fetch_external_datasets(), and print().
|
private |
Wrapper around subprocess calls which treats output depending on verbosity level. Arguments: - `command`: list of command items - `verbose`: flag to turn on verbosity
Definition at line 482 of file mps_alisetup.py.
References join(), and print().
Referenced by mps_alisetup.SetupAlignment._create_pede_jobs().
def mps_alisetup.SetupAlignment.setup | ( | self | ) |
Setup the alignment campaign.
Definition at line 77 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._args, tkal_create_file_lists.FileListCreator._args, mps_alisetup.SetupAlignment._create_additional_pede_jobs(), mps_alisetup.SetupAlignment._create_mille_jobs(), mps_alisetup.SetupAlignment._create_pede_jobs(), mps_alisetup.SetupAlignment._first_run, mps_alisetup.SetupAlignment._global_tag, mps_alisetup.SetupAlignment._override_gt, print(), and nano_mu_digi_cff.strip.
Referenced by o2olib.O2OTool.execute().
|
private |
Definition at line 51 of file mps_alisetup.py.
Referenced by conddb2hdf5.DBPayloadIterator.__next__(), mps_alisetup.SetupAlignment._create_config(), mps_alisetup.SetupAlignment._create_pede_jobs(), mps_alisetup.SetupAlignment._fetch_datasets(), conddb2hdf5.DBTag.dataProducts(), conddb2hdf5.DBDataProduct.payloads(), mps_alisetup.SetupAlignment.setup(), and dqm-mbProfile.Profile.update().
|
private |
Definition at line 50 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._create_config().
|
private |
Definition at line 56 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._check_iov_definition(), and mps_alisetup.SetupAlignment._create_pede_jobs().
|
private |
Definition at line 62 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._create_weight_configs(), and mps_alisetup.SetupAlignment._fetch_datasets().
|
private |
Definition at line 52 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._create_config(), mps_alisetup.SetupAlignment._fetch_dataset_directory(), mps_alisetup.SetupAlignment._fetch_datasets(), mps_alisetup.SetupAlignment._fetch_defaults(), mps_alisetup.SetupAlignment._fetch_essentials(), mps_alisetup.SetupAlignment._fetch_external_datasets(), and mps_alisetup.SetupAlignment._fetch_pede_settings().
|
private |
Definition at line 322 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._create_additional_pede_jobs(), and mps_alisetup.SetupAlignment._create_pede_jobs().
|
private |
Definition at line 54 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._create_additional_pede_jobs(), mps_alisetup.SetupAlignment._create_mille_jobs(), and mps_alisetup.SetupAlignment._fetch_datasets().
|
private |
Definition at line 65 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._fetch_datasets(), mps_alisetup.SetupAlignment._fetch_defaults(), and mps_alisetup.SetupAlignment._fetch_external_datasets().
|
private |
Definition at line 66 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._create_additional_pede_jobs(), and mps_alisetup.SetupAlignment._create_pede_jobs().
|
private |
Definition at line 55 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._check_iov_definition(), mps_alisetup.SetupAlignment._create_additional_pede_jobs(), mps_alisetup.SetupAlignment._create_input_db(), mps_alisetup.SetupAlignment._create_tracker_tree(), mps_alisetup.SetupAlignment._fetch_essentials(), and mps_alisetup.SetupAlignment.setup().
|
private |
Definition at line 64 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._create_mass_storage_directory(), mps_alisetup.SetupAlignment._create_mille_jobs(), mps_alisetup.SetupAlignment._fetch_dataset_directory(), mps_alisetup.SetupAlignment._fetch_datasets(), mps_alisetup.SetupAlignment._fetch_defaults(), and mps_alisetup.SetupAlignment._fetch_essentials().
|
private |
Definition at line 887 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._create_additional_pede_jobs(), mps_alisetup.SetupAlignment._create_tracker_tree(), and mps_alisetup.SetupAlignment.setup().
|
private |
Definition at line 60 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._construct_paths().
|
private |
Definition at line 61 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._construct_paths(), and mps_alisetup.SetupAlignment._create_mass_storage_directory().
|
private |
Definition at line 53 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._create_mass_storage_directory().
|
private |
Definition at line 57 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._create_input_db(), mps_alisetup.SetupAlignment._create_pede_jobs(), and mps_alisetup.SetupAlignment.setup().
|
private |
Definition at line 58 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._construct_paths().
|
private |
Definition at line 655 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._create_pede_jobs().
|
private |
Definition at line 63 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._create_pede_jobs(), and mps_alisetup.SetupAlignment._create_weight_configs().
|
private |
Definition at line 59 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._create_weight_configs(), and mps_alisetup.SetupAlignment._fetch_datasets().