6 def PixBary(config, validationDir, verbose=False):
17 if not jobType
in config[
"validations"][_validationName]:
18 raise LookupError(
"No '%s' key word in config for %s" %(jobType, _validationName))
21 for jobName, jobConfig
in config[
"validations"][_validationName][jobType].
items():
24 print(
'job: %s IOV_list: %s', jobName, IOV_list)
25 IOVs[jobName] = IOV_list
28 for runRange
in IOV_list:
29 IOV =
'-'.
join(
str(i)
for i
in runRange)
31 for alignment, alignmentConfig
in config[
"alignments"].
items():
33 workDir = os.path.join(validationDir, _validationName, jobType, jobName, alignment, IOV)
37 local[
"output"] = os.path.join(config[
"LFS"], config[
"name"], _validationName, jobType, alignment, jobName, IOV)
38 local[
"alignment"] = copy.deepcopy(alignmentConfig)
39 local[
"alignment"][
"label"] = alignment
40 local[
"validation"] = copy.deepcopy(jobConfig)
41 local[
"validation"].pop(
"alignments")
42 local[
"validation"][
"IOV"] = IOV
43 if "dataset" in local[
"validation"]:
44 local[
"validation"][
"dataset"] = local[
"validation"][
"dataset"].
format(IOV)
45 if "goodlumi" in local[
"validation"]:
46 local[
"validation"][
"goodlumi"] = local[
"validation"][
"goodlumi"].
format(IOV)
50 "name":
"{}_{}_{}_{}_{}".
format(_validationName, alignment, jobType, jobName, IOV),
53 "cms-config":
"{}/src/Alignment/OfflineValidation/python/TkAlAllInOneTool/PixelBaryCentreAnalyzer_cfg.py".
format(os.environ[
"CMSSW_BASE"]),
def PixBary(config, validationDir, verbose=False)
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
static std::string join(char **cmd)
if(threadIdxLocalY==0 &&threadIdxLocalX==0)