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 36 of file mps_alisetup.py.
def mps_alisetup.SetupAlignment.__init__ | ( | self, | |
argv | |||
) |
Constructor Arguments: - `argv`: command line arguments
Definition at line 39 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 518 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._first_run, createfilelist.int, lhef.pop(), and harvestTrackValidationPlots.str.
Referenced by mps_alisetup.SetupAlignment._create_input_db().
|
private |
Determine directory paths and create the ones that are needed.
Definition at line 119 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._mille_script, mps_alisetup.SetupAlignment._mps_dir_name, mps_alisetup.SetupAlignment._pede_script, and helper.checked_out_MPS().
|
private |
Create pede jobs in addition to already existing ones. Return GT override snippet.
Definition at line 426 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._config_template, mps_alisetup.SetupAlignment._create_pede_jobs(), mps_alisetup.SetupAlignment._first_pede_config, mps_alisetup.SetupAlignment._first_run, mps_alisetup.SetupAlignment._global_tag, and GetRecoTauVFromDQM_MC_cff.next.
Referenced by mps_alisetup.SetupAlignment.setup().
|
private |
Create ConfigParser object from command line arguments.
Definition at line 92 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._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 488 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._check_iov_definition(), mps_alisetup.SetupAlignment._first_run, mps_alisetup.SetupAlignment._override_gt, and createfilelist.int.
Referenced by mps_alisetup.SetupAlignment._create_pede_jobs().
|
private |
Create MPS mass storage directory where, e.g., mille binaries are stored.
Definition at line 175 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._mps_dir_name, and mps_alisetup.SetupAlignment._mss_dir.
|
private |
Create the mille jobs based on the [dataset:<name>] sections.
Definition at line 249 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._general_options, and harvestTrackValidationPlots.str.
Referenced by mps_alisetup.SetupAlignment.setup().
|
private |
Create pede jobs from the given input.
Definition at line 357 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(), and harvestTrackValidationPlots.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 630 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._first_run, and mps_alisetup.SetupAlignment._global_tag.
Referenced by mps_alisetup.SetupAlignment._create_pede_jobs().
|
private |
Extract different weight configurations from `self._config`.
Definition at line 200 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 678 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._general_options.
Referenced by mps_alisetup.SetupAlignment._fill_general_options().
|
private |
Fetch internal and external dataset configurations.
Definition at line 695 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._common_weights, mps_alisetup.SetupAlignment._config, mps_alisetup.SetupAlignment._datasets, mps_alisetup.SetupAlignment._external_datasets, mps_alisetup.SetupAlignment._general_options, mps_alisetup.SetupAlignment._weight_dict, any(), reco.get(), mps_monitormerge.items, join(), and split.
|
private |
Fetch default general options from config file.
Definition at line 658 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._general_options, and reco.get().
Referenced by mps_alisetup.SetupAlignment._fill_general_options().
|
private |
Fetch general options from config file.
Definition at line 645 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._first_run, and mps_alisetup.SetupAlignment._general_options.
Referenced by mps_alisetup.SetupAlignment._fill_general_options().
|
private |
Fetch information about external datasets.
Definition at line 152 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._external_datasets, ALCARECOTkAlBeamHalo_cff.filter, genParticles_cff.map, split, and digi_MixPreMix_cfi.strip.
Referenced by mps_alisetup.SetupAlignment._fill_general_options().
|
private |
Fetch 'pedesettings' from general section in `self._config`.
Definition at line 240 of file mps_alisetup.py.
References split.
|
private |
Create and fill `general_options` dictionary.
Definition at line 142 of file mps_alisetup.py.
References mps_alisetup.SetupAlignment._fetch_dataset_directory(), mps_alisetup.SetupAlignment._fetch_defaults(), mps_alisetup.SetupAlignment._fetch_essentials(), and mps_alisetup.SetupAlignment._fetch_external_datasets().
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 469 of file mps_alisetup.py.
References join().
Referenced by mps_alisetup.SetupAlignment._create_pede_jobs().
def mps_alisetup.SetupAlignment.setup | ( | self | ) |
Setup the alignment campaign.
Definition at line 73 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, and mps_alisetup.SetupAlignment._override_gt.
Referenced by o2olib.O2OTool.execute().
|
private |
Definition at line 47 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._create_config(), and Vispa.Main.Application.Application._readCommandLineAttributes().
|
private |
Definition at line 46 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._create_config().
|
private |
Definition at line 52 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._create_pede_jobs().
|
private |
Definition at line 58 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._create_weight_configs(), and mps_alisetup.SetupAlignment._fetch_datasets().
|
private |
Definition at line 48 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 308 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 50 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._fetch_datasets(), and mps_create_file_lists.FileListCreator._request_dataset_information().
|
private |
Definition at line 61 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._fetch_datasets(), and mps_alisetup.SetupAlignment._fetch_external_datasets().
|
private |
Definition at line 62 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 51 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 60 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 870 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 56 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._construct_paths().
|
private |
Definition at line 57 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._construct_paths(), and mps_alisetup.SetupAlignment._create_mass_storage_directory().
|
private |
Definition at line 49 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._create_mass_storage_directory().
|
private |
Definition at line 53 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 54 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._construct_paths().
|
private |
Definition at line 642 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._create_pede_jobs().
|
private |
Definition at line 59 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._create_pede_jobs().
|
private |
Definition at line 55 of file mps_alisetup.py.
Referenced by mps_alisetup.SetupAlignment._create_weight_configs(), and mps_alisetup.SetupAlignment._fetch_datasets().