Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:22:17

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from CondCore.DBCommon.CondDBSetup_cfi import *
0004 
0005 # Read constants from DB.
0006 l1csctpdbconfsrc = cms.ESSource("PoolDBESSource",
0007     CondDBSetup,
0008     timetype = cms.string('runnumber'),
0009     #connect = cms.string('frontier://FrontierDev/CMS_COND_CSC'),
0010     #connect = cms.string('frontier://cmsfrontier.cern.ch:8000/FrontierProd/CMS_COND_21X_CSC'),
0011     connect =  cms.string('oracle://cms_orcoff_prep/CMS_COND_CSC'),
0012     #connect = cms.string('sqlite_file:DBL1TPParameters.db'),
0013     toGet = cms.VPSet(
0014         cms.PSet(
0015             record = cms.string('CSCDBL1TPParametersRcd'),
0016             #tag = cms.string('CSCL1TPParameters')
0017             tag = cms.string('CSCDBL1TPParameters_hlt')
0018             #tag = cms.string('CSCL1TPParameters_mc')
0019         )
0020     )
0021 )
0022 
0023 l1csctpdbconfsrc.DBParameters.authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0024 l1csctpdbconfsrc.DBParameters.authenticationMethod = cms.untracked.uint32(1)
0025 
0026 # Reading from DB has precedence over dummy producers (which use constants
0027 # defined in cfi files).
0028 es_prefer_l1csctpdbconfsrc = cms.ESPrefer("PoolDBESSource","l1csctpdbconfsrc")