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 38 of file mps_alisetup.py.
def mps_alisetup.SetupAlignment.__init__ | ( | self, | |
argv | |||
) |
Constructor Arguments: - `argv`: command line arguments
Definition at line 41 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 519 of file mps_alisetup.py.
References 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 121 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 427 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 94 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._args, tkal_create_file_lists.FileListCreator._args, mps_alisetup.SetupAlignment._argv, and mps_alisetup.SetupAlignment._config.
|
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 489 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 177 of file mps_alisetup.py.
References 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 250 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 358 of file mps_alisetup.py.
References 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 631 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 201 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._common_weights, and mps_alisetup.SetupAlignment._weight_dict.
|
private |
Fetch 'datasetDir' variable from general section and add it to the 'os.environ' dictionary.
Definition at line 679 of file mps_alisetup.py.
References 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 696 of file mps_alisetup.py.
References 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(), reco.get(), mps_monitormerge.items, join(), edm.print(), and split.
|
private |
Fetch default general options from config file.
Definition at line 659 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._external_datasets, mps_alisetup.SetupAlignment._general_options, reco.get(), and edm.print().
Referenced by mps_alisetup.SetupAlignment._fill_general_options().
|
private |
Fetch general options from config file.
Definition at line 646 of file mps_alisetup.py.
References 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 154 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._external_datasets, genParticles_cff.map, 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 241 of file mps_alisetup.py.
References split.
|
private |
Create and fill `general_options` dictionary.
Definition at line 144 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().
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 470 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 75 of file mps_alisetup.py.
References 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, and edm.print().
Referenced by o2olib.O2OTool.execute().
|
private |
Definition at line 49 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._create_config(), and Vispa.Main.Application.Application._readCommandLineAttributes().
|
private |
Definition at line 48 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._create_config().
|
private |
Definition at line 54 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._create_pede_jobs().
|
private |
Definition at line 60 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._create_weight_configs(), and mps_alisetup.SetupAlignment._fetch_datasets().
|
private |
Definition at line 50 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._create_config(), cfg-viewer.unscheduled._doSequenceTypes(), and mps_alisetup.SetupAlignment._fetch_datasets().
|
private |
Definition at line 309 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 52 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 63 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 64 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 53 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 62 of file mps_alisetup.py.
Referenced by 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 871 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 58 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._construct_paths().
|
private |
Definition at line 59 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._construct_paths(), and mps_alisetup.SetupAlignment._create_mass_storage_directory().
|
private |
Definition at line 51 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._create_mass_storage_directory().
|
private |
Definition at line 55 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 56 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._construct_paths().
|
private |
Definition at line 643 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._create_pede_jobs().
|
private |
Definition at line 61 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._create_pede_jobs().
|
private |
Definition at line 57 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._create_weight_configs(), and mps_alisetup.SetupAlignment._fetch_datasets().