Skip to content

Commit

Permalink
Merge pull request #9508 from mmusich/fixingAlCaTriggerBitsReader
Browse files Browse the repository at this point in the history
Fixing AlCaRecoTriggerBits reading/writing for condDBv2
  • Loading branch information
cmsbuild committed Jun 10, 2015
2 parents 1f5dfe1 + 4e750e1 commit e6c904c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
5 changes: 3 additions & 2 deletions CondTools/HLT/test/AlCaRecoTriggerBitsRcdRead_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@

# Input for AlCaRecoTriggerBitsRcd,
# either via GloblalTag (use of _cfi instead of _cff sufficient and faster):
process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cfi")
process.GlobalTag.globaltag = "GR09_P_V8_34X::All"#"DESIGN_3X_V13::All" #choose your tag
from Configuration.AlCa.autoCond_condDBv2 import autoCond
process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cfi")
process.GlobalTag.globaltag = autoCond['run2_data']

# ...or specify database and tag:
#import CondCore.DBCommon.CondDBSetup_cfi
Expand Down
18 changes: 9 additions & 9 deletions CondTools/HLT/test/AlCaRecoTriggerBitsRcdUpdate_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,17 @@
#process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
# process.GlobalTag.globaltag = "DESIGN_3X_V13::All" # may choose non-default tag
# ...or (recommended since simpler) directly from DB/sqlite

import CondCore.DBCommon.CondDBSetup_cfi
process.dbInput = cms.ESSource(
"PoolDBESSource",
CondCore.DBCommon.CondDBSetup_cfi.CondDBSetup,
# connect = cms.string('sqlite_file:AlCaRecoTriggerBits.db'),
connect = cms.string('frontier://FrontierProd/CMS_COND_31X_HLT'),
# connect = cms.string('sqlite_file:AlCaRecoTriggerBits.db'),
connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS'),
toGet = cms.VPSet(cms.PSet(
record = cms.string('AlCaRecoTriggerBitsRcd'),
# tag = cms.string('TestTag') # choose tag to update
tag = cms.string('AlCaRecoHLTpaths_Christmas09_offline')
# tag = cms.string('TestTag') # choose tag to update
tag = cms.string('AlCaRecoHLTpaths8e29_1e31_v7_hlt')
)
)
)
Expand All @@ -85,15 +86,14 @@
CondCore.DBCommon.CondDBSetup_cfi.CondDBSetup,
timetype = cms.untracked.string('runnumber'),
connect = cms.string('sqlite_file:AlCaRecoTriggerBits.db'),
# connect = cms.string('sqlite_file:AlCaRecoTriggerBitsUpdate.db'),
# connect = cms.string('sqlite_file:AlCaRecoTriggerBitsUpdate.db'),
toPut = cms.VPSet(cms.PSet(
record = cms.string('AlCaRecoTriggerBitsRcd'),
tag = cms.string('TestTag') # choose output tag you want
)
record = cms.string('AlCaRecoTriggerBitsRcd'),
tag = cms.string('TestTag') # choose output tag you want
)
)
)


# Put module in path:
process.p = cms.Path(process.AlCaRecoTriggerBitsRcdUpdate)

Expand Down

0 comments on commit e6c904c

Please sign in to comment.