Skip to content

Commit

Permalink
Fix oracle implementation of nano flavours
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio Linares committed Jan 22, 2025
1 parent 1db87d7 commit 304689b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/python/T0/WMBS/Oracle/Create.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ def __init__(self, logger = None, dbi = None, params = None):
alca_skim varchar2(700),
physics_skim varchar2(700),
dqm_seq varchar2(700),
nano_flavour varchar2(700),
nano_flavour varchar2(50),
primary key (run_id, primds_id)
) ORGANIZATION INDEX"""

Expand Down
12 changes: 7 additions & 5 deletions src/python/T0/WMBS/Oracle/RunConfig/GetRecoConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def execute(self, run, stream, conn = None, transaction = False):
reco_config.proc_version,
reco_config.alca_skim,
reco_config.dqm_seq,
reco_config.nano_flavour,
cmssw_version.name,
reco_config.scram_arch,
reco_config.multicore,
Expand Down Expand Up @@ -69,10 +70,11 @@ def execute(self, run, stream, conn = None, transaction = False):
resultDict[primds]['proc_ver'] = result[8]
resultDict[primds]['alca_skim'] = result[9]
resultDict[primds]['dqm_seq'] = result[10]
resultDict[primds]['cmssw'] = result[11]
resultDict[primds]['scram_arch'] = result[12]
resultDict[primds]['multicore'] = result[13]
resultDict[primds]['global_tag'] = result[14]
resultDict[primds]['scenario'] = result[15]
resultDict[primds]['nano_flavour'] = result[11]
resultDict[primds]['cmssw'] = result[12]
resultDict[primds]['scram_arch'] = result[13]
resultDict[primds]['multicore'] = result[14]
resultDict[primds]['global_tag'] = result[15]
resultDict[primds]['scenario'] = result[16]

return resultDict
3 changes: 2 additions & 1 deletion src/python/T0/WMBS/Oracle/RunConfig/InsertRecoConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def execute(self, binds, conn = None, transaction = False):
sql = """INSERT INTO reco_config
(RUN_ID, PRIMDS_ID, DO_RECO, RECO_SPLIT, WRITE_RECO, WRITE_DQM,
WRITE_AOD, WRITE_MINIAOD, WRITE_NANOAOD, PROC_VERSION, ALCA_SKIM, PHYSICS_SKIM,
DQM_SEQ, CMSSW_ID, MULTICORE, SCRAM_ARCH, GLOBAL_TAG)
DQM_SEQ, NANO_FLAVOUR, CMSSW_ID, MULTICORE, SCRAM_ARCH, GLOBAL_TAG)
VALUES (:RUN,
(SELECT id FROM primary_dataset WHERE name = :PRIMDS),
:DO_RECO,
Expand All @@ -28,6 +28,7 @@ def execute(self, binds, conn = None, transaction = False):
:ALCA_SKIM,
:PHYSICS_SKIM,
:DQM_SEQ,
:NANO_FLAVOUR,
(SELECT id FROM cmssw_version WHERE name = :CMSSW),
:MULTICORE,
:SCRAM_ARCH,
Expand Down

0 comments on commit 304689b

Please sign in to comment.