Functions | |
def | addCrabInputFile (crabCfg, inputFile) |
def | check_proxy () |
def | compute_product_string (product_string) |
def | copyFilesFromCastor (castor_dir, output_dir, type='root') |
def | copyFilesLocal (dir, output_dir, type='root') |
def | create_single_iov_db (inputs, run_number, output_db) |
def | dqmWorkflowName (datasetpath, type, rev=1) |
def | get_iovs (db, tag) |
def | get_process_object (cfg) |
def | get_tags (global_tag, records) |
def | getDatasetStr (datasetpath) |
def | haddInCastor (castor_dir, result_file, type='root', prefix='rfio:', suffix=None) |
def | haddLocal (dir, result_file, type='root') |
def | listFilesInCastor (castor_dir, type='root', prefix='rfio:') |
def | listFilesLocal (dir, type='root') |
def | loadCmsProcess (psetPath) |
def | loadCmsProcessFile (psetName) |
def | loadCrabCfg (cfgName=None) |
def | loadCrabDefault (crabCfg, config) |
def | make_unique_runranges (ali_producer) |
def | parseInput (inputFields, requiredFields=()) |
def | prependPaths (process, seqname) |
def | remove_existing_object (path) |
def | replace_factors (product_string, name, value) |
def | replaceTemplate (template, opts) |
def | run_checked (cmd, suppress_stderr=False) |
def | setGridEnv (cmssw_dir) |
def | writeCfg (process, dir, psetName) |
def | writeCfgPkl (process, dir, psetName) |
def tools.addCrabInputFile | ( | crabCfg, | |
inputFile | |||
) |
Definition at line 183 of file tools.py.
Referenced by DTDQMValidation.DTDQMValidation.initCrab(), DTAnalysisResiduals.DTAnalysisResiduals.initCrab(), DTTTrigValid.DTTTrigValid.initCrab(), DTResidualCalibration.DTResidualCalibration.initCrab(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initCrab(), and DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.initCrab().
def tools.check_proxy | ( | ) |
def tools.compute_product_string | ( | product_string | ) |
Takes `product_string` and returns the product of the factors as string. Arguments: - `product_string`: string containing product ('<factor>*<factor>*...')
Definition at line 206 of file tools.py.
References objects.autophobj.float, and harvestTrackValidationPlots.str.
def tools.copyFilesFromCastor | ( | castor_dir, | |
output_dir, | |||
type = 'root' |
|||
) |
Definition at line 55 of file tools.py.
References listFilesInCastor().
Referenced by DTCalibrationWorker.DTCalibrationWorker.runNoiseWorkflow().
def tools.copyFilesLocal | ( | dir, | |
output_dir, | |||
type = 'root' |
|||
) |
Definition at line 68 of file tools.py.
References listFilesLocal().
Referenced by DTCalibrationWorker.DTCalibrationWorker.runNoiseWorkflow().
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 11 of file tools.py.
References join(), remove_existing_object(), run_checked(), and harvestTrackValidationPlots.str.
def tools.dqmWorkflowName | ( | datasetpath, | |
type, | |||
rev = 1 |
|||
) |
Definition at line 23 of file tools.py.
Referenced by DTDqm.DTDqm.initProcess(), and DTDQMHarvesting.DTDQMHarvesting.initProcess().
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 164 of file tools.py.
References Vispa.Plugins.EdmBrowser.EdmDataAccessor.all(), ALCARECOTkAlBeamHalo_cff.filter, createfilelist.int, and python.rootplot.root2matplotlib.replace().
def tools.get_process_object | ( | cfg | ) |
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 129 of file tools.py.
References Vispa.Plugins.EdmBrowser.EdmDataAccessor.all(), and ALCARECOTkAlBeamHalo_cff.filter.
def tools.getDatasetStr | ( | datasetpath | ) |
Definition at line 15 of file tools.py.
Referenced by DTCalibrationWorker.DTCalibrationWorker.dqmOutputDir(), DTDQMMerge.DTDQMMerge.initProcess(), DTCalibrationWorker.DTCalibrationWorker.runAnalysisResiduals(), DTCalibrationWorker.DTCalibrationWorker.runNoiseWorkflow(), DTCalibrationWorker.DTCalibrationWorker.runResidualCalib(), DTCalibrationWorker.DTCalibrationWorker.runTtrigProd(), DTCalibrationWorker.DTCalibrationWorker.runTtrigValid(), DTCalibrationWorker.DTCalibrationWorker.runValidationWorkflow(), DTCalibrationWorker.DTCalibrationWorker.runVDriftMeanTimerCalib(), and DTCalibrationWorker.DTCalibrationWorker.runVDriftSegmentCalib().
Definition at line 81 of file tools.py.
References listFilesInCastor().
Referenced by DTCalibrationWorker.DTCalibrationWorker.runAnalysisResiduals(), DTCalibrationWorker.DTCalibrationWorker.runResidualCalib(), DTCalibrationWorker.DTCalibrationWorker.runTtrigProd(), DTCalibrationWorker.DTCalibrationWorker.runVDriftMeanTimerCalib(), and DTCalibrationWorker.DTCalibrationWorker.runVDriftSegmentCalib().
def tools.haddLocal | ( | dir, | |
result_file, | |||
type = 'root' |
|||
) |
Definition at line 98 of file tools.py.
References listFilesLocal().
Referenced by DTCalibrationWorker.DTCalibrationWorker.runAnalysisResiduals(), DTCalibrationWorker.DTCalibrationWorker.runResidualCalib(), DTCalibrationWorker.DTCalibrationWorker.runTtrigProd(), DTCalibrationWorker.DTCalibrationWorker.runVDriftMeanTimerCalib(), and DTCalibrationWorker.DTCalibrationWorker.runVDriftSegmentCalib().
def tools.listFilesInCastor | ( | castor_dir, | |
type = 'root' , |
|||
prefix = 'rfio:' |
|||
) |
Definition at line 30 of file tools.py.
Referenced by copyFilesFromCastor(), haddInCastor(), DTDqm.runDQM(), DTDQMMerge.runDQM(), DTCalibrationWorker.DTCalibrationWorker.runDQMClient(), DTCalibrationWorker.DTCalibrationWorker.runDQMHarvesting(), and DTCalibrationWorker.DTCalibrationWorker.runDQMMerge().
def tools.listFilesLocal | ( | dir, | |
type = 'root' |
|||
) |
Definition at line 42 of file tools.py.
Referenced by copyFilesLocal(), haddLocal(), DTCalibrationWorker.DTCalibrationWorker.runDQMClient(), DTCalibrationWorker.DTCalibrationWorker.runDQMHarvesting(), and DTCalibrationWorker.DTCalibrationWorker.runDQMMerge().
def tools.loadCmsProcess | ( | psetPath | ) |
Definition at line 144 of file tools.py.
Referenced by DTValidSummary.DTValidSummary.initProcess(), DTDqm.DTDqm.initProcess(), DTDQMMerge.DTDQMMerge.initProcess(), DTAnalysisResiduals.DTAnalysisResiduals.initProcess(), DTTTrigProd.DTTTrigProd.initProcess(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.initProcess(), DTDQMHarvesting.DTDQMHarvesting.initProcess(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initProcess(), DTNoiseCalibration.DTNoiseCalibration.initProcess(), DTResidualCalibration.DTResidualCalibration.initProcess(), DTDQMValidation.DTDQMValidation.initProcess(), and DTTTrigValid.DTTTrigValid.initProcess().
Definition at line 178 of file tools.py.
Referenced by DTNoiseCalibration.DTNoiseCalibration.initCrab(), DTTTrigProd.DTTTrigProd.initCrab(), DTDQMValidation.DTDQMValidation.initCrab(), DTResidualCalibration.DTResidualCalibration.initCrab(), DTAnalysisResiduals.DTAnalysisResiduals.initCrab(), DTTTrigValid.DTTTrigValid.initCrab(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initCrab(), and DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.initCrab().
def tools.loadCrabDefault | ( | crabCfg, | |
config | |||
) |
Definition at line 195 of file tools.py.
Referenced by DTNoiseCalibration.DTNoiseCalibration.initCrab(), DTTTrigProd.DTTTrigProd.initCrab(), DTDQMValidation.DTDQMValidation.initCrab(), DTResidualCalibration.DTResidualCalibration.initCrab(), DTAnalysisResiduals.DTAnalysisResiduals.initCrab(), DTTTrigValid.DTTTrigValid.initCrab(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initCrab(), and DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.initCrab().
def tools.make_unique_runranges | ( | ali_producer | ) |
Derive unique run ranges from AlignmentProducer PSet. Arguments: - `ali_producer`: cms.PSet containing AlignmentProducer configuration
Definition at line 111 of file tools.py.
References createfilelist.int.
def tools.parseInput | ( | inputFields, | |
requiredFields = () |
|||
) |
Definition at line 122 of file tools.py.
Referenced by edmStreamStallGrapher.readLogFile().
def tools.prependPaths | ( | process, | |
seqname | |||
) |
Definition at line 154 of file tools.py.
Referenced by DTAnalysisResiduals.DTAnalysisResiduals.initProcess(), DTTTrigProd.DTTTrigProd.initProcess(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initProcess(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.initProcess(), DTResidualCalibration.DTResidualCalibration.initProcess(), DTNoiseCalibration.DTNoiseCalibration.initProcess(), DTTTrigValid.DTTTrigValid.initProcess(), and DTDQMValidation.DTDQMValidation.initProcess().
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 229 of file tools.py.
Referenced by create_single_iov_db().
def tools.replace_factors | ( | product_string, | |
name, | |||
value | |||
) |
Takes a `product_string` and replaces all factors with `name` by `value`. Arguments: - `product_string`: input string containing a product - `name`: name of the factor - `value`: value of the factor
Definition at line 190 of file tools.py.
References harvestTrackValidationPlots.str.
def tools.replaceTemplate | ( | template, | |
opts | |||
) |
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 64 of file tools.py.
References join().
Referenced by create_single_iov_db().
def tools.writeCfg | ( | process, | |
dir, | |||
psetName | |||
) |