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 41 of file mps_alisetup.py.
def mps_alisetup.SetupAlignment.__init__ | ( | self, | |
argv | |||
) |
Constructor Arguments: - `argv`: command line arguments
Definition at line 44 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 532 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._cms_process, mps_alisetup.SetupAlignment._first_run, createfilelist.int, edm.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 124 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 edm.print().
|
private |
Create pede jobs in addition to already existing ones. Return GT override snippet.
Definition at line 440 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, and edm.print().
Referenced by mps_alisetup.SetupAlignment.setup().
|
private |
Create ConfigParser object from command line arguments.
Definition at line 97 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 readEcalDQMStatus.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 502 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 edm.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 180 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._general_options, mps_alisetup.SetupAlignment._mps_dir_name, mps_alisetup.SetupAlignment._mss_dir, and edm.print().
|
private |
Create the mille jobs based on the [dataset:<name>] sections.
Definition at line 253 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._datasets, tkal_create_file_lists.FileListCreator._datasets, mps_alisetup.SetupAlignment._general_options, edm.print(), and str.
Referenced by mps_alisetup.SetupAlignment.setup().
|
private |
Create pede jobs from the given input.
Definition at line 371 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(), edm.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 644 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._first_run, mps_alisetup.SetupAlignment._global_tag, and edm.print().
Referenced by mps_alisetup.SetupAlignment._create_pede_jobs().
|
private |
Extract different weight configurations from `self._config`.
Definition at line 204 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._common_weights, mps_alisetup.SetupAlignment._weight_configs, mps_alisetup.SetupAlignment._weight_dict, and mps_setup.append.
|
private |
Fetch 'datasetDir' variable from general section and add it to the 'os.environ' dictionary.
Definition at line 692 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._config, mps_alisetup.SetupAlignment._general_options, and edm.print().
Referenced by mps_alisetup.SetupAlignment._fill_general_options().
|
private |
Fetch internal and external dataset configurations.
Definition at line 709 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, edm.print(), and cms::dd.split().
|
private |
Fetch default general options from config file.
Definition at line 672 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._config, mps_alisetup.SetupAlignment._external_datasets, mps_alisetup.SetupAlignment._general_options, and edm.print().
Referenced by mps_alisetup.SetupAlignment._fill_general_options().
|
private |
Fetch general options from config file.
Definition at line 659 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._config, mps_alisetup.SetupAlignment._first_run, mps_alisetup.SetupAlignment._general_options, and edm.print().
Referenced by mps_alisetup.SetupAlignment._fill_general_options().
|
private |
Fetch information about external datasets.
Definition at line 157 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._config, mps_alisetup.SetupAlignment._external_datasets, genParticles_cff.map, cms::dd.split(), and digitizers_cfi.strip.
Referenced by mps_alisetup.SetupAlignment._fill_general_options().
|
private |
Fetch 'pedesettings' from general section in `self._config`.
Definition at line 244 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._config, and cms::dd.split().
|
private |
Create and fill `general_options` dictionary.
Definition at line 147 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 edm.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 483 of file mps_alisetup.py.
References join(), and edm.print().
Referenced by mps_alisetup.SetupAlignment._create_pede_jobs().
def mps_alisetup.SetupAlignment.setup | ( | self | ) |
Setup the alignment campaign.
Definition at line 78 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, edm.print(), and digitizers_cfi.strip.
Referenced by o2olib.O2OTool.execute().
|
private |
Definition at line 52 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._create_config(), mps_alisetup.SetupAlignment._create_pede_jobs(), mps_alisetup.SetupAlignment._fetch_datasets(), mps_alisetup.SetupAlignment.setup(), and dqm-mbProfile.Profile.update().
|
private |
Definition at line 51 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._create_config().
|
private |
Definition at line 57 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._check_iov_definition(), and mps_alisetup.SetupAlignment._create_pede_jobs().
|
private |
Definition at line 63 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._create_weight_configs(), and mps_alisetup.SetupAlignment._fetch_datasets().
|
private |
Definition at line 53 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 323 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._create_additional_pede_jobs(), mps_alisetup.SetupAlignment._create_mille_jobs(), and mps_alisetup.SetupAlignment._fetch_datasets().
|
private |
Definition at line 66 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 67 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 56 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 65 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 888 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 61 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._construct_paths().
|
private |
Definition at line 62 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._construct_paths(), and mps_alisetup.SetupAlignment._create_mass_storage_directory().
|
private |
Definition at line 54 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._create_mass_storage_directory().
|
private |
Definition at line 58 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 59 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._construct_paths().
|
private |
Definition at line 656 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._create_pede_jobs().
|
private |
Definition at line 64 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._create_pede_jobs(), and mps_alisetup.SetupAlignment._create_weight_configs().
|
private |
Definition at line 60 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._create_weight_configs(), and mps_alisetup.SetupAlignment._fetch_datasets().