Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:31:19

0001 # to test the communication with DBS and produce the csctf configuration
0002 import FWCore.ParameterSet.Config as cms
0003 
0004 process = cms.Process("QWE")
0005 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0006 process.MessageLogger.cout.enable = cms.untracked.bool(True)
0007 process.MessageLogger.cout.threshold = cms.untracked.string('INFO')
0008 process.MessageLogger.debugModules = cms.untracked.vstring('*')
0009 
0010 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1) )
0011 process.source = cms.Source("EmptySource")
0012 
0013 import FWCore.ParameterSet.VarParsing as VarParsing
0014 options = VarParsing.VarParsing()
0015 options.register('tscKey',
0016                  'dummy', #default value
0017                  VarParsing.VarParsing.multiplicity.singleton,
0018                  VarParsing.VarParsing.varType.string,
0019                  "TSC key")
0020 options.register('rsKey',
0021                  'dummy', #default value
0022                  VarParsing.VarParsing.multiplicity.singleton,
0023                  VarParsing.VarParsing.varType.string,
0024                  "RS key")
0025 options.register('DBAuth',
0026                  '.', #default value
0027                  VarParsing.VarParsing.multiplicity.singleton,
0028                  VarParsing.VarParsing.varType.string,
0029                  "DB authenification token path")
0030 options.parseArguments()
0031 
0032 process.load("CondTools.L1TriggerExt.L1TriggerKeyRcdSourceExt_cfi")
0033 process.load("CondTools.L1TriggerExt.L1SubsystemKeysOnlineExt_cfi")
0034 process.L1SubsystemKeysOnlineExt.tscKey = cms.string( options.tscKey )
0035 process.L1SubsystemKeysOnlineExt.rsKey  = cms.string( options.rsKey )
0036 process.L1SubsystemKeysOnlineExt.onlineAuthentication = cms.string( options.DBAuth )
0037 process.L1SubsystemKeysOnlineExt.forceGeneration = cms.bool(True)
0038 
0039 process.l1cr = cms.EDAnalyzer( "L1TriggerKeyExtReader", label = cms.string("SubsystemKeysOnly") )
0040 process.p = cms.Path(process.l1cr)