Functions | |
def | check_proxy |
def | compute_product_string |
def | create_single_iov_db |
def | get_iovs |
def | get_process_object |
def | get_tags |
def | getDatasetStr |
def | getTerminalSize |
def | haddLocal |
def | interrupt |
def | listFilesLocal |
def | loadCmsProcess |
def | loadCmsProcessFile |
def | make_unique_runranges |
def | prependPaths |
def | remove_existing_object |
def | replace_factors |
def | replaceTemplate |
def | run_checked |
def | stdinWait |
Variables | |
tuple | log = logging.getLogger(__name__) |
def tools.compute_product_string | ( | product_string | ) |
def tools.create_single_iov_db | ( | inputs, | |
run_number, | |||
output_db | |||
) |
Create an sqlite file with single-IOV tags for alignment payloads. Arguments: - `inputs`: dictionary with input needed for payload extraction - `run_number`: run for which the IOVs are selected - `output_db`: name of the output sqlite file
Definition at line 14 of file tools.py.
References join(), print(), remove_existing_object(), run_checked(), and str.
def tools.get_iovs | ( | db, | |
tag | |||
) |
Retrieve the list of IOVs from `db` for `tag`. Arguments: - `db`: database connection string - `tag`: tag of database record
Definition at line 167 of file tools.py.
References python.cmstools.all(), alcazmumu_cfi.filter, print(), and python.rootplot.root2matplotlib.replace().
def tools.get_process_object | ( | cfg | ) |
Returns cms.Process object defined in `cfg`. Arguments: - `cfg`: path to CMSSW config file
Definition at line 87 of file tools.py.
References print().
def tools.get_tags | ( | global_tag, | |
records | |||
) |
Get tags for `records` contained in `global_tag`. Arguments: - `global_tag`: global tag of interest - `records`: database records of interest
Definition at line 132 of file tools.py.
References python.cmstools.all(), alcazmumu_cfi.filter, and print().
def tools.getTerminalSize | ( | ) |
def tools.haddLocal | ( | localdir, | |
result_file, | |||
extension = 'root' |
|||
) |
Definition at line 41 of file tools.py.
References listFilesLocal().
Referenced by DTWorkflow.DTWorkflow.prepare_common_write().
def tools.interrupt | ( | signum, | |
frame | |||
) |
def tools.listFilesLocal | ( | paths, | |
extension = '.root' |
|||
) |
def tools.loadCmsProcess | ( | psetPath | ) |
Definition at line 56 of file tools.py.
Referenced by DTVdriftWorkflow.DTvdriftWorkflow.prepare_meantimer_submit(), DTVdriftWorkflow.DTvdriftWorkflow.prepare_meantimer_write(), DTTtrigWorkflow.DTttrigWorkflow.prepare_residuals_correction(), DTTtrigWorkflow.DTttrigWorkflow.prepare_residuals_submit(), DTVdriftWorkflow.DTvdriftWorkflow.prepare_segment_write(), DTTtrigWorkflow.DTttrigWorkflow.prepare_timeboxes_correction(), DTTtrigWorkflow.DTttrigWorkflow.prepare_validation_submit(), and DTTtrigWorkflow.DTttrigWorkflow.prepare_validation_write().
def tools.make_unique_runranges | ( | ali_producer | ) |
def tools.prependPaths | ( | process, | |
seqname | |||
) |
Definition at line 66 of file tools.py.
Referenced by DTWorkflow.DTWorkflow.add_preselection(), and DTWorkflow.DTWorkflow.add_raw_option().
def tools.remove_existing_object | ( | path | ) |
Tries to remove file or directory located at `path`. If the user has no delete permissions, the object is moved to a backup file. If this fails it tries 5 times in total and then asks to perform a cleanup by a user with delete permissions. Arguments: - `name`: name of the object to be (re)moved
Definition at line 232 of file tools.py.
References print(), and sistrip::SpyUtilities.range().
Referenced by create_single_iov_db().
def tools.replace_factors | ( | product_string, | |
name, | |||
value | |||
) |
def tools.replaceTemplate | ( | template, | |
opts | |||
) |
Definition at line 10 of file tools.py.
References print(), SiPixelLorentzAngle_cfi.read, and str.
def tools.run_checked | ( | cmd, | |
suppress_stderr = False |
|||
) |
Run `cmd` and exit in case of failures. Arguments: - `cmd`: list containing the strings of the command - `suppress_stderr`: suppress output from stderr
Definition at line 67 of file tools.py.
References join(), and print().
Referenced by create_single_iov_db().
def tools.stdinWait | ( | text, | |
default, | |||
time, | |||
timeoutDisplay = None , |
|||
kwargs | |||
) |
Definition at line 70 of file tools.py.
References print().
Referenced by CrabHelper.CrabHelper.check_crabtask().